Class LabelToRGBImageFilter


public class LabelToRGBImageFilter extends ImageFilter
Apply a colormap to a label image. Apply a colormap to a label image. The set of colors is a good selection of distinct colors. The user can choose to use a background value. In that case, a gray pixel with the same intensity than the background label is produced. This code was contributed in the Insight Journal paper: "The watershed transform in ITK - discussion and new developments" by Beare R., Lehmann G. https://www.insight-journal.org/browse/publication/92 Gaetan Lehmann. Biologie du Developpement et de la Reproduction, INRA de Jouy-en-Josas, France. Richard Beare. Department of Medicine, Monash University, Melbourne, Australia. See: LabelOverlayImageFilter LabelMapToRGBImageFilter , LabelToRGBFunctor, ScalarToRGBPixelFunctor itk::simple::LabelToRGB for the procedural interface itk::LabelToRGBImageFilter for the Doxygen on the original ITK class. C++ includes: sitkLabelToRGBImageFilter.h
  • Constructor Details

    • LabelToRGBImageFilter

      protected LabelToRGBImageFilter(long cPtr, boolean cMemoryOwn)
    • LabelToRGBImageFilter

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

    • getCPtr

      protected static long getCPtr(LabelToRGBImageFilter obj)
    • swigRelease

      protected static long swigRelease(LabelToRGBImageFilter obj)
    • finalize

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

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

      public void setBackgroundValue(double BackgroundValue)
      Self& itk::simple::LabelToRGBImageFilter::SetBackgroundValue(double BackgroundValue) Set/Get the background value
    • getBackgroundValue

      public double getBackgroundValue()
      double itk::simple::LabelToRGBImageFilter::GetBackgroundValue() const Set/Get the background value
    • setColormap

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

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

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

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

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