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

Detailed Description

Flips input image along y-axis.

This algorithm flips the input image along its y-axis.

On output image values are given by:

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

An example of y-flipping is shown below:

flipYImg.png

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, "Lena_510x509_UInt8.tif"))
# apply image flipping along y-axis
outImg = gtrans.flipYImg(inImg)

Example of C++ code :

Example informations

Header file

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

Code Example

ImagePtr pInImg = loadTiffImageFile(inputImgFilePath);
ImagePtr pOutImg = gtrans::flipYImg(pInImg);