AbsDiffC

Absolute difference of a source value and a constant

Supported Technologies

MT, SSE2, Family10h

Synopsis

FwStatus   fwiAbsDiffC_8u_C1R ( const Fw8u * pSrcint srcStepFw8u * pDstint dstStepFwiSize roiSizeint value );
FwStatus   fwiAbsDiffC_16u_C1R ( const Fw16u * pSrcint srcStepFw16u * pDstint dstStepFwiSize roiSizeint value );
FwStatus   fwiAbsDiffC_32f_C1R ( const Fw32f * pSrcint srcStepFw32f * pDstint dstStepFwiSize roiSizeFw32f value );

Parameters

dstStep   Destination buffer step size (width of the buffer in bytes).
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.

Description

These functions step through an ROI in a source buffer, calculate the absolute value of the difference between the source data and a specified constant, and write the result to a destination buffer.