Class BinaryMedianImageFilter


public class BinaryMedianImageFilter extends ImageFilter
Applies a version of the median filter optimized for binary images. This filter was contributed by Bjorn Hanch Sollie after identifying that the generic Median filter performed unnecessary operations when the input image is binary. This filter computes an image where a given pixel is the median value of the pixels in a neighborhood about the corresponding input pixel. For the case of binary images the median can be obtained by simply counting the neighbors that are foreground. A median filter is one of the family of nonlinear filters. It is used to smooth an image without being biased by outliers or shot noise. See: Image Neighborhood NeighborhoodOperator NeighborhoodIterator itk::simple::BinaryMedian for the procedural interface itk::BinaryMedianImageFilter for the Doxygen on the original ITK class. C++ includes: sitkBinaryMedianImageFilter.h
  • Constructor Details

    • BinaryMedianImageFilter

      protected BinaryMedianImageFilter(long cPtr, boolean cMemoryOwn)
    • BinaryMedianImageFilter

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

    • getCPtr

      protected static long getCPtr(BinaryMedianImageFilter obj)
    • swigRelease

      protected static long swigRelease(BinaryMedianImageFilter obj)
    • finalize

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

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

      public void setRadius(VectorUInt32 Radius)
      Self& itk::simple::BinaryMedianImageFilter::SetRadius(unsigned int value) Set the values of the Radius vector all to value
    • setRadius

      public void setRadius(long value)
      Self& itk::simple::BinaryMedianImageFilter::SetRadius(unsigned int value) Set the values of the Radius vector all to value
    • getRadius

      public VectorUInt32 getRadius()
      std::vector<unsigned int> itk::simple::BinaryMedianImageFilter::GetRadius() const Get the radius of the neighborhood used to compute the median
    • setForegroundValue

      public void setForegroundValue(double ForegroundValue)
      Self& itk::simple::BinaryMedianImageFilter::SetForegroundValue(double ForegroundValue) Set the value associated with the Foreground (or the object) on the binary input image and the Background .
    • getForegroundValue

      public double getForegroundValue()
      double itk::simple::BinaryMedianImageFilter::GetForegroundValue() const Get the value associated with the Foreground (or the object) on the binary input image and the Background .
    • setBackgroundValue

      public void setBackgroundValue(double BackgroundValue)
      Self& itk::simple::BinaryMedianImageFilter::SetBackgroundValue(double BackgroundValue) Set the value associated with the Foreground (or the object) on the binary input image and the Background .
    • getBackgroundValue

      public double getBackgroundValue()
      double itk::simple::BinaryMedianImageFilter::GetBackgroundValue() const Get the value associated with the Foreground (or the object) on the binary input image and the Background .
    • getName

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

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

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