GetResizeCuboid

Computes coordinates of the destination cuboid.

Syntax

IppStatus ipprGetResizeCuboid(IpprCuboid srcVoi, Ipp8u* , IpprCuboid* pDstCuboid, double xFactor, double yFactor, double zFactor, double xShift, double yShift, double zShift, int interpolation);

Parameters

srcVoi

Volume of interest of the source volume.

pDstCuboid

Pointer to the destination cuboid.

x-, y-, zFactor

Factors by which the x, y, z dimensions of the source VOI are changed.

x-, y-, zShift

Shift values in the x, y, and z directions respectively.

interpolation

Type of interpolation, the following values are possible:

IPPI_INTER_NN - nearest neighbor interpolation,

IPPI_INTER_LINEAR - trilinear interpolation,

IPPI_INTER_CUBIC - tricubic interpolation,

IPPI_INTER_CUBIC2P_BSPLINE - B-spline,

IPPI_INTER_CUBIC2P_CATMULLROM - Catmull-Rom spline,

IPPI_INTER_CUBIC2P_B05C03 - special two-parameters filter (1/2, 3/10).

Description

The function ipprGetResizeCuboid is declared in the ippr.h file. It operates with volume of interest (VOI).

This function computes the coordinates of the resultant cubouid which is obtained if the source volume srcVoi is resized with the specified parameters. The resize operation is not performed.

Return Values

ippStsNoErr

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

ippStsNullPtrErr

Indicates an error if the pointer pDstCuboid is NULL.

ippStsSizeErr

Indicates an error if width, or height, or depth of the source and destination volumes is less than or equal to 0.

ippStsResizeFactorErr

Indicates an error condition if one of the xFactor, yFactor, zFactor is less than or equal to 0.

ippStsInterpolationErr

Indicates an error condition if interpolation has an illegal value.

Submit feedback on this help topic

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