Package org.itk.simple
Class ThresholdImageFilter
java.lang.Object
org.itk.simple.ProcessObject
org.itk.simple.ImageFilter
org.itk.simple.ThresholdImageFilter
Set image values to a user-specified value if they are below, above,
or between simple threshold values.
ThresholdImageFilter sets image values to a user-specified "outside" value (by default,
"black") if the image values are below, above, or between simple
threshold values.
The available methods are:
ThresholdAbove() : The values greater than the threshold value are set
to OutsideValue
ThresholdBelow() : The values less than the threshold value are set to
OutsideValue
ThresholdOutside() : The values outside the threshold range (less than
lower or greater than upper) are set to OutsideValue
Note that these definitions indicate that pixels equal to the
threshold value are not set to OutsideValue in any of these methods
The pixels must support the operators >= and <=.
See:
itk::simple::Threshold for the procedural interface
itk::ThresholdImageFilter for the Doxygen on the original ITK class.
C++ includes: sitkThresholdImageFilter.h
-
Field Summary
Fields inherited from class org.itk.simple.ProcessObject
swigCMemOwn
-
Constructor Summary
ConstructorsModifierConstructorDescriptionitk::simple::ThresholdImageFilter::ThresholdImageFilter() Default Constructor that takes no arguments and initializes default parametersprotected
ThresholdImageFilter
(long cPtr, boolean cMemoryOwn) -
Method Summary
Modifier and TypeMethodDescriptionvoid
delete()
virtual itk::simple::ThresholdImageFilter::~ThresholdImageFilter() DestructorImage itk::simple::ThresholdImageFilter::Execute(Image &&image1) Execute the filter on the input imageprotected void
finalize()
protected static long
double
getLower()
double itk::simple::ThresholdImageFilter::GetLower() const Set/Get methods to set the lower threshold.getName()
std::string itk::simple::ThresholdImageFilter::GetName() const Name of this classdouble
double itk::simple::ThresholdImageFilter::GetOutsideValue() const Get the "outside" pixel value.double
getUpper()
double itk::simple::ThresholdImageFilter::GetUpper() const Set/Get methods to set the upper threshold.void
setLower
(double Lower) Self& itk::simple::ThresholdImageFilter::SetLower(double Lower) Set/Get methods to set the lower threshold.void
setOutsideValue
(double OutsideValue) Self& itk::simple::ThresholdImageFilter::SetOutsideValue(double OutsideValue) The pixel type must support comparison operators.void
setUpper
(double Upper) Self& itk::simple::ThresholdImageFilter::SetUpper(double Upper) Set/Get methods to set the upper threshold.protected static long
toString()
std::string itk::simple::ThresholdImageFilter::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
-
ThresholdImageFilter
protected ThresholdImageFilter(long cPtr, boolean cMemoryOwn) -
ThresholdImageFilter
public ThresholdImageFilter()itk::simple::ThresholdImageFilter::ThresholdImageFilter() 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::ThresholdImageFilter::~ThresholdImageFilter() Destructor- Overrides:
delete
in classImageFilter
-
setLower
public void setLower(double Lower) Self& itk::simple::ThresholdImageFilter::SetLower(double Lower) Set/Get methods to set the lower threshold. -
getLower
public double getLower()double itk::simple::ThresholdImageFilter::GetLower() const Set/Get methods to set the lower threshold. -
setUpper
public void setUpper(double Upper) Self& itk::simple::ThresholdImageFilter::SetUpper(double Upper) Set/Get methods to set the upper threshold. -
getUpper
public double getUpper()double itk::simple::ThresholdImageFilter::GetUpper() const Set/Get methods to set the upper threshold. -
setOutsideValue
public void setOutsideValue(double OutsideValue) Self& itk::simple::ThresholdImageFilter::SetOutsideValue(double OutsideValue) The pixel type must support comparison operators. Set the "outside" pixel value. The default value NumericTraits<PixelType>::ZeroValue() . -
getOutsideValue
public double getOutsideValue()double itk::simple::ThresholdImageFilter::GetOutsideValue() const Get the "outside" pixel value. -
getName
std::string itk::simple::ThresholdImageFilter::GetName() const Name of this class- Overrides:
getName
in classProcessObject
-
toString
std::string itk::simple::ThresholdImageFilter::ToString() const Print ourselves out- Overrides:
toString
in classProcessObject
-
execute
Image itk::simple::ThresholdImageFilter::Execute(Image &&image1) Execute the filter on the input image
-