Normalize

Normalizes elements of a real or complex vector using offset and division operations.

Syntax

IppStatus ippsNormalize_32f(const Ipp32f* pSrc, Ipp32f* pDst, int len, Ipp32f vSub, Ipp32f vDiv);

IppStatus ippsNormalize_64f(const Ipp64f* pSrc, Ipp64f* pDst, int len, Ipp64f vSub, Ipp64f vDiv);

IppStatus ippsNormalize_32fc(const Ipp32fc* pSrc, Ipp32fc* pDst, int len, Ipp32fc vSub, Ipp32f vDiv);

IppStatus ippsNormalize_64fc(const Ipp64fc* pSrc, Ipp64fc* pDst, int len, Ipp64fc vSub, Ipp64f vDiv);

IppStatus ippsNormalize_16s_Sfs(const Ipp16s* pSrc, Ipp16s* pDst, int len, Ipp16s vSub, int vDiv, int scaleFactor);

IppStatus ippsNormalize_16sc_Sfs(const Ipp16sc* pSrc, Ipp16sc* pDst, int len, Ipp16sc vSub, int vDiv, int scaleFactor);

Parameters

pSrc

Pointer to the source vector.

vSub

Subtrahend value.

vDiv

Denominator value.

pDst

Pointer to the vector which stores the normalized elements.

len

Number of elements in the vector

scaleFactor

Scale factor, refer to Integer Scaling.

Description

The function ippsNormalize is declared in the ipps.h file. This function subtracts vSub from elements of the input vector pSrc, divides the differences by vDiv, and stores the result in pDst. The computation is performed as follows:

pDst[n] = (pSrc[n] - vSub)/vDiv.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error when the pSrc or pDst pointer is NULL.

ippStsSizeErr

Indicates an error when len is less than or equal to 0.

ippStsDivByZeroErr

Indicates an error when vDiv is equal to 0 or less than the minimum floating-point positive number.

Submit feedback on this help topic

Copyright © 2000 - 2011, Intel Corporation. All rights reserved.