Package org.itk.simple
Class IsolatedWatershedImageFilter
java.lang.Object
org.itk.simple.ProcessObject
org.itk.simple.ImageFilter
org.itk.simple.IsolatedWatershedImageFilter
Isolate watershed basins using two seeds.
IsolatedWatershedImageFilter labels pixels with ReplaceValue1 that are in the same watershed basin
as Seed1 AND NOT the same as Seed2. The filter adjusts the waterlevel
until the two seeds are not in different basins. The user supplies a
Watershed threshold. The algorithm uses a binary search to adjust the
upper waterlevel, starting at UpperValueLimit. UpperValueLimit
defaults to the 1.0.
See:
itk::simple::IsolatedWatershed for the procedural interface
itk::IsolatedWatershedImageFilter for the Doxygen on the original ITK class.
C++ includes: sitkIsolatedWatershedImageFilter.h
-
Field Summary
Fields inherited from class org.itk.simple.ProcessObject
swigCMemOwn
-
Constructor Summary
ConstructorsModifierConstructorDescriptionitk::simple::IsolatedWatershedImageFilter::IsolatedWatershedImageFilter() Default Constructor that takes no arguments and initializes default parametersprotected
IsolatedWatershedImageFilter
(long cPtr, boolean cMemoryOwn) -
Method Summary
Modifier and TypeMethodDescriptionvoid
delete()
virtual itk::simple::IsolatedWatershedImageFilter::~IsolatedWatershedImageFilter() DestructorImage itk::simple::IsolatedWatershedImageFilter::Execute(const Image &image1) Execute the filter on the input imageprotected void
finalize()
protected static long
double
double itk::simple::IsolatedWatershedImageFilter::GetIsolatedValueTolerance() const Set/Get the precision required for the intensity threshold value.getName()
std::string itk::simple::IsolatedWatershedImageFilter::GetName() const Name of this classshort
uint8_t itk::simple::IsolatedWatershedImageFilter::GetReplaceValue1() const Set/Get value to replace Seed1(Seed2) pixels, pixels that are within the basin that contains Seed1(Seed2) this value.short
uint8_t itk::simple::IsolatedWatershedImageFilter::GetReplaceValue2() const Set/Get value to replace Seed1(Seed2) pixels, pixels that are within the basin that contains Seed1(Seed2) this value.getSeed1()
std::vector<uint32_t> itk::simple::IsolatedWatershedImageFilter::GetSeed1() const Set seed point 1.getSeed2()
std::vector<uint32_t> itk::simple::IsolatedWatershedImageFilter::GetSeed2() const Set seed point 2.double
double itk::simple::IsolatedWatershedImageFilter::GetThreshold() const Set/Get the Watershed threshold.double
double itk::simple::IsolatedWatershedImageFilter::GetUpperValueLimit() const Set/Get the limit on the upper waterlevel value.void
setIsolatedValueTolerance
(double IsolatedValueTolerance) Self& itk::simple::IsolatedWatershedImageFilter::SetIsolatedValueTolerance(double IsolatedValueTolerance) Set/Get the precision required for the intensity threshold value.void
setReplaceValue1
(short ReplaceValue1) Self& itk::simple::IsolatedWatershedImageFilter::SetReplaceValue1(uint8_t ReplaceValue1) Set/Get value to replace Seed1(Seed2) pixels, pixels that are within the basin that contains Seed1(Seed2) this value.void
setReplaceValue2
(short ReplaceValue2) Self& itk::simple::IsolatedWatershedImageFilter::SetReplaceValue2(uint8_t ReplaceValue2) Set/Get value to replace Seed1(Seed2) pixels, pixels that are within the basin that contains Seed1(Seed2) this value.void
setSeed1
(VectorUInt32 Seed1) Self& itk::simple::IsolatedWatershedImageFilter::SetSeed1(std::vector< uint32_t > Seed1) Set seed point 1.void
setSeed2
(VectorUInt32 Seed2) Self& itk::simple::IsolatedWatershedImageFilter::SetSeed2(std::vector< uint32_t > Seed2) Set seed point 2.void
setThreshold
(double Threshold) Self& itk::simple::IsolatedWatershedImageFilter::SetThreshold(double Threshold) Set/Get the Watershed threshold.void
setUpperValueLimit
(double UpperValueLimit) Self& itk::simple::IsolatedWatershedImageFilter::SetUpperValueLimit(double UpperValueLimit) Set/Get the limit on the upper waterlevel value.protected static long
toString()
std::string itk::simple::IsolatedWatershedImageFilter::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
-
IsolatedWatershedImageFilter
protected IsolatedWatershedImageFilter(long cPtr, boolean cMemoryOwn) -
IsolatedWatershedImageFilter
public IsolatedWatershedImageFilter()itk::simple::IsolatedWatershedImageFilter::IsolatedWatershedImageFilter() 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::IsolatedWatershedImageFilter::~IsolatedWatershedImageFilter() Destructor- Overrides:
delete
in classImageFilter
-
setSeed1
Self& itk::simple::IsolatedWatershedImageFilter::SetSeed1(std::vector< uint32_t > Seed1) Set seed point 1. This seed will be isolated from Seed2 (if possible). All pixels connected to this seed will be replaced with ReplaceValue1. -
getSeed1
std::vector<uint32_t> itk::simple::IsolatedWatershedImageFilter::GetSeed1() const Set seed point 1. This seed will be isolated from Seed2 (if possible). All pixels connected to this seed will be replaced with ReplaceValue1. -
setSeed2
Self& itk::simple::IsolatedWatershedImageFilter::SetSeed2(std::vector< uint32_t > Seed2) Set seed point 2. This seed will be isolated from Seed1 (if possible). All pixels connected to this seed will be replaced with ReplaceValue2. -
getSeed2
std::vector<uint32_t> itk::simple::IsolatedWatershedImageFilter::GetSeed2() const Set seed point 2. This seed will be isolated from Seed1 (if possible). All pixels connected to this seed will be replaced with ReplaceValue2. -
setThreshold
public void setThreshold(double Threshold) Self& itk::simple::IsolatedWatershedImageFilter::SetThreshold(double Threshold) Set/Get the Watershed threshold. The default is 0. -
getThreshold
public double getThreshold()double itk::simple::IsolatedWatershedImageFilter::GetThreshold() const Set/Get the Watershed threshold. The default is 0. -
setUpperValueLimit
public void setUpperValueLimit(double UpperValueLimit) Self& itk::simple::IsolatedWatershedImageFilter::SetUpperValueLimit(double UpperValueLimit) Set/Get the limit on the upper waterlevel value. The default is 1.0. -
getUpperValueLimit
public double getUpperValueLimit()double itk::simple::IsolatedWatershedImageFilter::GetUpperValueLimit() const Set/Get the limit on the upper waterlevel value. The default is 1.0. -
setIsolatedValueTolerance
public void setIsolatedValueTolerance(double IsolatedValueTolerance) Self& itk::simple::IsolatedWatershedImageFilter::SetIsolatedValueTolerance(double IsolatedValueTolerance) Set/Get the precision required for the intensity threshold value. The default is .001. -
getIsolatedValueTolerance
public double getIsolatedValueTolerance()double itk::simple::IsolatedWatershedImageFilter::GetIsolatedValueTolerance() const Set/Get the precision required for the intensity threshold value. The default is .001. -
setReplaceValue1
public void setReplaceValue1(short ReplaceValue1) Self& itk::simple::IsolatedWatershedImageFilter::SetReplaceValue1(uint8_t ReplaceValue1) Set/Get value to replace Seed1(Seed2) pixels, pixels that are within the basin that contains Seed1(Seed2) this value. The default is 1(0). -
getReplaceValue1
public short getReplaceValue1()uint8_t itk::simple::IsolatedWatershedImageFilter::GetReplaceValue1() const Set/Get value to replace Seed1(Seed2) pixels, pixels that are within the basin that contains Seed1(Seed2) this value. The default is 1(0). -
setReplaceValue2
public void setReplaceValue2(short ReplaceValue2) Self& itk::simple::IsolatedWatershedImageFilter::SetReplaceValue2(uint8_t ReplaceValue2) Set/Get value to replace Seed1(Seed2) pixels, pixels that are within the basin that contains Seed1(Seed2) this value. The default is 1(0). -
getReplaceValue2
public short getReplaceValue2()uint8_t itk::simple::IsolatedWatershedImageFilter::GetReplaceValue2() const Set/Get value to replace Seed1(Seed2) pixels, pixels that are within the basin that contains Seed1(Seed2) this value. The default is 1(0). -
getName
std::string itk::simple::IsolatedWatershedImageFilter::GetName() const Name of this class- Overrides:
getName
in classProcessObject
-
toString
std::string itk::simple::IsolatedWatershedImageFilter::ToString() const Print ourselves out- Overrides:
toString
in classProcessObject
-
execute
Image itk::simple::IsolatedWatershedImageFilter::Execute(const Image &image1) Execute the filter on the input image
-