#include <itkLabelOverlayFunctor.h>
Functor for applying a colormap to a label image and combine it with a grayscale image.
This functor class used internally by LabelOverlayImageFilter
This code was contributed in the Insight Journal paper: "The watershed transform in ITK - discussion and new developments" by Beare R., Lehmann G. https://doi.org/10.54294/lf8u75
Definition at line 46 of file itkLabelOverlayFunctor.h.
Public Types | |
| using | ComponentType = typename TRGBPixel::ComponentType | 
Public Member Functions | |
| void | AddColor (unsigned char r, unsigned char g, unsigned char b) | 
| unsigned int | GetNumberOfColors () const | 
| ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION (LabelOverlayFunctor) | |
| LabelOverlayFunctor () | |
| TRGBPixel | operator() (const TInputPixel &p1, const TLabel &p2) const | 
| bool | operator== (const LabelOverlayFunctor &other) const | 
| void | ResetColors () | 
| void | SetBackgroundValue (TLabel v) | 
| void | SetOpacity (double opacity) | 
| ~LabelOverlayFunctor ()=default | |
Private Attributes | |
| TLabel | m_BackgroundValue | 
| double | m_Opacity { 1.0 } | 
| Functor::LabelToRGBFunctor< TLabel, TRGBPixel > | m_RGBFunctor | 
| using itk::Functor::LabelOverlayFunctor< TInputPixel, TLabel, TRGBPixel >::ComponentType = typename TRGBPixel::ComponentType | 
type of the color component
Definition at line 124 of file itkLabelOverlayFunctor.h.
      
  | 
  inline | 
Definition at line 49 of file itkLabelOverlayFunctor.h.
      
  | 
  default | 
      
  | 
  inline | 
Definition at line 127 of file itkLabelOverlayFunctor.h.
      
  | 
  inlinenodiscard | 
Definition at line 118 of file itkLabelOverlayFunctor.h.
| itk::Functor::LabelOverlayFunctor< TInputPixel, TLabel, TRGBPixel >::ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION | ( | LabelOverlayFunctor< TInputPixel, TLabel, TRGBPixel > | ) | 
      
  | 
  inline | 
Definition at line 58 of file itkLabelOverlayFunctor.h.
      
  | 
  inline | 
Definition at line 88 of file itkLabelOverlayFunctor.h.
      
  | 
  inline | 
Definition at line 112 of file itkLabelOverlayFunctor.h.
      
  | 
  inline | 
Definition at line 105 of file itkLabelOverlayFunctor.h.
      
  | 
  inline | 
Definition at line 99 of file itkLabelOverlayFunctor.h.
      
  | 
  private | 
Definition at line 135 of file itkLabelOverlayFunctor.h.
      
  | 
  private | 
Definition at line 134 of file itkLabelOverlayFunctor.h.
      
  | 
  private | 
Definition at line 137 of file itkLabelOverlayFunctor.h.
Referenced by itk::Functor::LabelOverlayFunctor< typename TInputImage::PixelType, typename TLabelImage::PixelType, typename TOutputImage::PixelType >::operator()(), and itk::Functor::LabelOverlayFunctor< typename TInputImage::PixelType, typename TLabelImage::PixelType, typename TOutputImage::PixelType >::operator==().