Class GrayscaleConnectedOpeningImageFilter

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

public class GrayscaleConnectedOpeningImageFilter extends ImageFilter
Enhance pixels associated with a bright object (identified by a seed pixel) where the bright object is surrounded by a darker object. GrayscaleConnectedOpeningImageFilter is useful for enhancing bright objects that are surrounded by dark borders. This filter makes it easier to threshold the image and extract just the object of interest. Geodesic morphology and the connected opening algorithm is described in Chapter 6 of Pierre Soille's book "Morphological Image Analysis: Principles and Applications", Second Edition, Springer, 2003. See: GrayscaleGeodesicDilateImageFilter MorphologyImageFilter , GrayscaleDilateImageFilter , GrayscaleFunctionDilateImageFilter , BinaryDilateImageFilter itk::simple::GrayscaleConnectedOpening for the procedural interface itk::GrayscaleConnectedOpeningImageFilter for the Doxygen on the original ITK class. C++ includes: sitkGrayscaleConnectedOpeningImageFilter.h
  • Constructor Details

    • GrayscaleConnectedOpeningImageFilter

      protected GrayscaleConnectedOpeningImageFilter(long cPtr, boolean cMemoryOwn)
    • GrayscaleConnectedOpeningImageFilter

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

    • getCPtr

      protected static long getCPtr(GrayscaleConnectedOpeningImageFilter obj)
    • swigRelease

      protected static long swigRelease(GrayscaleConnectedOpeningImageFilter obj)
    • finalize

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

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

      public void setSeed(VectorUInt32 Seed)
      Self& itk::simple::GrayscaleConnectedOpeningImageFilter::SetSeed(std::vector< unsigned int > Seed) Set/Get the seed pixel for the segmentation
    • getSeed

      public VectorUInt32 getSeed()
      std::vector<unsigned int> itk::simple::GrayscaleConnectedOpeningImageFilter::GetSeed() const Set/Get the seed pixel for the segmentation
    • setFullyConnected

      public void setFullyConnected(boolean FullyConnected)
      Self& itk::simple::GrayscaleConnectedOpeningImageFilter::SetFullyConnected(bool FullyConnected) Set/Get whether the connected components are defined strictly by face connectivity or by face+edge+vertex connectivity. Default is FullyConnectedOff. For objects that are 1 pixel wide, use FullyConnectedOn.
    • fullyConnectedOn

      public void fullyConnectedOn()
      Self& itk::simple::GrayscaleConnectedOpeningImageFilter::FullyConnectedOn() Set the value of FullyConnected to true or false respectfully.
    • fullyConnectedOff

      public void fullyConnectedOff()
      Self& itk::simple::GrayscaleConnectedOpeningImageFilter::FullyConnectedOff()
    • getFullyConnected

      public boolean getFullyConnected()
      bool itk::simple::GrayscaleConnectedOpeningImageFilter::GetFullyConnected() const Set/Get whether the connected components are defined strictly by face connectivity or by face+edge+vertex connectivity. Default is FullyConnectedOff. For objects that are 1 pixel wide, use FullyConnectedOn.
    • getName

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

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

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