Compare

Compare source data

Supported Technologies

MT, SSE2, Family10h

Synopsis

FwStatus   fwiCompare_8u_C1R ( const Fw8u * pSrc1int src1Stepconst Fw8u * pSrc2int src2StepFw8u * pDstint dstStepFwiSize roiSizeFwCmpOp fwCmpOp );
FwStatus   fwiCompare_8u_C3R ( const Fw8u * pSrc1int src1Stepconst Fw8u * pSrc2int src2StepFw8u * pDstint dstStepFwiSize roiSizeFwCmpOp fwCmpOp );
FwStatus   fwiCompare_8u_C4R ( const Fw8u * pSrc1int src1Stepconst Fw8u * pSrc2int src2StepFw8u * pDstint dstStepFwiSize roiSizeFwCmpOp fwCmpOp );
FwStatus   fwiCompare_8u_AC4R ( const Fw8u * pSrc1int src1Stepconst Fw8u * pSrc2int src2StepFw8u * pDstint dstStepFwiSize roiSizeFwCmpOp fwCmpOp );
FwStatus   fwiCompare_16s_C1R ( const Fw16s * pSrc1int src1Stepconst Fw16s * pSrc2int src2StepFw8u * pDstint dstStepFwiSize roiSizeFwCmpOp fwCmpOp );
FwStatus   fwiCompare_16s_C3R ( const Fw16s * pSrc1int src1Stepconst Fw16s * pSrc2int src2StepFw8u * pDstint dstStepFwiSize roiSizeFwCmpOp fwCmpOp );
FwStatus   fwiCompare_16s_C4R ( const Fw16s * pSrc1int src1Stepconst Fw16s * pSrc2int src2StepFw8u * pDstint dstStepFwiSize roiSizeFwCmpOp fwCmpOp );
FwStatus   fwiCompare_16s_AC4R ( const Fw16s * pSrc1int src1Stepconst Fw16s * pSrc2int src2StepFw8u * pDstint dstStepFwiSize roiSizeFwCmpOp fwCmpOp );
FwStatus   fwiCompare_32f_C1R ( const Fw32f * pSrc1int src1Stepconst Fw32f * pSrc2int src2StepFw8u * pDstint dstStepFwiSize roiSizeFwCmpOp fwCmpOp );
FwStatus   fwiCompare_32f_C3R ( const Fw32f * pSrc1int src1Stepconst Fw32f * pSrc2int src2StepFw8u * pDstint dstStepFwiSize roiSizeFwCmpOp fwCmpOp );
FwStatus   fwiCompare_32f_C4R ( const Fw32f * pSrc1int src1Stepconst Fw32f * pSrc2int src2StepFw8u * pDstint dstStepFwiSize roiSizeFwCmpOp fwCmpOp );
FwStatus   fwiCompare_32f_AC4R ( const Fw32f * pSrc1int src1Stepconst Fw32f * pSrc2int src2StepFw8u * pDstint dstStepFwiSize roiSizeFwCmpOp fwCmpOp );

Parameters

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.
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 source buffers and compare the data in buffer 1 to the data in buffer 2 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.