18 #ifndef itkLabelToRGBImageFilter_h 19 #define itkLabelToRGBImageFilter_h 48 template<
typename TLabelImage,
typename TOutputImage >
52 Functor::LabelToRGBFunctor<
53 typename TLabelImage::PixelType,
54 typename TOutputImage::PixelType > >
64 typename TLabelImage::PixelType,
81 itkSetMacro(BackgroundValue, LabelPixelType);
82 itkGetConstReferenceMacro(BackgroundValue, LabelPixelType);
86 itkSetMacro(BackgroundColor, OutputPixelType);
87 itkGetConstReferenceMacro(BackgroundColor, OutputPixelType);
100 void AddColor(ComponentType r, ComponentType g, ComponentType b);
116 void operator=(
const Self &) ITK_DELETE_FUNCTION;
123 #ifndef ITK_MANUAL_INSTANTIATION 124 #include "itkLabelToRGBImageFilter.hxx" void operator=(const Self &) ITK_DELETE_FUNCTION
TOutputImage OutputImageType
UnaryFunctorImageFilter< TLabelImage, TOutputImage, Functor::LabelToRGBFunctor< typename TLabelImage::PixelType, typename TOutputImage::PixelType > > Superclass
TLabelImage LabelImageType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes...
LabelPixelType m_BackgroundValue
TOutputImage::PixelType OutputPixelType
void BeforeThreadedGenerateData() override
OutputPixelType m_BackgroundColor
TLabelImage::PixelType LabelPixelType
LabelToRGBImageFilter Self
void GenerateOutputInformation() override
Functor for converting labels into RGB triplets.
void AddColor(ComponentType r, ComponentType g, ComponentType b)
SmartPointer< const Self > ConstPointer
Implements pixel-wise generic operation on one image.
unsigned int GetNumberOfColors() const
Control indentation during Print() invocation.
OutputPixelType::ComponentType ComponentType
void PrintSelf(std::ostream &os, Indent indent) const override
Define additional traits for native types such as int or float.
SmartPointer< Self > Pointer
Apply a colormap to a label image.
NumericTraits< OutputPixelType >::ValueType OutputPixelValueType
virtual ~LabelToRGBImageFilter()