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 Summary
Fields inherited from class org.itk.simple.ProcessObject
swigCMemOwn -
Constructor Summary
ConstructorsModifierConstructorDescriptionitk::simple::MorphologicalWatershedImageFilter::MorphologicalWatershedImageFilter() Default Constructor that takes no arguments and initializes default parametersprotectedMorphologicalWatershedImageFilter(long cPtr, boolean cMemoryOwn) -
Method Summary
Modifier 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.ImageFilter
getCPtr, swigReleaseMethods inherited from class org.itk.simple.ProcessObject
abort, 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
-
MorphologicalWatershedImageFilter
protected MorphologicalWatershedImageFilter(long cPtr, boolean cMemoryOwn) -
MorphologicalWatershedImageFilter
public MorphologicalWatershedImageFilter()itk::simple::MorphologicalWatershedImageFilter::MorphologicalWatershedImageFilter() Default Constructor that takes no arguments and initializes default parameters
-
-
Method Details
-
getCPtr
-
swigRelease
-
finalize
protected void finalize()- Overrides:
finalizein classImageFilter
-
delete
public void delete()virtual itk::simple::MorphologicalWatershedImageFilter::~MorphologicalWatershedImageFilter() Destructor- Overrides:
deletein classImageFilter
-
setLevel
public void setLevel(double Level) Self& itk::simple::MorphologicalWatershedImageFilter::SetLevel(double Level) -
getLevel
public double getLevel()double itk::simple::MorphologicalWatershedImageFilter::GetLevel() const -
setMarkWatershedLine
public 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. -
markWatershedLineOn
public void markWatershedLineOn()Self& itk::simple::MorphologicalWatershedImageFilter::MarkWatershedLineOn() Set the value of MarkWatershedLine to true or false respectfully. -
markWatershedLineOff
public void markWatershedLineOff()Self& itk::simple::MorphologicalWatershedImageFilter::MarkWatershedLineOff() -
getMarkWatershedLine
public 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. -
setFullyConnected
public 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. -
fullyConnectedOn
public void fullyConnectedOn()Self& itk::simple::MorphologicalWatershedImageFilter::FullyConnectedOn() Set the value of FullyConnected to true or false respectfully. -
fullyConnectedOff
public void fullyConnectedOff()Self& itk::simple::MorphologicalWatershedImageFilter::FullyConnectedOff() -
getFullyConnected
public 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. -
getName
std::string itk::simple::MorphologicalWatershedImageFilter::GetName() const Name of this class- Overrides:
getNamein classProcessObject
-
toString
std::string itk::simple::MorphologicalWatershedImageFilter::ToString() const Print ourselves out- Overrides:
toStringin classProcessObject
-
execute
-