AddSquare

Add square

Supported Technologies

MT, SSE2

Synopsis

FwStatus   fwiAddSquare_8u32f_C1IR ( const Fw8u * pSrcint srcStepFw32f * pSrcDstint srcDstStepFwiSize roiSize );
FwStatus   fwiAddSquare_8s32f_C1IR ( const Fw8s * pSrcint srcStepFw32f * pSrcDstint srcDstStepFwiSize roiSize );
FwStatus   fwiAddSquare_16u32f_C1IR ( const Fw16u * pSrcint srcStepFw32f * pSrcDstint srcDstStepFwiSize roiSize );
FwStatus   fwiAddSquare_32f_C1IR ( const Fw32f * pSrcint srcStepFw32f * pSrcDstint srcDstStepFwiSize roiSize );
FwStatus   fwiAddSquare_8u32f_C1IMR ( const Fw8u * pSrcint srcStepconst Fw8u * pMaskint maskStepFw32f * pSrcDstint srcDstStepFwiSize roiSize );
FwStatus   fwiAddSquare_8s32f_C1IMR ( const Fw8s * pSrcint srcStepconst Fw8u * pMaskint maskStepFw32f * pSrcDstint srcDstStepFwiSize roiSize );
FwStatus   fwiAddSquare_16u32f_C1IMR ( const Fw16u * pSrcint srcStepconst Fw8u * pMaskint maskStepFw32f * pSrcDstint srcDstStepFwiSize roiSize );
FwStatus   fwiAddSquare_32f_C1IMR ( const Fw32f * pSrcint srcStepconst Fw8u * pMaskint maskStepFw32f * pSrcDstint srcDstStepFwiSize roiSize );

Parameters

maskStep   Mask buffer step size in bytes (width of the buffer in bytes).
pMask   Pointer to a location in a buffer that contains a mask to be used in the operation.
pSrc   Pointer to a location in a source buffer.
pSrcDst   Pointer to a location in a buffer that contains both the source and destination.
roiSize   Specifies the height and width of an ROI.
srcDstStep   Source and destination buffer step size in bytes (width of both buffers in bytes).
srcStep   Source buffer step size (width of the buffer in bytes).

Description

These functions step through ROIs in two source buffers, add the square of the data in buffer 1 to the data in buffer 2, and write the sum back to the source location.

There are versions of the functions that perform a masking operation before writing the results.