image = | maxAbsImgImg (inImg1,inImg2) |
maximum of the absolute values of 2 images, pixel by pixel
On output image values are given by:
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_Real32, 510, 509)
inImg1 = PyIPSDK.loadRawImageFile(inputImg1Path, geometry)
inImg2 = PyIPSDK.loadRawImageFile(inputImg2Path, geometry)
outImg = arithm.maxAbsImgImg(inImg1, inImg2)
Example of C++ code :
Example informations
Header file
#include <IPSDKIPL/IPSDKIPLArithmetic/Processor/MaxAbsImgImg/MaxAbsImgImg.h>
Code Example
ImagePtr pAutoOutImg = maxAbsImgImg(pInImg1, pInImg2);
boost::shared_ptr<MemoryImage> pOutImg(boost::make_shared<MemoryImage>());
pOutImg->init(*pOutputImageGeometry);
maxAbsImgImg(pInImg1, pInImg2, pOutImg);