CompareEqualEps

Compare floating-point data for equality

Supported Technologies

MT, SSE2, Family10h

Synopsis

FwStatus   fwiCompareEqualEps_32f_C1R ( const Fw32f * pSrc1int src1Stepconst Fw32f * pSrc2int src2StepFw8u * pDstint dstStepFwiSize roiSizeFw32f eps );
FwStatus   fwiCompareEqualEps_32f_C3R ( const Fw32f * pSrc1int src1Stepconst Fw32f * pSrc2int src2StepFw8u * pDstint dstStepFwiSize roiSizeFw32f eps );
FwStatus   fwiCompareEqualEps_32f_C4R ( const Fw32f * pSrc1int src1Stepconst Fw32f * pSrc2int src2StepFw8u * pDstint dstStepFwiSize roiSizeFw32f eps );
FwStatus   fwiCompareEqualEps_32f_AC4R ( const Fw32f * pSrc1int src1Stepconst Fw32f * pSrc2int src2StepFw8u * pDstint dstStepFwiSize roiSizeFw32f eps );

Parameters

dstStep   Destination buffer step size (width of the buffer in bytes).
eps   Tolerance value.
pDst   Pointer to a location in a destination buffer.
pSrc1   Pointer to a location in source buffer one.
pSrc2   Pointer to a location in source buffer two.
roiSize   Specifies the height and width of an ROI.
src1Step   Source buffer one step size (width of the buffer in bytes).
src2Step   Source buffer two step size (width of the buffer in bytes).

Description

These functions step through ROIs in two floating-point source buffers and compare the data in buffer 1 to the data in buffer 2 for equality within a specified tolerance.

When the difference between the values is less than or equal to the specified tolerance, the output data is set to all ones.

When the difference between the floating-point value and the constant is greater than the specified tolerance, the output data is set to all zeroes.

Output data is written to a 1-channel Fw8u destination buffer.