Specifications
Intel
®
Image Processing Library Reference Manual
10-16
10
EqualFPEps
Tests if the floating-point pixel
values in two images are equal
within a tolerance ε.
IPLStatus iplEqualFPEps (IplImage*
img1, IplImage* img2
,
IplImage*
dst
, float
eps
);
img1, img2
The source images.
dst
The resultant 1-bit image.
eps
The tolerance value.
Discussion
The function iplEqualFPEps() tests if the corresponding pixels of two
input images are equal within the tolerance
eps
, and writes the results to a
1-bit image
dst
. If the absolute value of difference of the pixel values in
img1
and
img2
is less than
eps
, then the corresponding pixel in
dst
is set
to 1; otherwise the pixel in
dst
is set to 0.
Both
img1
and
img2
must contain 32-bit floating-point pixel data. They
must have the same origin and COI settings. If the COI is not set, pixels in
img1
and
img2
are considered to be “equal” only if each channel in the
img1
pixel is equal, within the tolerance
eps
, to that channel in the
img2
pixel. If the COI is set, the function compares only the COI values.
The function returns
IPL_StsOK if the compare operation is successful.
If you pass incompatible
img1
and
img2
or a null pointer, the function does
not perform the compare operation and returns an error status code.