Class IntermodesThresholdImageFilter

java.lang.Object
org.itk.simple.ProcessObject
org.itk.simple.ImageFilter
org.itk.simple.IntermodesThresholdImageFilter

public class IntermodesThresholdImageFilter extends ImageFilter
Threshold an image using the Intermodes Threshold. This filter creates a binary thresholded image that separates an image into foreground and background components. The filter computes the threshold using the IntermodesThresholdCalculator and applies that threshold to the input image using the BinaryThresholdImageFilter . Richard Beare. Department of Medicine, Monash University, Melbourne, Australia. Gaetan Lehmann. Biologie du Developpement et de la Reproduction, INRA de Jouy-en-Josas, France. This implementation was taken from the Insight Journal paper: https://www.insight-journal.org/browse/publication/811 See: HistogramThresholdImageFilter itk::simple::IntermodesThreshold for the procedural interface itk::IntermodesThresholdImageFilter for the Doxygen on the original ITK class. C++ includes: sitkIntermodesThresholdImageFilter.h
  • Constructor Details

    • IntermodesThresholdImageFilter

      protected IntermodesThresholdImageFilter(long cPtr, boolean cMemoryOwn)
    • IntermodesThresholdImageFilter

      public IntermodesThresholdImageFilter()
      itk::simple::IntermodesThresholdImageFilter::IntermodesThresholdImageFilter() Default Constructor that takes no arguments and initializes default parameters
  • Method Details

    • getCPtr

      protected static long getCPtr(IntermodesThresholdImageFilter obj)
    • swigRelease

      protected static long swigRelease(IntermodesThresholdImageFilter obj)
    • finalize

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

      public void delete()
      virtual itk::simple::IntermodesThresholdImageFilter::~IntermodesThresholdImageFilter() Destructor
      Overrides:
      delete in class ImageFilter
    • setInsideValue

      public void setInsideValue(short InsideValue)
      Self& itk::simple::IntermodesThresholdImageFilter::SetInsideValue(uint8_t InsideValue) Set the "inside" pixel value.
    • getInsideValue

      public short getInsideValue()
      uint8_t itk::simple::IntermodesThresholdImageFilter::GetInsideValue() const Get the "inside" pixel value.
    • setOutsideValue

      public void setOutsideValue(short OutsideValue)
      Self& itk::simple::IntermodesThresholdImageFilter::SetOutsideValue(uint8_t OutsideValue) Set the "outside" pixel value. The default value NumericTraits<OutputPixelType>::Zero.
    • getOutsideValue

      public short getOutsideValue()
      uint8_t itk::simple::IntermodesThresholdImageFilter::GetOutsideValue() const Get the "outside" pixel value.
    • setNumberOfHistogramBins

      public void setNumberOfHistogramBins(long NumberOfHistogramBins)
      Self& itk::simple::IntermodesThresholdImageFilter::SetNumberOfHistogramBins(uint32_t NumberOfHistogramBins) Set/Get the number of histogram bins.
    • getNumberOfHistogramBins

      public long getNumberOfHistogramBins()
      uint32_t itk::simple::IntermodesThresholdImageFilter::GetNumberOfHistogramBins() const
    • setMaskOutput

      public void setMaskOutput(boolean MaskOutput)
      Self& itk::simple::IntermodesThresholdImageFilter::SetMaskOutput(bool MaskOutput) Do you want the output to be masked by the mask used in histogram construction. Only relevant if masking is in use.
    • maskOutputOn

      public void maskOutputOn()
      Self& itk::simple::IntermodesThresholdImageFilter::MaskOutputOn() Set the value of MaskOutput to true or false respectfully.
    • maskOutputOff

      public void maskOutputOff()
      Self& itk::simple::IntermodesThresholdImageFilter::MaskOutputOff()
    • getMaskOutput

      public boolean getMaskOutput()
      bool itk::simple::IntermodesThresholdImageFilter::GetMaskOutput() const
    • setMaskValue

      public void setMaskValue(short MaskValue)
      Self& itk::simple::IntermodesThresholdImageFilter::SetMaskValue(uint8_t MaskValue) The value in the mask image, if used, indicating voxels that should be included. Default is the max of pixel type, as in the MaskedImageToHistogramFilter
    • getMaskValue

      public short getMaskValue()
      uint8_t itk::simple::IntermodesThresholdImageFilter::GetMaskValue() const
    • getThreshold

      public double getThreshold()
      double itk::simple::IntermodesThresholdImageFilter::GetThreshold() const Get the computed threshold. This is a measurement. Its value is updated in the Execute methods, so the value will only be valid after an execution.
    • getName

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

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

      public Image execute(Image image, Image maskImage)
      Image itk::simple::IntermodesThresholdImageFilter::Execute(const Image &image, const Image &maskImage) Execute the filter on the input image
    • execute

      public Image execute(Image image)
      Image itk::simple::IntermodesThresholdImageFilter::Execute(const Image &image, const Image &maskImage) Execute the filter on the input image