Intel IPP Integration Wrappers Developer Guide and Reference

ID 751823
Date 1/18/2023
Public

Visible to Intel only — GUID: GUID-29B773AC-28B5-40E3-B396-E25B77689D0F

Document Table of Contents

class IwiResize

The IwiResize class consists of the following Resize operation methods:

IwiResize()

Default constructor.

IwiResize();

IwiResize() with Initialization

Default constructor with initialization.

IwiResize( IwSize srcSize, IwSize dstSize, IppDataType dataType, int channels, IppiInterpolationType interpolation, const IwiResizeParams &params = IwiResizeParams(), const IwiBorderType &border = ippBorderRepl );
Parameters

srcSize

Size of the source image, in pixels.

params

Resize optional parameters.

border

Extrapolation algorithm for out of image pixels processing. Supported values: ippBorderConst, ippBorderRepl, ippBorderMirror, ippBorderInMem.

Exception Values

ippStsNoMemErr

Failed to allocate memory.

ippStsSizeErr

Values of the srcSize and/or dstSize fields are illegal.

ippStsNullPtrErr

The pSpec pointer is NULL.

Return Values

InitAlloc()

Method to allocate and initialize the internal data structure.

IppStatus InitAlloc( IwSize srcSize, IwSize dstSize, IppDataType dataType, Ipp32u channels, IppiInterpolationType interpolation, const IwiResizeParams &params = IwiResizeParams(), const IwiBorderType &border = ippBorderRepl );
Parameters

srcSize

Size of the source image, in pixels.

params

Resize optional parameters.

border

Extrapolation algorithm for out of image pixels processing. Supported values: ippBorderConst, ippBorderRepl, ippBorderMirror, ippBorderInMem.

Exception Values

ippStsNoMemErr

Failed to allocate memory.

ippStsSizeErr

Values of the srcSize and/or dstSize fields are illegal.

ippStsNullPtrErr

The pSpec pointer is NULL.

Return Values

operator()

Method to perform resize operation on the specified image ROI.

IppStatus operator()( const IwiImage &srcImage, IwiImage &dstImage, const IwiBorderType &border = ippBorderRepl const IwiTile &tile = IwiTile() );
Parameters

srcImage

Reference to the source image.

Exception Values

ippStsNotSupportedModeErr

Specified combination of parameters' values is not supported.

ippStsNoMemErr

Failed to allocate memory.

ippStsNullPtrErr

The pSpec pointer is NULL.

Return Values

GetSrcRoi()

Method to calculate source ROI based on the destination ROI.

IwiRoi GetSrcRoi( IwiRoi dstRoi ) const
Parameters

dstRoi

Destination image ROI.

Exception Values
Return Values

Source image ROI

GetBorderSize()

Method to calculate the border size.

IwiBorderSize GetBorderSize() const
Exception Values

ippStsNullPtrErr

At least one of the pointers is NULL.

Return Values

Border size

~IwiResize()

Default destructor .

~IwiResize();