IPSDK 4.1
IPSDK : Image Processing Software Development Kit
ResampleRegularZStack3dImg algorithm
imageresampleRegularZStack3dImg (inImg,zScaleFactor,interpolationPolicy)

Detailed Description

Resamples along z-axis a 3d image with regularly spaced z-plans.

This algorithm allows to resample along z-axis a 3d image with regularly spaced z-plans.

The parameters of this algorithm are:

If the user allocates the output image, this last one must satisfy the following criterions:

Example of Python code :

Example imports

import PyIPSDK
import PyIPSDK.IPSDKIPLGeometricTransform as gtrans

Code Example

# define input 3d image from file path
inputImgPath = os.path.join(utImagesCommonPath, "Rope3d.tif")
# load input 3d image from file
inImg = PyIPSDK.loadTiffImageFile(inputImgPath)
# apply linear resampling on input image along z-axis with a scale factor of 1.234
zScaleFactor = 1.234
outImg = gtrans.resampleRegularZStack3dImg(inImg, zScaleFactor, PyIPSDK.eInterpolationPolicy.eIP_Linear)

Example of C++ code :

Example informations

Header file

#include <IPSDKIPL/IPSDKIPLGeometricTransform/Processor/ResampleRegularZStack3dImg/ResampleRegularZStack3dImg.h>

Code Example

// load input 3d image from file
ImagePtr pInImg = image::file::loadTiffImageFile(inImgFilePath);
const ipReal32 zScaleFactor = 1.234f;
// apply linear resampling on input image along z-axis with a scale factor of 1.234
ImagePtr pOutImg = resampleRegularZStack3dImg(pInImg, zScaleFactor, attr::eInterpolationPolicy::eIP_Linear);