Normalize

Normalize

Supported Technologies

MT, SSE2, Family10h

Synopsis

FwStatus   fwsNormalize_32f ( const Fw32f * pSrc, Fw32f * pDst, int len, Fw32f vsub, Fw32f vdiv );
FwStatus   fwsNormalize_64f ( const Fw64f * pSrc, Fw64f * pDst, int len, Fw64f vsub, Fw64f vdiv );
FwStatus   fwsNormalize_32fc ( const Fw32fc * pSrc, Fw32fc * pDst, int len, Fw32fc vsub, Fw32f vdiv );
FwStatus   fwsNormalize_64fc ( const Fw64fc * pSrc, Fw64fc * pDst, int len, Fw64fc vsub, Fw64f vdiv );
FwStatus   fwsNormalize_16s_Sfs ( const Fw16s * pSrc, Fw16s * pDst, int len, Fw16s vsub, int vdiv, int scaleFactor );
FwStatus   fwsNormalize_16sc_Sfs ( const Fw16sc * pSrc, Fw16sc * pDst, int len, Fw16sc vsub, int vdiv, int scaleFactor );

Parameters

len   Specifies the number of elements in a buffer.
pDst   Pointer to a destination buffer.
pSrc   Pointer to a source buffer.
scaleFactor   Specifies an integer scaling factor for the Sfs operation. The returned result is multiplied by 2^(-scaleFactor).
vdiv   Specifies the denominator.
vsub   Specifies the subtrahend.

Description

These functions step through vector elements in a source buffer, subtract vsub from each element, and divide the differences by vdiv.

The results can be written to a destination buffer or written back to the source buffer.

The 16-bit unsigned and 16-bit signed versions perform an integer scaling operation before writing the results.

The normalize operation is performed as follows.

 Dst = (Src - vsub) / vdiv