Class VotingBinaryIterativeHoleFillingImageFilter

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

public class VotingBinaryIterativeHoleFillingImageFilter extends ImageFilter
Fills in holes and cavities by iteratively applying a voting operation. This filter uses internally the VotingBinaryHoleFillingImageFilter , and runs it iteratively until no pixels are being changed or until it reaches the maximum number of iterations. The purpose of the filter is to fill in holes of medium size (tens of pixels in radius). In principle the number of iterations is related to the size of the holes to be filled in. The larger the holes, the more iteration must be run with this filter in order to fill in the full hole. The size of the neighborhood is also related to the curvature of the hole borders and therefore the hole size. Note that as a collateral effect this filter may also fill in cavities in the external side of structures. This filter is templated over a single image type because the output image type must be the same as the input image type. This is required in order to make the iterations possible, since the output image of one iteration is taken as the input image for the next iteration. See: Image VotingBinaryImageFilter VotingBinaryHoleFillingImageFilter Neighborhood NeighborhoodOperator NeighborhoodIterator itk::simple::VotingBinaryIterativeHoleFilling for the procedural interface itk::VotingBinaryIterativeHoleFillingImageFilter for the Doxygen on the original ITK class. C++ includes: sitkVotingBinaryIterativeHoleFillingImageFilter.h
  • Constructor Details

    • VotingBinaryIterativeHoleFillingImageFilter

      protected VotingBinaryIterativeHoleFillingImageFilter(long cPtr, boolean cMemoryOwn)
    • VotingBinaryIterativeHoleFillingImageFilter

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

    • getCPtr

      protected static long getCPtr(VotingBinaryIterativeHoleFillingImageFilter obj)
    • swigRelease

      protected static long swigRelease(VotingBinaryIterativeHoleFillingImageFilter obj)
    • finalize

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

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

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

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

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

      public void setMaximumNumberOfIterations(long MaximumNumberOfIterations)
      Self& itk::simple::VotingBinaryIterativeHoleFillingImageFilter::SetMaximumNumberOfIterations(unsigned int MaximumNumberOfIterations) Maximum number of iterations. This filter is executed iteratively as long as at least one pixel has changed in a previous iteration, or until the maximum number of iterations has been reached.
    • getMaximumNumberOfIterations

      public long getMaximumNumberOfIterations()
      unsigned int itk::simple::VotingBinaryIterativeHoleFillingImageFilter::GetMaximumNumberOfIterations() const Maximum number of iterations. This filter is executed iteratively as long as at least one pixel has changed in a previous iteration, or until the maximum number of iterations has been reached.
    • setMajorityThreshold

      public void setMajorityThreshold(long MajorityThreshold)
      Self& itk::simple::VotingBinaryIterativeHoleFillingImageFilter::SetMajorityThreshold(unsigned int MajorityThreshold) Majority threshold. It is the number of pixels over 50% that will decide whether an OFF pixel will become ON or not. For example, if the neighborhood of a pixel has 124 pixels (excluding itself), the 50% will be 62, and if you set up a Majority threshold of 5, that means that the filter will require 67 or more neighbor pixels to be ON in order to switch the current OFF pixel to ON. The default value is 1.
    • getMajorityThreshold

      public long getMajorityThreshold()
      unsigned int itk::simple::VotingBinaryIterativeHoleFillingImageFilter::GetMajorityThreshold() const Majority threshold. It is the number of pixels over 50% that will decide whether an OFF pixel will become ON or not. For example, if the neighborhood of a pixel has 124 pixels (excluding itself), the 50% will be 62, and if you set up a Majority threshold of 5, that means that the filter will require 67 or more neighbor pixels to be ON in order to switch the current OFF pixel to ON. The default value is 1.
    • setForegroundValue

      public void setForegroundValue(double ForegroundValue)
      Self& itk::simple::VotingBinaryIterativeHoleFillingImageFilter::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::VotingBinaryIterativeHoleFillingImageFilter::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::VotingBinaryIterativeHoleFillingImageFilter::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::VotingBinaryIterativeHoleFillingImageFilter::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::VotingBinaryIterativeHoleFillingImageFilter::GetName() const Name of this class
      Overrides:
      getName in class ProcessObject
    • toString

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

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