Class MorphologicalWatershedImageFilter
java.lang.Object
org.itk.simple.ProcessObject
org.itk.simple.ImageFilter
org.itk.simple.MorphologicalWatershedImageFilter
Watershed segmentation implementation with morphological operators.
Watershed pixel are labeled 0. TOutputImage should be an integer type.
Labels of output image are in no particular order. You can reorder the
labels such that object labels are consecutive and sorted based on
object size by passing the output of this filter to a RelabelComponentImageFilter .
The morphological watershed transform algorithm is described in
Chapter 9.2 of Pierre Soille's book "Morphological Image Analysis:
Principles and Applications", Second Edition, Springer, 2003.
This code was contributed in the Insight Journal paper: "The
watershed transform in ITK - discussion and new developments" by
Beare R., Lehmann G. https://doi.org/10.54294/lf8u75
Gaetan Lehmann. Biologie du Developpement et de la Reproduction, INRA
de Jouy-en-Josas, France.
See:
 WatershedImageFilter , MorphologicalWatershedFromMarkersImageFilter
 itk::simple::MorphologicalWatershed for the procedural interface
 itk::MorphologicalWatershedImageFilter for the Doxygen on the original ITK class.
C++ includes: sitkMorphologicalWatershedImageFilter.h
- 
Field SummaryFields inherited from class org.itk.simple.ProcessObjectswigCMemOwn
- 
Constructor SummaryConstructorsModifierConstructorDescriptionitk::simple::MorphologicalWatershedImageFilter::MorphologicalWatershedImageFilter() Default Constructor that takes no arguments and initializes default parametersprotectedMorphologicalWatershedImageFilter(long cPtr, boolean cMemoryOwn) 
- 
Method SummaryModifier and TypeMethodDescriptionvoiddelete()virtual itk::simple::MorphologicalWatershedImageFilter::~MorphologicalWatershedImageFilter() DestructorImage itk::simple::MorphologicalWatershedImageFilter::Execute(const Image &image1) Execute the filter on the input imageprotected voidfinalize()voidSelf& itk::simple::MorphologicalWatershedImageFilter::FullyConnectedOff()voidSelf& itk::simple::MorphologicalWatershedImageFilter::FullyConnectedOn() Set the value of FullyConnected to true or false respectfully.protected static longbooleanbool itk::simple::MorphologicalWatershedImageFilter::GetFullyConnected() const Set/Get whether the connected components are defined strictly by face connectivity or by face+edge+vertex connectivity.doublegetLevel()double itk::simple::MorphologicalWatershedImageFilter::GetLevel() constbooleanbool itk::simple::MorphologicalWatershedImageFilter::GetMarkWatershedLine() const Set/Get whether the watershed pixel must be marked or not.getName()std::string itk::simple::MorphologicalWatershedImageFilter::GetName() const Name of this classvoidSelf& itk::simple::MorphologicalWatershedImageFilter::MarkWatershedLineOff()voidSelf& itk::simple::MorphologicalWatershedImageFilter::MarkWatershedLineOn() Set the value of MarkWatershedLine to true or false respectfully.voidsetFullyConnected(boolean FullyConnected) Self& itk::simple::MorphologicalWatershedImageFilter::SetFullyConnected(bool FullyConnected) Set/Get whether the connected components are defined strictly by face connectivity or by face+edge+vertex connectivity.voidsetLevel(double Level) Self& itk::simple::MorphologicalWatershedImageFilter::SetLevel(double Level)voidsetMarkWatershedLine(boolean MarkWatershedLine) Self& itk::simple::MorphologicalWatershedImageFilter::SetMarkWatershedLine(bool MarkWatershedLine) Set/Get whether the watershed pixel must be marked or not.protected static longtoString()std::string itk::simple::MorphologicalWatershedImageFilter::ToString() const Print ourselves outMethods inherited from class org.itk.simple.ImageFiltergetCPtr, swigReleaseMethods inherited from class org.itk.simple.ProcessObjectabort, addCommand, debugOff, debugOn, getCPtr, getDebug, getGlobalDefaultCoordinateTolerance, getGlobalDefaultDebug, getGlobalDefaultDirectionTolerance, getGlobalDefaultNumberOfThreads, getGlobalDefaultThreader, getGlobalWarningDisplay, getNumberOfThreads, getNumberOfWorkUnits, getProgress, globalDefaultDebugOff, globalDefaultDebugOn, globalWarningDisplayOff, globalWarningDisplayOn, hasCommand, removeAllCommands, setDebug, setGlobalDefaultCoordinateTolerance, setGlobalDefaultDebug, setGlobalDefaultDirectionTolerance, setGlobalDefaultNumberOfThreads, setGlobalDefaultThreader, setGlobalWarningDisplay, setNumberOfThreads, setNumberOfWorkUnits, swigRelease
- 
Constructor Details- 
MorphologicalWatershedImageFilterprotected MorphologicalWatershedImageFilter(long cPtr, boolean cMemoryOwn) 
- 
MorphologicalWatershedImageFilterpublic MorphologicalWatershedImageFilter()itk::simple::MorphologicalWatershedImageFilter::MorphologicalWatershedImageFilter() Default Constructor that takes no arguments and initializes default parameters
 
- 
- 
Method Details- 
getCPtr
- 
swigRelease
- 
finalizeprotected void finalize()- Overrides:
- finalizein class- ImageFilter
 
- 
deletepublic void delete()virtual itk::simple::MorphologicalWatershedImageFilter::~MorphologicalWatershedImageFilter() Destructor- Overrides:
- deletein class- ImageFilter
 
- 
setLevelpublic void setLevel(double Level) Self& itk::simple::MorphologicalWatershedImageFilter::SetLevel(double Level)
- 
getLevelpublic double getLevel()double itk::simple::MorphologicalWatershedImageFilter::GetLevel() const
- 
setMarkWatershedLinepublic void setMarkWatershedLine(boolean MarkWatershedLine) Self& itk::simple::MorphologicalWatershedImageFilter::SetMarkWatershedLine(bool MarkWatershedLine) Set/Get whether the watershed pixel must be marked or not. Default is true. Set it to false do not only avoid writing watershed pixels, it also decrease algorithm complexity.
- 
markWatershedLineOnpublic void markWatershedLineOn()Self& itk::simple::MorphologicalWatershedImageFilter::MarkWatershedLineOn() Set the value of MarkWatershedLine to true or false respectfully.
- 
markWatershedLineOffpublic void markWatershedLineOff()Self& itk::simple::MorphologicalWatershedImageFilter::MarkWatershedLineOff()
- 
getMarkWatershedLinepublic boolean getMarkWatershedLine()bool itk::simple::MorphologicalWatershedImageFilter::GetMarkWatershedLine() const Set/Get whether the watershed pixel must be marked or not. Default is true. Set it to false do not only avoid writing watershed pixels, it also decrease algorithm complexity.
- 
setFullyConnectedpublic void setFullyConnected(boolean FullyConnected) Self& itk::simple::MorphologicalWatershedImageFilter::SetFullyConnected(bool FullyConnected) Set/Get whether the connected components are defined strictly by face connectivity or by face+edge+vertex connectivity. Default is FullyConnectedOff. For objects that are 1 pixel wide, use FullyConnectedOn.
- 
fullyConnectedOnpublic void fullyConnectedOn()Self& itk::simple::MorphologicalWatershedImageFilter::FullyConnectedOn() Set the value of FullyConnected to true or false respectfully.
- 
fullyConnectedOffpublic void fullyConnectedOff()Self& itk::simple::MorphologicalWatershedImageFilter::FullyConnectedOff()
- 
getFullyConnectedpublic boolean getFullyConnected()bool itk::simple::MorphologicalWatershedImageFilter::GetFullyConnected() const Set/Get whether the connected components are defined strictly by face connectivity or by face+edge+vertex connectivity. Default is FullyConnectedOff. For objects that are 1 pixel wide, use FullyConnectedOn.
- 
getNamestd::string itk::simple::MorphologicalWatershedImageFilter::GetName() const Name of this class- Overrides:
- getNamein class- ProcessObject
 
- 
toStringstd::string itk::simple::MorphologicalWatershedImageFilter::ToString() const Print ourselves out- Overrides:
- toStringin class- ProcessObject
 
- 
execute
 
-