IPSDK 4.1.0.2
IPSDK : Image Processing Software Development Kit
Seeded Watershed 3d
imageseededWatershed3dImg (inIntImg3d,inLabMarkImg3d,inWatershedOutputMode)
imageseededWatershed3dImg (inIntImg3d,inLabMarkImg3d,inWatershedOutputMode,inOptWatershedProcMode)

Detailed Description

seeded watershed 3d algorithm

Watershed algorithm allows to partition an input grey image InIntImg3d, associated to a marker image InLabMarkImg3d, into area of influence. This is a classical technic used for segmentation purposes.

A detailed description of this algorithm is provided in 2d case, see Seeded Watershed 2d.

Note
this algorithm has been packaged for easy separation in classical cases, see :
Warning
This algorithm will not be distributed, flooding processing computation and memory are proceeded on local computer.
See also
https://en.wikipedia.org/wiki/Watershed_%28image_processing%29

Example of Python code :

Example imports

import PyIPSDK
import PyIPSDK.IPSDKIPLAdvancedMorphology as advmorpho

Code Example

# opening of input images
inIntImg3d = PyIPSDK.loadTiffImageFile(inputGreyImgPath,
PyIPSDK.eTiffDirectoryMode.eTDM_Volume)
inLabMarkImg3d = PyIPSDK.loadTiffImageFile(inputLabelImgPath,
PyIPSDK.eTiffDirectoryMode.eTDM_Volume,
PyIPSDK.eTiffBufferMode.eTBM_Label)
# process seeded watershed (watershed lines extraction mode)
outImg = advmorpho.seededWatershed3dImg(inIntImg3d, inLabMarkImg3d,
PyIPSDK.eWatershedOutputMode.eWOM_Lines,
PyIPSDK.eWPM_Repeatable)

Example of C++ code :

Example informations

Header file

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

Code Example

// opening of input grey image
ImagePtr pInIntImg3d = loadTiffImageFile(inputGreyImgPath,
eTiffDirectoryMode::eTDM_Volume);
// opening of input label seeds image
ImagePtr pInLabMarkImg3d = loadTiffImageFile(inputLabelImgPath,
eTiffDirectoryMode::eTDM_Volume,
eTiffBufferMode::eTBM_Label);
// process seeded watershed (watershed lines extraction mode)
ImagePtr pOutImg = seededWatershed3dImg(pInIntImg3d, pInLabMarkImg3d, eWatershedOutputMode::eWOM_Lines);