Class BinaryThresholdImageFilter
java.lang.Object
org.itk.simple.ProcessObject
org.itk.simple.ImageFilter
org.itk.simple.BinaryThresholdImageFilter
Binarize an input image by thresholding.
This filter produces an output image whose pixels are either one of
two values ( OutsideValue or InsideValue ), depending on whether the
corresponding input image pixels lie between the two thresholds (
LowerThreshold and UpperThreshold ). Values equal to either threshold
is considered to be between the thresholds.
More precisely \\[ Output(x_i) = \\begin{cases} InsideValue & \\text{if
\\f$LowerThreshold \\leq x_i \\leq UpperThreshold\\f$}
\\\\ OutsideValue & \\text{otherwise} \\end{cases} \\]
This filter is templated over the input image type and the output
image type.
The filter expect both images to have the same number of dimensions.
The default values for LowerThreshold and UpperThreshold are:
LowerThreshold = NumericTraits<TInput>::NonpositiveMin() ; UpperThreshold = NumericTraits<TInput>::max() ; Therefore, generally only one of these needs to be set, depending
on whether the user wants to threshold above or below the desired
threshold.
See:
 itk::simple::BinaryThreshold for the procedural interface
 itk::BinaryThresholdImageFilter for the Doxygen on the original ITK class.
C++ includes: sitkBinaryThresholdImageFilter.h
- 
Field SummaryFields inherited from class org.itk.simple.ProcessObjectswigCMemOwn
- 
Constructor SummaryConstructorsModifierConstructorDescriptionitk::simple::BinaryThresholdImageFilter::BinaryThresholdImageFilter() Default Constructor that takes no arguments and initializes default parametersprotectedBinaryThresholdImageFilter(long cPtr, boolean cMemoryOwn) 
- 
Method SummaryModifier and TypeMethodDescriptionvoiddelete()virtual itk::simple::BinaryThresholdImageFilter::~BinaryThresholdImageFilter() DestructorImage itk::simple::BinaryThresholdImageFilter::Execute(Image &&image1) Execute the filter on the input imageprotected voidfinalize()protected static longshortuint8_t itk::simple::BinaryThresholdImageFilter::GetInsideValue() const Get the "inside" pixel value.doubledouble itk::simple::BinaryThresholdImageFilter::GetLowerThreshold() constgetName()std::string itk::simple::BinaryThresholdImageFilter::GetName() const Name of this classshortuint8_t itk::simple::BinaryThresholdImageFilter::GetOutsideValue() const Get the "outside" pixel value.doubledouble itk::simple::BinaryThresholdImageFilter::GetUpperThreshold() const Get the threshold values.voidsetInsideValue(short InsideValue) Self& itk::simple::BinaryThresholdImageFilter::SetInsideValue(uint8_t InsideValue) Set the "inside" pixel value.voidsetLowerThreshold(double LowerThreshold) Self& itk::simple::BinaryThresholdImageFilter::SetLowerThreshold(double LowerThreshold)voidsetOutsideValue(short OutsideValue) Self& itk::simple::BinaryThresholdImageFilter::SetOutsideValue(uint8_t OutsideValue) Set the "outside" pixel value.voidsetUpperThreshold(double UpperThreshold) Self& itk::simple::BinaryThresholdImageFilter::SetUpperThreshold(double UpperThreshold) Set the thresholds.protected static longtoString()std::string itk::simple::BinaryThresholdImageFilter::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- 
BinaryThresholdImageFilterprotected BinaryThresholdImageFilter(long cPtr, boolean cMemoryOwn) 
- 
BinaryThresholdImageFilterpublic BinaryThresholdImageFilter()itk::simple::BinaryThresholdImageFilter::BinaryThresholdImageFilter() 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::BinaryThresholdImageFilter::~BinaryThresholdImageFilter() Destructor- Overrides:
- deletein class- ImageFilter
 
- 
setLowerThresholdpublic void setLowerThreshold(double LowerThreshold) Self& itk::simple::BinaryThresholdImageFilter::SetLowerThreshold(double LowerThreshold)
- 
getLowerThresholdpublic double getLowerThreshold()double itk::simple::BinaryThresholdImageFilter::GetLowerThreshold() const
- 
setUpperThresholdpublic void setUpperThreshold(double UpperThreshold) Self& itk::simple::BinaryThresholdImageFilter::SetUpperThreshold(double UpperThreshold) Set the thresholds. The default lower threshold is NumericTraits<InputPixelType>::NonpositiveMin() . The default upper threshold is NumericTraits<InputPixelType>::max . An exception is thrown if the lower threshold is greater than the upper threshold.
- 
getUpperThresholdpublic double getUpperThreshold()double itk::simple::BinaryThresholdImageFilter::GetUpperThreshold() const Get the threshold values.
- 
setInsideValuepublic void setInsideValue(short InsideValue) Self& itk::simple::BinaryThresholdImageFilter::SetInsideValue(uint8_t InsideValue) Set the "inside" pixel value. The default value NumericTraits<OutputPixelType>::max()
- 
getInsideValuepublic short getInsideValue()uint8_t itk::simple::BinaryThresholdImageFilter::GetInsideValue() const Get the "inside" pixel value.
- 
setOutsideValuepublic void setOutsideValue(short OutsideValue) Self& itk::simple::BinaryThresholdImageFilter::SetOutsideValue(uint8_t OutsideValue) Set the "outside" pixel value. The default value NumericTraits<OutputPixelType>::ZeroValue() .
- 
getOutsideValuepublic short getOutsideValue()uint8_t itk::simple::BinaryThresholdImageFilter::GetOutsideValue() const Get the "outside" pixel value.
- 
getNamestd::string itk::simple::BinaryThresholdImageFilter::GetName() const Name of this class- Overrides:
- getNamein class- ProcessObject
 
- 
toStringstd::string itk::simple::BinaryThresholdImageFilter::ToString() const Print ourselves out- Overrides:
- toStringin class- ProcessObject
 
- 
execute
 
-