PhasePack

Computes the phase of elements of an image in packed format.

Syntax

IppStatus ippiPhasePack_<mod>(const Ipp<datatype>* pSrc, int srcStep, Ipp<datatype>* pDst, int dstStep, IppiSize dstRoiSize);

Supported values for mod:

32f_C1R

32f_C3R

IppStatus ippiPhasePack_<mod>(const Ipp<datatype>* pSrc, int srcStep, Ipp<datatype>* pDst, int dstStep, IppiSize dstRoiSize, int scaleFactor);

Supported values for mod:

16s_C1RSfs

32s_C1RSfs

16s_C3RSfs

32s_C3RSfs

Parameters

pSrc

Pointer to the source image ROI.

srcStep

Distance in bytes between starts of consecutive lines in the source image.

pDst

Pointer to the destination image ROI.

dstStep

Distance in bytes between starts of consecutive lines in the destination image.

dstRoiSize

Size of the destination ROI in pixels.

scaleFactor

The factor for integer result scaling (see Integer Result Scaling).

Description

The function ippiPhasePack is declared in the ippi.h file. It operates with ROI (see Regions of Interest in Intel IPP).

This function computes the phase of elements of a source image pSrc given in RCPack2D format and stores results in the destination image pDst.

Return Values

ippStsNoErr

Indicates no error. Any other value indicates an error or a warning.

ippStsNullPtrErr

Indicates an error condition if pSrc or pDst pointer is NULL.

ippStsStepErr

Indicates an error condition if srcStep or dstStep value is zero or negative.

ippStsSizeErr

Indicates an error condition if width or height of images is less than or equal to zero.

Submit feedback on this help topic

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