| image = | isEqualImgImg (inImg1,inImg2) |
| image = | isEqualImgImg (inImg1,inImg2,bIngoreBackground) |
| image = | isEqualImgImg (inImg1,inImg2,tolerance) |
| image = | isEqualImgImg (inImg1,inImg2,tolerance,bIngoreBackground) |
Set the pixels to true in the ouput binary images if the two input images are equal according to a tolerance.
This algorithm compares the two input images. The pixel in the output image is set to 1 if the corresponding pixels in the input images are similar, according to a tolerance.
Example of Python code :
Example imports
import PyIPSDK
import PyIPSDK.IPSDKIPLLogical as logic
Code Example
inGeometry = PyIPSDK.geometry2d(PyIPSDK.eImageBufferType.eIBT_UInt8, 510, 509)
inImg1 = PyIPSDK.loadRawImageFile(inputImgPath1, inGeometry)
inImg2 = PyIPSDK.loadRawImageFile(inputImgPath2, inGeometry)
outImg = logic.isEqualImgImg(inImg1, inImg2)
Example of C++ code :
Example informations
Header file
#include <IPSDKIPL/IPSDKIPLLogical/Processor/IsEqualImgImg/IsEqualImgImg.h>
Code Example
ImagePtr pOutImg_NoTol = isEqualImgImg(pInImg1, pInImg2);