Class HuangThresholdImageFilter


public class HuangThresholdImageFilter extends ImageFilter
Threshold an image using the Huang Threshold. This filter creates a binary thresholded image that separates an image into foreground and background components. The filter computes the threshold using the HuangThresholdCalculator 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::HuangThreshold for the procedural interface itk::HuangThresholdImageFilter for the Doxygen on the original ITK class. C++ includes: sitkHuangThresholdImageFilter.h
  • Constructor Details

    • HuangThresholdImageFilter

      protected HuangThresholdImageFilter(long cPtr, boolean cMemoryOwn)
    • HuangThresholdImageFilter

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

    • getCPtr

      protected static long getCPtr(HuangThresholdImageFilter obj)
    • swigRelease

      protected static long swigRelease(HuangThresholdImageFilter obj)
    • finalize

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

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

      public void setInsideValue(short InsideValue)
      Self& itk::simple::HuangThresholdImageFilter::SetInsideValue(uint8_t InsideValue) Set the "inside" pixel value. The default value NumericTraits<OutputPixelType>::max()
    • getInsideValue

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

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

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

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

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

      public void setMaskOutput(boolean MaskOutput)
      Self& itk::simple::HuangThresholdImageFilter::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::HuangThresholdImageFilter::MaskOutputOn() Set the value of MaskOutput to true or false respectfully.
    • maskOutputOff

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

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

      public void setMaskValue(short MaskValue)
      Self& itk::simple::HuangThresholdImageFilter::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::HuangThresholdImageFilter::GetMaskValue() const
    • getThreshold

      public double getThreshold()
      double itk::simple::HuangThresholdImageFilter::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::HuangThresholdImageFilter::GetName() const Name of this class
      Overrides:
      getName in class ProcessObject
    • toString

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

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

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