Class ThresholdImageFilter


public class ThresholdImageFilter extends ImageFilter
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
  • 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

      protected static long getCPtr(ThresholdImageFilter obj)
    • swigRelease

      protected static long swigRelease(ThresholdImageFilter obj)
    • finalize

      protected void finalize()
      Overrides:
      finalize in class ImageFilter
    • delete

      public void delete()
      virtual itk::simple::ThresholdImageFilter::~ThresholdImageFilter() Destructor
      Overrides:
      delete in class ImageFilter
    • 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

      public String getName()
      std::string itk::simple::ThresholdImageFilter::GetName() const Name of this class
      Overrides:
      getName in class ProcessObject
    • toString

      public String toString()
      std::string itk::simple::ThresholdImageFilter::ToString() const Print ourselves out
      Overrides:
      toString in class ProcessObject
    • execute

      public Image execute(Image image1)
      Image itk::simple::ThresholdImageFilter::Execute(Image &&image1) Execute the filter on the input image