Package org.itk.simple
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://www.insight-journal.org/browse/publication/92
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 parametersprotected
MorphologicalWatershedImageFilter
(long cPtr, boolean cMemoryOwn) -
Method Summary
Modifier and TypeMethodDescriptionvoid
delete()
virtual itk::simple::MorphologicalWatershedImageFilter::~MorphologicalWatershedImageFilter() DestructorImage itk::simple::MorphologicalWatershedImageFilter::Execute(const Image &image1) Execute the filter on the input imageprotected void
finalize()
void
Self& itk::simple::MorphologicalWatershedImageFilter::FullyConnectedOff()void
Self& itk::simple::MorphologicalWatershedImageFilter::FullyConnectedOn() Set the value of FullyConnected to true or false respectfully.protected static long
boolean
bool itk::simple::MorphologicalWatershedImageFilter::GetFullyConnected() const Set/Get whether the connected components are defined strictly by face connectivity or by face+edge+vertex connectivity.double
getLevel()
double itk::simple::MorphologicalWatershedImageFilter::GetLevel() constboolean
bool 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 classvoid
Self& itk::simple::MorphologicalWatershedImageFilter::MarkWatershedLineOff()void
Self& itk::simple::MorphologicalWatershedImageFilter::MarkWatershedLineOn() Set the value of MarkWatershedLine to true or false respectfully.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.void
setLevel
(double Level) Self& itk::simple::MorphologicalWatershedImageFilter::SetLevel(double Level)void
setMarkWatershedLine
(boolean MarkWatershedLine) Self& itk::simple::MorphologicalWatershedImageFilter::SetMarkWatershedLine(bool MarkWatershedLine) Set/Get whether the watershed pixel must be marked or not.protected static long
toString()
std::string itk::simple::MorphologicalWatershedImageFilter::ToString() const Print ourselves outMethods inherited from class org.itk.simple.ImageFilter
getCPtr, swigRelease
Methods 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:
finalize
in classImageFilter
-
delete
public void delete()virtual itk::simple::MorphologicalWatershedImageFilter::~MorphologicalWatershedImageFilter() Destructor- Overrides:
delete
in 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:
getName
in classProcessObject
-
toString
std::string itk::simple::MorphologicalWatershedImageFilter::ToString() const Print ourselves out- Overrides:
toString
in classProcessObject
-
execute
Image itk::simple::MorphologicalWatershedImageFilter::Execute(const Image &image1) Execute the filter on the input image
-