ResizeShift

THIS FUNCTION IS DEPRECATED. Changes the size of an image tile.

Syntax

Case 1: Operation on pixel-order data

IppStatus ippiResizeShift_<mod>(const Ipp<datatype>* pSrc, IppiSize srcSize, int srcStep, IppiRect srcRoi, Ipp<datatype>* pDst, int dstStep, IppiSize dstRoiSize, double xFr, double yFr, double xShift, double yShift, int interpolation);

Supported values for mod:

8u_C1R

16u_C1R

32f_C1R

8u_C3R

16u_C3R

32f_C3R

8u_C4R

16u_C4R

32f_C4R

8u_AC4R

16u_AC4R

32f_AC4R

Case 2: Operation on planar-order data

IppStatus ippiResizeShift_<mod>(const Ipp<datatype>* const pSrc[3], IppiSize srcSize, int srcStep, IppiRect srcRoi, Ipp<datatype>* const pDst[3], int dstStep, IppiSize dstRoiSize, double xFr, double yFr, double xShift, double yShift, int interpolation);

Supported values for mod:

8u_P3R

16u_P3R

32f_P3R

IppStatus ippiResizeShift_<mod>(const Ipp<datatype>* const pSrc[4], IppiSize srcSize, int srcStep, IppiRect srcRoi, Ipp<datatype>* const pDst[4], int dstStep, IppiSize dstRoiSize, double xFr, double yFr, double xShift, double yShift, int interpolation);

Supported values for mod:

8u_P4R

16u_P4R

32f_P4R

Parameters

pSrc

Pointer to the source image. An array of 3 or 4 pointers to different color planes in case of data in planar format.

srcSize

Size of the source image in pixels.

srcStep

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

srcRoi

Region of interest in the source image (of the IppiRect type).

pDst

Pointer to the destination image ROI. An array of 3 or 4 pointers to destination ROI in different color planes for planar image.

dstStep

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

dstRoiSize

Size of the destination ROI in pixels.

xFr, yFr

Factors, that are used to obtain the desired resizing of the source image ROI by the xFactor, yFactor.

xShift, yShift

Corrections of the position of the processing area (srcRect).

interpolation

Specifies the interpolation mode. Use one of the following values:

IPPI_INTER_NN

nearest neighbor interpolation

IPPI_INTER_LINEAR

linear interpolation

IPPI_INTER_CUBIC

cubic interpolation

IPPI_INTER_LANCZOS

interpolation with Lanczos window.

Description

Caution iconCaution

THIS FUNCTION IS DEPRECATED. Please use the function ippiResizeSqrPixel for tile processing.

The function ippiResizeShift is declared in the ippi.h file. It operates with ROI (see ROI Processing in Geometric Transforms).

This function is used for resizing the tiled image by xFactor in the x direction and yFactor in the y direction. Prior to using it, the ippiGetResizeFract function should be called to calculate the values of the xFr and yFr factors. The image size can be either reduced or increased in each direction, depending on the values of xFactor, yFactor. The value of xFr or yFr factor greater than 1 corresponds to reducing the size, and the value less than 1 corresponds to increasing the image size in that dimension. The result is resampled using the interpolation mode specified by the interpolation parameter, and written to the destination image ROI.

Return Values

ippStsNoErr

Indicates no error. Any other value indicates an error.

ippStsNullPtrErr

Indicates an error condition if one of the specified pointers is NULL.

ippStsSizeErr

Indicates an error condition if srcSize or dstRoiSize has a field with zero or negative value.

ippStsResizeFactorErr

Indicates an error condition if xFr or yFr is less than or equal to zero.

ippStsInterpolationErr

Indicates an error condition if interpolation has an illegal value.

ippStsWrongIntersectROIErr

Indicates an error condition if srcRoi has no intersection with the source image.

Submit feedback on this help topic

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