IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit

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

IPSDKIPLADVANCEDMORPHOLOGY_API image::ImagePtr ipsdk::imaproc::advmorpho::dilateLabel3dImg (const image::ImageConstPtr &pInLabImg)
 wrapper function for Dilate the labels in the input label image until filling all pixels More...
 
IPSDKIPLADVANCEDMORPHOLOGY_API image::ImagePtr ipsdk::imaproc::advmorpho::dilateLabel3dImg (const image::ImageConstPtr &pInLabImg, const ipsdk::imaproc::attr::eDilateLabelMode &mode)
 wrapper function for Dilate the labels in the input label image until filling all pixels More...
 
IPSDKIPLADVANCEDMORPHOLOGY_API void ipsdk::imaproc::advmorpho::dilateLabel3dImg (const image::ImageConstPtr &pInLabImg, const ipsdk::image::ImagePtr &pOutlabelImg)
 wrapper function for Dilate the labels in the input label image until filling all pixels More...
 
IPSDKIPLADVANCEDMORPHOLOGY_API void ipsdk::imaproc::advmorpho::dilateLabel3dImg (const image::ImageConstPtr &pInLabImg, const ipsdk::imaproc::attr::eDilateLabelMode &mode, const ipsdk::image::ImagePtr &pOutlabelImg)
 wrapper function for Dilate the labels in the input label image until filling all pixels More...
 

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.

Attributes description

Attribute description for algorithm :

Name ToolTip Default Initializer
ipsdk::imaproc::attr::InLabelImg3d [Input] label image 3d for processing operation X
ipsdk::imaproc::attr::InOptDilateLabelMode [Input Optional] Output mode of DilateLabel algorithms X
ipsdk::imaproc::attr::OutLabelImg3d [Output] label image 3d for processing operation duplicateInOut (_pOutLabelImg3d, _pInLabelImg3d)

Global Rule description

Global rule description for algorithm :
ipsdk::imaproc::matchSizeAndType (_pInLabelImg3d,_pOutLabelImg3d)

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

Associated library

IPSDKIPLAdvancedMorphology

Header file

Code Example

ImagePtr pOutImg = dilateLabel3dImg(pInLabelImg, mode);
See also
DilateLabel3dImgLvl1
DilateLabel3dImgLvl2
DilateLabel3dImgLvl3

Function Documentation

◆ dilateLabel3dImg() [1/4]

IPSDKIPLADVANCEDMORPHOLOGY_API image::ImagePtr ipsdk::imaproc::advmorpho::dilateLabel3dImg ( const image::ImageConstPtr pInLabImg)

wrapper function for Dilate the labels in the input label image until filling all pixels

Exceptions
ipsdk::processor::IPSDKBaseProcessingExceptionon failure

◆ dilateLabel3dImg() [2/4]

IPSDKIPLADVANCEDMORPHOLOGY_API image::ImagePtr ipsdk::imaproc::advmorpho::dilateLabel3dImg ( const image::ImageConstPtr pInLabImg,
const ipsdk::imaproc::attr::eDilateLabelMode mode 
)

wrapper function for Dilate the labels in the input label image until filling all pixels

Exceptions
ipsdk::processor::IPSDKBaseProcessingExceptionon failure

◆ dilateLabel3dImg() [3/4]

IPSDKIPLADVANCEDMORPHOLOGY_API void ipsdk::imaproc::advmorpho::dilateLabel3dImg ( const image::ImageConstPtr pInLabImg,
const ipsdk::image::ImagePtr pOutlabelImg 
)

wrapper function for Dilate the labels in the input label image until filling all pixels

Exceptions
ipsdk::processor::IPSDKBaseProcessingExceptionon failure

◆ dilateLabel3dImg() [4/4]

IPSDKIPLADVANCEDMORPHOLOGY_API void ipsdk::imaproc::advmorpho::dilateLabel3dImg ( const image::ImageConstPtr pInLabImg,
const ipsdk::imaproc::attr::eDilateLabelMode mode,
const ipsdk::image::ImagePtr pOutlabelImg 
)

wrapper function for Dilate the labels in the input label image until filling all pixels

Exceptions
ipsdk::processor::IPSDKBaseProcessingExceptionon failure