computation of the absolute value of an image, pixel by pixel algorithm
On output image values are given by:
, with
Input and output images must have same size.
Example of Python code :
Example imports
import PyIPSDK
import PyIPSDK.IPSDKIPLArithmetic as arithm
Code Example
geometry = PyIPSDK.geometry2d(PyIPSDK.eImageBufferType.eIBT_Int8, 510, 509)
inImg = PyIPSDK.loadRawImageFile(inputImgPath, geometry)
outImg = arithm.absImg(inImg)
Example of C++ code :
Example informations
Header file
#include <IPSDKIPL/IPSDKIPLArithmetic/Processor/AbsImg/AbsImg.h>
Code Example
ImagePtr pAutoOutImg = absImg(pInImg);
boost::shared_ptr<MemoryImage> pOutImg(boost::make_shared<MemoryImage>());
pOutImg->init(*pOutputImageGeometry);
absImg(pInImg, pOutImg);