IPSDK 0.2
IPSDK : Image Processing Software Development Kit
imageboundary2dImg (inBinImg)
imageboundary2dImg (inBinImg,neighborhood2dType)

Detailed Description

Algorithm allowing to extract boundary of a binary 2d image.

This algorithm allows to extract boundary of a binary 2d image with respect to a neighborhood type.

For more informations on used neighborhood 2d types report to 2d neighborhood models.

Here is an example of a boundary extraction operation applied to a binary input image (with 8 connexity neighborhood type) :

boundary2dImg8Connexity.png

Here is an example of a boundary extraction operation applied to a binary input image (with 4 connexity neighborhood type) :

boundary2dImg4Connexity.png

Example of Python code :

Example imports

import PyIPSDK
import PyIPSDK.IPSDKIPLBasicMorphology as morpho

Code Example

# opening of input image
inImg = PyIPSDK.loadTiffImageFile(inputImgPath)
# boundary 2d image computation
outImg = morpho.boundary2dImg(inImg)

Example of C++ code :

Example informations

Header file

#include <IPSDKIPL/IPSDKIPLBasicMorphology/Processor/Boundary2dImg/Boundary2dImg.h>

Code Example

// opening input image
ImagePtr pInBinImg = loadTiffImageFile(inputImgPath);
// compute boundary on input image
ImagePtr pOutImg = boundary2dImg(pInBinImg, neighborhood2dType);