Class LabelMapContourOverlayImageFilter

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

public class LabelMapContourOverlayImageFilter extends ImageFilter
Apply a colormap to the contours (outlines) of each object in a label map and superimpose it on top of the feature image. The feature image is typically the image from which the labeling was produced. Use the SetInput function to set the LabelMap , and the SetFeatureImage function to set the feature image. Apply a colormap to a label map and put it on top of the input image. The set of colors is a good selection of distinct colors. The opacity of the label map can be defined by the user. A background label produce a gray pixel with the same intensity than the input one. 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/176 See: LabelMapOverlayImageFilter , LabelOverlayImageFilter , LabelOverlayFunctor LabelMapToBinaryImageFilter , LabelMapToLabelImageFilter , itk::simple::LabelMapContourOverlay for the procedural interface itk::LabelMapContourOverlayImageFilter for the Doxygen on the original ITK class. C++ includes: sitkLabelMapContourOverlayImageFilter.h
  • Constructor Details

    • LabelMapContourOverlayImageFilter

      protected LabelMapContourOverlayImageFilter(long cPtr, boolean cMemoryOwn)
    • LabelMapContourOverlayImageFilter

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

    • getCPtr

      protected static long getCPtr(LabelMapContourOverlayImageFilter obj)
    • swigRelease

      protected static long swigRelease(LabelMapContourOverlayImageFilter obj)
    • finalize

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

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

      public void setOpacity(double Opacity)
      Self& itk::simple::LabelMapContourOverlayImageFilter::SetOpacity(double Opacity) Set/Get the opacity of the colored label image. The value must be between 0 and 1
    • getOpacity

      public double getOpacity()
      double itk::simple::LabelMapContourOverlayImageFilter::GetOpacity() const Set/Get the opacity of the colored label image. The value must be between 0 and 1
    • setDilationRadius

      public void setDilationRadius(VectorUInt32 DilationRadius)
      Self& itk::simple::LabelMapContourOverlayImageFilter::SetDilationRadius(unsigned int value) Set the values of the DilationRadius vector all to value
    • setDilationRadius

      public void setDilationRadius(long value)
      Self& itk::simple::LabelMapContourOverlayImageFilter::SetDilationRadius(unsigned int value) Set the values of the DilationRadius vector all to value
    • getDilationRadius

      public VectorUInt32 getDilationRadius()
      std::vector<unsigned int> itk::simple::LabelMapContourOverlayImageFilter::GetDilationRadius() const Set/Get the object dilation radius - 0 by default.
    • setContourThickness

      public void setContourThickness(VectorUInt32 ContourThickness)
      Self& itk::simple::LabelMapContourOverlayImageFilter::SetContourThickness(std::vector< unsigned int > ContourThickness) Set/Get the contour thickness - 1 by default.
    • getContourThickness

      public VectorUInt32 getContourThickness()
      std::vector<unsigned int> itk::simple::LabelMapContourOverlayImageFilter::GetContourThickness() const Set/Get the contour thickness - 1 by default.
    • setSliceDimension

      public void setSliceDimension(long SliceDimension)
      Self& itk::simple::LabelMapContourOverlayImageFilter::SetSliceDimension(unsigned int SliceDimension) Set/Get the slice dimension - defaults to image dimension - 1.
    • getSliceDimension

      public long getSliceDimension()
      unsigned int itk::simple::LabelMapContourOverlayImageFilter::GetSliceDimension() const Set/Get the slice dimension - defaults to image dimension - 1.
    • setContourType

      public void setContourType(LabelMapContourOverlayImageFilter.ContourTypeType ContourType)
      Self& itk::simple::LabelMapContourOverlayImageFilter::SetContourType(ContourTypeType ContourType) Set/Get the overlay type - CONTOUR is used by default.
    • getContourType

      ContourTypeType itk::simple::LabelMapContourOverlayImageFilter::GetContourType() const Set/Get the overlay type - CONTOUR is used by default.
    • setPriority

      public void setPriority(LabelMapContourOverlayImageFilter.PriorityType Priority)
      Self& itk::simple::LabelMapContourOverlayImageFilter::SetPriority(PriorityType Priority) Set/Get the object priority - HIGH_LABEL_ON_TOP by default.
    • getPriority

      PriorityType itk::simple::LabelMapContourOverlayImageFilter::GetPriority() const Set/Get the object priority - HIGH_LABEL_ON_TOP by default.
    • setColormap

      public void setColormap(VectorUInt8 Colormap)
      Self& itk::simple::LabelMapContourOverlayImageFilter::SetColormap(std::vector< uint8_t > Colormap)
    • getColormap

      public VectorUInt8 getColormap()
      std::vector<uint8_t> itk::simple::LabelMapContourOverlayImageFilter::GetColormap() const
    • getName

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

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

      public Image execute(Image labelMapImage, Image featureImage)
      Image itk::simple::LabelMapContourOverlayImageFilter::Execute(const Image &labelMapImage, const Image &featureImage) Execute the filter on the input image