Tests whether floating-point pixel values of an image are equal to a given value within a certain tolerance eps.
Case 1: Operation on one-channel data
IppStatus ippiCompareEqualEpsC_32f_C1R(const Ipp32f* pSrc, int srcStep, Ipp32f value, Ipp8u* pDst, int dstStep, IppiSize roiSize, Ipp32f eps);
Case 2: Operation on multi-channel data
IppStatus ippiCompareEqualEpsC_<mod>(const Ipp32f* pSrc, int srcStep, const Ipp32f value[3], Ipp8u* pDst, int dstStep, IppiSize roiSize, Ipp32f eps);
Supported values for mod:
32f_C3R |
32f_AC4R |
IppStatus ippiCompareEqualEpsC_32f_C4R(const Ipp32f* pSrc, int srcStep, const Ipp32f value[4], Ipp8u* pDst, int dstStep, IppiSize roiSize, Ipp32f eps);
pSrc |
Pointer to the source image ROI. |
srcStep |
Distance in bytes between starts of consecutive lines in the source image. |
value |
The value to compare each pixel to. In case of multi-channel data, an array of separate values (one for each channel). |
pDst |
Pointer to the destination image ROI. |
dstStep |
Distance in bytes between starts of consecutive lines in the destination image. |
roiSize |
Size of the source and destination ROI in pixels. |
eps |
The tolerance value. |
The function ippiCompareEqualEpsC is declared in the ippi.h file. It operates with ROI (see Regions of Interest in Intel IPP).
This function tests if pixel values of the source image ROI pSrc are equal to a given constant value within the tolerance eps, and writes the results to a one-channel Ipp8u image pDst. If the absolute value of difference between the pixel value in pSrc and value is less than or equal to eps, then the corresponding pixel in pDst is set to an IPP_MAX_8U value; otherwise the pixel in pDst is set to 0. For multi-channel images, the differences between all color channel values of a pixel and the respective components of value must be within the tolerance eps for the compare condition to be true.
This function processes images with floating-point data only.
ippStsNoErr |
Indicates no error. Any other value indicates an error or a warning. |
ippStsNullPtrErr |
Indicates an error condition if one of the specified pointer is NULL. |
ippStsSizeErr |
Indicates an error condition if roiSize has a field with a zero or negative value. |
ippStsStepErr |
Indicates an error condition if srcStep or dstStep has a zero or negative value. |
ippStsEpsValErr |
Indicates an error condition if eps has a negative value. |
Copyright © 2000 - 2011, Intel Corporation. All rights reserved.