Intel® Integrated Performance Primitives (Intel® IPP) Developer Guide and Reference
A newer version of this document is available. Customers should click here to go to the newest version.
Compare Operations
This section describes functions that compare images. Each compare function writes its results to a one-channel Ipp8u output image. The output pixel is set to a non-zero value if the corresponding input pixel(s) satisfy the compare condition; otherwise, the output pixel is set to 0. You can compare either two images, or an image and a constant value, using the following compare conditions: “greater”, “greater or equal”, “less”, “less or equal”, “equal”. Compare condition is specified as a function argument of IppCmpOp type (see Structures and Enumerators for more information). Images containing floating-point data can also be compared for being equal within a given tolerance eps.
For images with multi-channel data, the compare condition for a given pixel is true only when each color channel value of that pixel satisfies this condition.
- Compare
Compares pixel values of two images using a specified compare operation. - CompareC
Compares pixel values of a source image to a given value using a specified compare operation. - CompareEqualEps
Compares two images with floating-point data, testing whether pixel values are equal within a certain tolerance eps. - CompareEqualEpsC
Tests whether floating-point pixel values of an image are equal to a given value within a certain tolerance eps.