IPSDK 0.2
IPSDK : Image Processing Software Development Kit
Dilation of 3D labelsSee full documentation
imagedilateLabel3dImg (inLabImg)
imagedilateLabel3dImg (inLabImg,mode)

Detailed Description

Dilate the labels in the input label image until filling all pixels.

This algorithm dilates the labels in the input image until the image contains no more background voxels.

It is also possible to ask to the algorithm an additional step to compute the separation lines.

Please see Dilation of 2D labels for 2D illustrations of the label dilation.

Example of Python code :

Example imports

import PyIPSDK
import PyIPSDK.IPSDKIPLAdvancedMorphology as advmorpho

Code Example

# opening of input binary image
inBinImg = PyIPSDK.loadTiffImageFile(inputImgPath)
# Labelize the binary image
labelImg = advmorpho.connectedComponent3dImg(inBinImg)
# dilate the labels to have a basins image
outBasinsImg = advmorpho.dilateLabel3dImg(labelImg)
# dilate the labels to have separated basins
outSplitImg = advmorpho.dilateLabel3dImg(labelImg, PyIPSDK.eDLM_Split)

Example of C++ code :

Example informations

Header file

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

Code Example

ImagePtr pOutImg = dilateLabel3dImg(pInLabelImg, mode);