IPSDK 0.2
IPSDK : Image Processing Software Development Kit
Image z-flip algorithmSee full documentation
imageflipZImg (inImg)

Detailed Description

flips input image along z-axis

This algorithm flips the input 3D image along its z-axis.

On output image values are given by:

\[ OutImg(x, y, z, ...) = InImg(x, y, InImgSizeZ-1-z, ...) \]

Example of Python code :

Example imports

import PyIPSDK
import PyIPSDK.IPSDKIPLGeometricTransform as gtrans

Code Example

# retrieve path of unit test common images directory
utImagesCommonPath = unitTestMonitor.getUTImagesCommonPath()
# load input image from file
inImg = PyIPSDK.loadTiffImageFile(os.path.join(utImagesCommonPath, "Rope3d.tif"))
# apply image flipping along z-axis
outImg = gtrans.flipZImg(inImg)

Example of C++ code :

Example informations

Header file

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

Code Example

ImagePtr pInImg = loadTiffImageFile(inputImgFilePath, eTiffDirectoryMode::eTDM_Volume);
ImagePtr pOutImg = gtrans::flipZImg(pInImg);