IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit

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

IPSDKIPLBASICMORPHOLOGY_API image::ImagePtr ipsdk::imaproc::morpho::boundary2dImg (const image::ImageConstPtr &pInBinImg)
 wrapper function for Algorithm allowing to extract boundary of a binary 2d image More...
 
IPSDKIPLBASICMORPHOLOGY_API image::ImagePtr ipsdk::imaproc::morpho::boundary2dImg (const image::ImageConstPtr &pInBinImg, const eNeighborhood2dType &neighborhood2dType)
 wrapper function for Algorithm allowing to extract boundary of a binary 2d image More...
 
IPSDKIPLBASICMORPHOLOGY_API void ipsdk::imaproc::morpho::boundary2dImg (const image::ImageConstPtr &pInBinImg, const eNeighborhood2dType &neighborhood2dType, const image::ImagePtr &pOutImg)
 wrapper function for Algorithm allowing to extract boundary of a binary 2d image More...
 

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

Attributes description

Attribute description for algorithm :

Name ToolTip Default Initializer
ipsdk::imaproc::attr::InBinImg [Input] binary image for processing operation X
ipsdk::imaproc::attr::InOptNeighborhood2d [Input optional] neighborhood 2d type for operation X
ipsdk::imaproc::attr::OutImg [Output] image for processing operation ipsdk::imaproc::duplicateInOut (_pOutImg, _pInBinImg)

Global Rule description

Global rule description for algorithm :
ipsdk::imaproc::matchSizeAndType (_pInBinImg,_pOutImg)

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

Associated library

IPSDKIPLBasicMorphology

Header file

Code Example

// opening input image
ImagePtr pInBinImg = loadTiffImageFile(inputImgPath);
// compute boundary on input image
ImagePtr pOutImg = boundary2dImg(pInBinImg, neighborhood2dType);
See also
Boundary2dImgLvl1
Boundary2dImgLvl2
Boundary2dImgLvl3

Function Documentation

◆ boundary2dImg() [1/3]

IPSDKIPLBASICMORPHOLOGY_API image::ImagePtr ipsdk::imaproc::morpho::boundary2dImg ( const image::ImageConstPtr pInBinImg)

wrapper function for Algorithm allowing to extract boundary of a binary 2d image

Exceptions
ipsdk::processor::IPSDKBaseProcessingExceptionon failure

◆ boundary2dImg() [2/3]

IPSDKIPLBASICMORPHOLOGY_API image::ImagePtr ipsdk::imaproc::morpho::boundary2dImg ( const image::ImageConstPtr pInBinImg,
const eNeighborhood2dType neighborhood2dType 
)

wrapper function for Algorithm allowing to extract boundary of a binary 2d image

Exceptions
ipsdk::processor::IPSDKBaseProcessingExceptionon failure

◆ boundary2dImg() [3/3]

IPSDKIPLBASICMORPHOLOGY_API void ipsdk::imaproc::morpho::boundary2dImg ( const image::ImageConstPtr pInBinImg,
const eNeighborhood2dType neighborhood2dType,
const image::ImagePtr pOutImg 
)

wrapper function for Algorithm allowing to extract boundary of a binary 2d image

Exceptions
ipsdk::processor::IPSDKBaseProcessingExceptionon failure