Class BinaryDilateImageFilter


public class BinaryDilateImageFilter extends ImageFilter
Fast binary dilation of a single intensity value in the image. BinaryDilateImageFilter is a binary dilation morphologic operation on the foreground of an image. Only the value designated by the intensity value "SetForegroundValue()" (alias as SetDilateValue() ) is considered as foreground, and other intensity values are considered background. Grayscale images can be processed as binary images by selecting a "ForegroundValue" (alias "DilateValue"). Pixel values matching the dilate value are considered the "foreground" and all other pixels are "background". This is useful in processing segmented images where all pixels in segment #1 have value 1 and pixels in segment #2 have value 2, etc. A particular "segment number" can be processed. ForegroundValue defaults to the maximum possible value of the PixelType. The structuring element is assumed to be composed of binary values (zero or one). Only elements of the structuring element having values > 0 are candidates for affecting the center pixel. A reasonable choice of structuring element is itk::BinaryBallStructuringElement . This implementation is based on the papers: L.Vincent "Morphological transformations of binary images with arbitrary structuring elements", and N.Nikopoulos et al. "An efficient algorithm for 3d binary morphological transformations with 3d structuring elements for arbitrary size and shape". IEEE Transactions on Image Processing. Vol. 9. No. 3. 2000. pp. 283-286. See: ImageToImageFilter BinaryErodeImageFilter BinaryMorphologyImageFilter itk::simple::BinaryDilate for the procedural interface itk::BinaryDilateImageFilter for the Doxygen on the original ITK class. C++ includes: sitkBinaryDilateImageFilter.h
  • Constructor Details

    • BinaryDilateImageFilter

      protected BinaryDilateImageFilter(long cPtr, boolean cMemoryOwn)
    • BinaryDilateImageFilter

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

    • getCPtr

      protected static long getCPtr(BinaryDilateImageFilter obj)
    • swigRelease

      protected static long swigRelease(BinaryDilateImageFilter obj)
    • finalize

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

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

      public void setKernelRadius(VectorUInt32 KernelRadius)
      Self& itk::simple::BinaryDilateImageFilter::SetKernelRadius(unsigned int value) Set the values of the KernelRadius vector all to value
    • setKernelRadius

      public void setKernelRadius(long value)
      Self& itk::simple::BinaryDilateImageFilter::SetKernelRadius(unsigned int value) Set the values of the KernelRadius vector all to value
    • getKernelRadius

      public VectorUInt32 getKernelRadius()
      std::vector<unsigned int> itk::simple::BinaryDilateImageFilter::GetKernelRadius() const Get the radius of the kernel structuring element.
    • setKernelType

      public void setKernelType(KernelEnum KernelType)
      Self& itk::simple::BinaryDilateImageFilter::SetKernelType(KernelEnum KernelType) Set the kernel or structuring element used for the morphology.
    • getKernelType

      public KernelEnum getKernelType()
      KernelEnum itk::simple::BinaryDilateImageFilter::GetKernelType() const Get the kernel or structuring element used for the morphology.
    • setBackgroundValue

      public void setBackgroundValue(double BackgroundValue)
      Self& itk::simple::BinaryDilateImageFilter::SetBackgroundValue(double BackgroundValue)
    • getBackgroundValue

      public double getBackgroundValue()
      double itk::simple::BinaryDilateImageFilter::GetBackgroundValue() const
    • setForegroundValue

      public void setForegroundValue(double ForegroundValue)
      Self& itk::simple::BinaryDilateImageFilter::SetForegroundValue(double ForegroundValue)
    • getForegroundValue

      public double getForegroundValue()
      double itk::simple::BinaryDilateImageFilter::GetForegroundValue() const
    • setBoundaryToForeground

      public void setBoundaryToForeground(boolean BoundaryToForeground)
      Self& itk::simple::BinaryDilateImageFilter::SetBoundaryToForeground(bool BoundaryToForeground)
    • boundaryToForegroundOn

      public void boundaryToForegroundOn()
      Self& itk::simple::BinaryDilateImageFilter::BoundaryToForegroundOn() Set the value of BoundaryToForeground to true or false respectfully.
    • boundaryToForegroundOff

      public void boundaryToForegroundOff()
      Self& itk::simple::BinaryDilateImageFilter::BoundaryToForegroundOff()
    • getBoundaryToForeground

      public boolean getBoundaryToForeground()
      bool itk::simple::BinaryDilateImageFilter::GetBoundaryToForeground() const
    • getName

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

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

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