THIS FUNCTION IS DEPRECATED. Recalculates resize factors for a tiled image.
IppStatus ippiGetResizeFract(IppiSize srcSize, IppiRect srcRoi, double xFactor, double yFactor, double* xFr, double* yFr, int interpolation);
srcSize |
Size of the source image in pixels. | ||||||||
srcRoi |
Region of interest in the source image (of the IppiRect type). | ||||||||
xFactor, yFactor |
Factors by which the x and y dimensions of the source ROI are changed. The factor value greater than 1 corresponds to increasing the image size in that dimension. | ||||||||
xFr, yFr |
Pointers to the recalculated resize factors. These values should be passed to ippiResizeShift function to bring about the desired resizing of image tiles.The factor value greater than 1 corresponds to increasing the image size in that dimension. | ||||||||
interpolation |
Specifies the interpolation mode. Use one of the following values:
|
THIS FUNCTION IS DEPRECATED. Please use the function ippiResizeSqrPixel for tile processing.
The function ippiGetResizeFract is declared in the ippi.h file. It operates with ROI (see ROI Processing in Geometric Transforms).
Use this function if you need to resize the tiled source image by xFactor in the x direction and yFactor in the y direction. It calculates the new values of resize factors xFr and yFr that should be passed to the ippiResizeShift function, which performs resize operation on the individual tiles.
ippStsNoErr |
Indicates no error. Any other value indicates an error or a warning. |
ippStsSizeErr |
Indicates an error condition if srcSize has a field with zero or negative value. |
ippStsResizeFactorErr |
Indicates an error condition if xFactor or yFactor 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. |
Copyright © 2000 - 2011, Intel Corporation. All rights reserved.