IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
Getting Started in Python

Table of Contents

This page describe first steps that user should follow to use IPSDK as Python third party.

First steps

Using IPSDK with its python interface is very easy. You should start with the creation of a python script file.

import os

IPSDK python core can then simply be used importing PyIPSDK module :

import PyIPSDK

Image processing algorithm are imported by familly :

import PyIPSDK.IPSDKIPLBasicMorphology as morpho

Once imports done, you can simply (for example) load a Tiff image on disk as follow (with inputImgPath an existing tiff image file path) :

# opening of input image
inImg = PyIPSDK.loadTiffImageFile(inputImgPath)

Process a circular erosion computation on it :

# definition of used circular structuring element
inSE = PyIPSDK.circularSEXYInfo(8)
# erosion 2d image computation
outImg = morpho.erode2dImg(inImg, inSE)

Save result to an ouput Tiff file (with outputImgPath a valid tiff image file path) :

# save generated image
PyIPSDK.saveTiffImageFile(outputImgPath, outImg)

Summary of all these operations is then given by :

import os
import PyIPSDK
import PyIPSDK.IPSDKIPLBasicMorphology as morpho
# opening of input image
inImg = PyIPSDK.loadTiffImageFile(inputImgPath)
# definition of used circular structuring element
inSE = PyIPSDK.circularSEXYInfo(8)
# erosion 2d image computation
outImg = morpho.erode2dImg(inImg, inSE)
# save generated image
PyIPSDK.saveTiffImageFile(outputImgPath, outImg)

Next steps

You are now ready to use our IPSDK python wrapping. We recommend you to start by reading the associated IPSDK Python wrapping samples documentation.

You should then consult the Image processing algorithms documentation to start with other algorithms.