Developer Reference

  • 2021
  • 03/26/2021
  • Public Content
Contents

GetResizeCuboid

Computes coordinates of the destination cuboid.

Syntax

IppStatus ipprGetResizeCuboid(IpprCuboid
srcVoi
, IpprCuboid*
pDstCuboid
, double
xFactor
, double
yFactor
, double
zFactor
, double
xShift
, double
yShift
, double
zShift
, int
interpolation
);
Include Files
ippi.h
Domain Dependencies
Headers:
ippcore.h
,
ippvm.h
,
ipps.h
Libraries:
ippcore.lib
,
ippvm.lib
,
ipps.lib
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
This function operates with volume of interest (VOI).
This function computes the coordinates of the resultant cuboid 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 when
pDstCuboid
is
NULL
.
ippStsSizeErr
Indicates an error when width, or height, or depth of the source and destination volumes is less than, or equal to 0.
ippStsResizeFactorErr
Indicates an error when one of the
xFactor
,
yFactor
,
zFactor
values is less than, or equal to 0.
ippStsInterpolationErr
Indicates an error when
interpolation
has an illegal value.

Product and Performance Information

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.