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
inIntImg3d = PyIPSDK.loadTiffImageFile(inputGreyImgPath,
PyIPSDK.eTiffDirectoryMode.eTDM_Volume)
inLabMarkImg3d = PyIPSDK.loadTiffImageFile(inputLabelImgPath,
PyIPSDK.eTiffDirectoryMode.eTDM_Volume,
PyIPSDK.eTiffBufferMode.eTBM_Label)
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
eTiffDirectoryMode::eTDM_Volume);
eTiffDirectoryMode::eTDM_Volume,
eTiffBufferMode::eTBM_Label);