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 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 parametersprotectedThresholdImageFilter(long cPtr, boolean cMemoryOwn) -
Method Summary
Modifier 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.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
-
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:
finalizein classImageFilter
-
delete
public void delete()virtual itk::simple::ThresholdImageFilter::~ThresholdImageFilter() Destructor- Overrides:
deletein 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:
getNamein classProcessObject
-
toString
std::string itk::simple::ThresholdImageFilter::ToString() const Print ourselves out- Overrides:
toStringin classProcessObject
-
execute
-
thresholdAbove
public void thresholdAbove(double threshold) void itk::simple::ThresholdImageFilter::ThresholdAbove(double threshold) -
thresholdBelow
public void thresholdBelow(double threshold) void itk::simple::ThresholdImageFilter::ThresholdBelow(double threshold) -
thresholdOutside
public void thresholdOutside(double lower, double upper) void itk::simple::ThresholdImageFilter::ThresholdOutside(double lower, double upper)
-