image = | sqrtImg (inRealImg) |
computation of the square root of an image
On output image values are given by:
Input and output images must have same size. Input and output types must be real32.
Example of Python code :
Example imports
import PyIPSDK
import PyIPSDK.IPSDKIPLArithmetic as arithm
Code Example
geometry = PyIPSDK.geometry2d(PyIPSDK.eImageBufferType.eIBT_Real32, 510, 509)
inImg = PyIPSDK.loadRawImageFile(inputImgPath, geometry)
outImg = arithm.sqrtImg(inImg)
Example of C++ code :
Example informations
Header file
#include <IPSDKIPL/IPSDKIPLArithmetic/Processor/SqrtImg/SqrtImg.h>
Code Example
ImagePtr pAutoOutImg = sqrtImg(pInImg);
boost::shared_ptr<MemoryImage> pOutImg(boost::make_shared<MemoryImage>());
pOutImg->init(*pImageGeometry);
sqrtImg(pInImg, pOutImg);