AbsDiff

Absolute difference of two source values

Supported Technologies

MT, SSE2, Family10h

Synopsis

FwStatus   fwiAbsDiff_8u_C1R ( const Fw8u * pSrc1int src1Stepconst Fw8u * pSrc2int src2StepFw8u * pDstint dstStepFwiSize roiSize );
FwStatus   fwiAbsDiff_16u_C1R ( const Fw16u * pSrc1int src1Stepconst Fw16u * pSrc2int src2StepFw16u * pDstint dstStepFwiSize roiSize );
FwStatus   fwiAbsDiff_32f_C1R ( const Fw32f * pSrc1int src1Stepconst Fw32f * pSrc2int src2StepFw32f * pDstint dstStepFwiSize roiSize );

Parameters

dstStep   Destination buffer step size (width of the buffer in bytes).
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, calculate the absolute value of the difference between the data in source buffer 1 and the data in source buffer 2, and write the results to a destination buffer.