image = | dilateLabel3dImg (inLabImg) |
image = | dilateLabel3dImg (inLabImg,mode) |
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
inBinImg = PyIPSDK.loadTiffImageFile(inputImgPath)
labelImg = advmorpho.connectedComponent3dImg(inBinImg)
outBasinsImg = advmorpho.dilateLabel3dImg(labelImg)
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);