ITK
6.0.0
Insight Toolkit
|
#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 48 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 |
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 128 of file itkLabelOverlayFunctor.h.
|
inline |
Definition at line 51 of file itkLabelOverlayFunctor.h.
References itk::Functor::LabelOverlayFunctor< TInputPixel, TLabel, TRGBPixel >::m_BackgroundValue, and itk::Functor::LabelOverlayFunctor< TInputPixel, TLabel, TRGBPixel >::m_Opacity.
|
default |
|
inline |
Definition at line 131 of file itkLabelOverlayFunctor.h.
References itk::Functor::LabelOverlayFunctor< TInputPixel, TLabel, TRGBPixel >::m_RGBFunctor.
|
inline |
Definition at line 122 of file itkLabelOverlayFunctor.h.
References itk::Functor::LabelOverlayFunctor< TInputPixel, TLabel, TRGBPixel >::m_RGBFunctor.
itk::Functor::LabelOverlayFunctor< TInputPixel, TLabel, TRGBPixel >::ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION | ( | LabelOverlayFunctor< TInputPixel, TLabel, TRGBPixel > | ) |
|
inline |
Definition at line 62 of file itkLabelOverlayFunctor.h.
References itk::Functor::LabelOverlayFunctor< TInputPixel, TLabel, TRGBPixel >::m_BackgroundValue, itk::Functor::LabelOverlayFunctor< TInputPixel, TLabel, TRGBPixel >::m_Opacity, itk::Functor::LabelOverlayFunctor< TInputPixel, TLabel, TRGBPixel >::m_RGBFunctor, and itk::NumericTraits< T >::SetLength().
|
inline |
Definition at line 92 of file itkLabelOverlayFunctor.h.
References itk::Math::ExactlyEquals(), itk::Functor::LabelOverlayFunctor< TInputPixel, TLabel, TRGBPixel >::m_BackgroundValue, itk::Functor::LabelOverlayFunctor< TInputPixel, TLabel, TRGBPixel >::m_Opacity, and itk::Functor::LabelOverlayFunctor< TInputPixel, TLabel, TRGBPixel >::m_RGBFunctor.
|
inline |
Definition at line 116 of file itkLabelOverlayFunctor.h.
References itk::Functor::LabelOverlayFunctor< TInputPixel, TLabel, TRGBPixel >::m_RGBFunctor.
|
inline |
|
inline |
Definition at line 103 of file itkLabelOverlayFunctor.h.
References itk::Functor::LabelOverlayFunctor< TInputPixel, TLabel, TRGBPixel >::m_Opacity.
|
private |
Definition at line 139 of file itkLabelOverlayFunctor.h.
Referenced by itk::Functor::LabelOverlayFunctor< TInputPixel, TLabel, TRGBPixel >::LabelOverlayFunctor(), itk::Functor::LabelOverlayFunctor< TInputPixel, TLabel, TRGBPixel >::operator()(), itk::Functor::LabelOverlayFunctor< TInputPixel, TLabel, TRGBPixel >::operator==(), and itk::Functor::LabelOverlayFunctor< TInputPixel, TLabel, TRGBPixel >::SetBackgroundValue().
|
private |
Definition at line 138 of file itkLabelOverlayFunctor.h.
Referenced by itk::Functor::LabelOverlayFunctor< TInputPixel, TLabel, TRGBPixel >::LabelOverlayFunctor(), itk::Functor::LabelOverlayFunctor< TInputPixel, TLabel, TRGBPixel >::operator()(), itk::Functor::LabelOverlayFunctor< TInputPixel, TLabel, TRGBPixel >::operator==(), and itk::Functor::LabelOverlayFunctor< TInputPixel, TLabel, TRGBPixel >::SetOpacity().
|
private |
Definition at line 141 of file itkLabelOverlayFunctor.h.
Referenced by itk::Functor::LabelOverlayFunctor< TInputPixel, TLabel, TRGBPixel >::AddColor(), itk::Functor::LabelOverlayFunctor< TInputPixel, TLabel, TRGBPixel >::GetNumberOfColors(), itk::Functor::LabelOverlayFunctor< TInputPixel, TLabel, TRGBPixel >::operator()(), itk::Functor::LabelOverlayFunctor< TInputPixel, TLabel, TRGBPixel >::operator==(), itk::Functor::LabelOverlayFunctor< TInputPixel, TLabel, TRGBPixel >::ResetColors(), and itk::Functor::LabelOverlayFunctor< TInputPixel, TLabel, TRGBPixel >::SetBackgroundValue().