IPSDK 0.2
IPSDK : Image Processing Software Development Kit
Remove Border 3dSee full documentation
imageremoveBorder3dImg (inBinLabImg3d)

Detailed Description

removal of connected components in contact with image borders in binary 3d images

This algorithm allows to remove connected components in contact with at least an image border in an input binary image InBinLabImg3d with respect to a given neighborhood 3d policy (see 3d neighborhood models).

Two versions of binary algorithm are implemented which can be selected using attribute InOptOptimizationPolicy which associated to enumerate ipsdk::imaproc::attr::eProcessingOptimizationPolicy :

An example of border removal is illustrated in 2d case : see Remove Border 2d.

Example of Python code :

Example imports

import PyIPSDK
import PyIPSDK.IPSDKIPLAdvancedMorphology as advmorpho

Code Example

# opening of input image
inBinImg = PyIPSDK.loadTiffImageFile(inputImgPath)
# compute border removal on input image
outImg = advmorpho.removeBorder3dImg(inBinImg)

Example of C++ code :

Example informations

Header file

#include <IPSDKIPL/IPSDKIPLAdvancedMorphology/Processor/RemoveBorder3dImg/RemoveBorder3dImg.h>

Code Example

// opening input image
ImagePtr pInBinImg = loadTiffImageFile(inputImgPath);
// compute border removal on input image
ImagePtr pOutImg = removeBorder3dImg(pInBinImg);