Compare to a constant

Supported Technologies

MT, SSE2, Family10h


FwStatus   fwiCompareC_8u_C1R ( const Fw8u * pSrcint srcStepFw8u valueFw8u * pDstint dstStepFwiSize roiSizeFwCmpOp fwCmpOp );
FwStatus   fwiCompareC_8u_C3R ( const Fw8u * pSrcint srcStepconst Fw8u value[3]Fw8u * pDstint dstStepFwiSize roiSizeFwCmpOp fwCmpOp );
FwStatus   fwiCompareC_8u_AC4R ( const Fw8u * pSrcint srcStepconst Fw8u value[3]Fw8u * pDstint dstStepFwiSize roiSizeFwCmpOp fwCmpOp );
FwStatus   fwiCompareC_8u_C4R ( const Fw8u * pSrcint srcStepconst Fw8u value[4]Fw8u * pDstint dstStepFwiSize roiSizeFwCmpOp fwCmpOp );
FwStatus   fwiCompareC_16s_C1R ( const Fw16s * pSrcint srcStepFw16s valueFw8u * pDstint dstStepFwiSize roiSizeFwCmpOp fwCmpOp );
FwStatus   fwiCompareC_16s_C3R ( const Fw16s * pSrcint srcStepconst Fw16s value[3]Fw8u * pDstint dstStepFwiSize roiSizeFwCmpOp fwCmpOp );
FwStatus   fwiCompareC_16s_AC4R ( const Fw16s * pSrcint srcStepconst Fw16s value[3]Fw8u * pDstint dstStepFwiSize roiSizeFwCmpOp fwCmpOp );
FwStatus   fwiCompareC_16s_C4R ( const Fw16s * pSrcint srcStepconst Fw16s value[4]Fw8u * pDstint dstStepFwiSize roiSizeFwCmpOp fwCmpOp );
FwStatus   fwiCompareC_32f_C1R ( const Fw32f * pSrcint srcStepFw32f valueFw8u * pDstint dstStepFwiSize roiSizeFwCmpOp fwCmpOp );
FwStatus   fwiCompareC_32f_C3R ( const Fw32f * pSrcint srcStepconst Fw32f value[3]Fw8u * pDstint dstStepFwiSize roiSizeFwCmpOp fwCmpOp );
FwStatus   fwiCompareC_32f_AC4R ( const Fw32f * pSrcint srcStepconst Fw32f value[3]Fw8u * pDstint dstStepFwiSize roiSizeFwCmpOp fwCmpOp );
FwStatus   fwiCompareC_32f_C4R ( const Fw32f * pSrcint srcStepconst Fw32f value[4]Fw8u * pDstint dstStepFwiSize roiSizeFwCmpOp fwCmpOp );


dstStep   Destination buffer step size (width of the buffer in bytes).
fwCmpOp   Specifies a comparison operation to be performed (fwCmpLess, fwCmpGreater, fwCmpLessEq, fwCmpEq, or fwCmpGreaterEq).
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.


These functions step through an ROI in a source buffer and compare the source data to a specified constant value using a specified compare operation.

The compare operation can be "less than", "less than or equal, "equal", "greater than or equal" or "greater than".

When the comparison evaluates as true, the output data is set to all ones.

When the comparison evaluates as false, the output data is set to all zeroes.

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