CompareEqualEpsC

Compare floating-point data to a constant

Supported Technologies

MT, SSE2, Family10h

Synopsis

FwStatus   fwiCompareEqualEpsC_32f_C1R ( const Fw32f * pSrcint srcStepFw32f valueFw8u * pDstint dstStepFwiSize roiSizeFw32f eps );
FwStatus   fwiCompareEqualEpsC_32f_C3R ( const Fw32f * pSrcint srcStepconst Fw32f value[3]Fw8u * pDstint dstStepFwiSize roiSizeFw32f eps );
FwStatus   fwiCompareEqualEpsC_32f_AC4R ( const Fw32f * pSrcint srcStepconst Fw32f value[3]Fw8u * pDstint dstStepFwiSize roiSizeFw32f eps );
FwStatus   fwiCompareEqualEpsC_32f_C4R ( const Fw32f * pSrcint srcStepconst Fw32f value[4]Fw8u * 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.
pSrc   Pointer to a location in a source buffer.
roiSize   Specifies the height and width of an ROI.
srcStep   Source buffer step size (width of the buffer in bytes).
value   Specified value.
value[3]   An array of three specified values.
value[4]   An array of four specified values.

Description

These functions step through an ROI in a source buffer and compare the source floating-point data for equality within a specified tolerance.

When the difference between the floating-point value and the constant 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.