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 outside threshold values.
ThresholdImageFilter sets image values to a user-specified "outside" value (by default,
zero) if the image values are below, above, or outside 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 SummaryFields inherited from class org.itk.simple.ProcessObjectswigCMemOwn
- 
Constructor SummaryConstructorsModifierConstructorDescriptionitk::simple::ThresholdImageFilter::ThresholdImageFilter() Default Constructor that takes no arguments and initializes default parametersprotectedThresholdImageFilter(long cPtr, boolean cMemoryOwn) 
- 
Method SummaryModifier and TypeMethodDescriptionvoiddelete()virtual itk::simple::ThresholdImageFilter::~ThresholdImageFilter() DestructorImage itk::simple::ThresholdImageFilter::Execute(Image &&image1) Execute the filter on the input imageprotected voidfinalize()protected static longdoublegetLower()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 classdoubledouble itk::simple::ThresholdImageFilter::GetOutsideValue() const Get the "outside" pixel value.doublegetUpper()double itk::simple::ThresholdImageFilter::GetUpper() const Set/Get methods to set the upper threshold.voidsetLower(double Lower) Self& itk::simple::ThresholdImageFilter::SetLower(double Lower) Set/Get methods to set the lower threshold.voidsetOutsideValue(double OutsideValue) Self& itk::simple::ThresholdImageFilter::SetOutsideValue(double OutsideValue) The pixel type must support comparison operators.voidsetUpper(double Upper) Self& itk::simple::ThresholdImageFilter::SetUpper(double Upper) Set/Get methods to set the upper threshold.protected static longvoidthresholdAbove(double threshold) void itk::simple::ThresholdImageFilter::ThresholdAbove(double threshold)voidthresholdBelow(double threshold) void itk::simple::ThresholdImageFilter::ThresholdBelow(double threshold)voidthresholdOutside(double lower, double upper) void itk::simple::ThresholdImageFilter::ThresholdOutside(double lower, double upper)toString()std::string itk::simple::ThresholdImageFilter::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- 
ThresholdImageFilterprotected ThresholdImageFilter(long cPtr, boolean cMemoryOwn) 
- 
ThresholdImageFilterpublic ThresholdImageFilter()itk::simple::ThresholdImageFilter::ThresholdImageFilter() 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::ThresholdImageFilter::~ThresholdImageFilter() Destructor- Overrides:
- deletein class- ImageFilter
 
- 
setLowerpublic void setLower(double Lower) Self& itk::simple::ThresholdImageFilter::SetLower(double Lower) Set/Get methods to set the lower threshold.
- 
getLowerpublic double getLower()double itk::simple::ThresholdImageFilter::GetLower() const Set/Get methods to set the lower threshold.
- 
setUpperpublic void setUpper(double Upper) Self& itk::simple::ThresholdImageFilter::SetUpper(double Upper) Set/Get methods to set the upper threshold.
- 
getUpperpublic double getUpper()double itk::simple::ThresholdImageFilter::GetUpper() const Set/Get methods to set the upper threshold.
- 
setOutsideValuepublic 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() .
- 
getOutsideValuepublic double getOutsideValue()double itk::simple::ThresholdImageFilter::GetOutsideValue() const Get the "outside" pixel value.
- 
getNamestd::string itk::simple::ThresholdImageFilter::GetName() const Name of this class- Overrides:
- getNamein class- ProcessObject
 
- 
toStringstd::string itk::simple::ThresholdImageFilter::ToString() const Print ourselves out- Overrides:
- toStringin class- ProcessObject
 
- 
execute
- 
thresholdAbovepublic void thresholdAbove(double threshold) void itk::simple::ThresholdImageFilter::ThresholdAbove(double threshold)
- 
thresholdBelowpublic void thresholdBelow(double threshold) void itk::simple::ThresholdImageFilter::ThresholdBelow(double threshold)
- 
thresholdOutsidepublic void thresholdOutside(double lower, double upper) void itk::simple::ThresholdImageFilter::ThresholdOutside(double lower, double upper)
 
-