18 #ifndef __itkComposeRGBImageFilter_h
19 #define __itkComposeRGBImageFilter_h
20 #if !defined( ITK_LEGACY_REMOVE )
29 template<
class TInput >
33 typedef RGBPixel< TInput > OutputType;
41 bool operator==(
const ComposeRGB & other)
const
43 return !( *
this != other );
46 inline OutputType operator()(
const TInput & R,
48 const TInput & B)
const
52 rgbPixel.Set(R, G, B);
70 template<
typename TInputImage,
71 typename TOutputImage =
72 Image< RGBPixel< typename TInputImage::PixelType >,
73 TInputImage::ImageDimension > >
74 class ITK_EXPORT ComposeRGBImageFilter:
76 TernaryFunctorImageFilter< TInputImage, TInputImage,
77 TInputImage, TOutputImage,
78 Functor::ComposeRGB< typename TInputImage::PixelType > >
82 typedef ComposeRGBImageFilter Self;
83 typedef TernaryFunctorImageFilter<
84 TInputImage, TInputImage,
85 TInputImage, TOutputImage,
87 typename TInputImage::PixelType > > Superclass;
89 typedef SmartPointer< Self > Pointer;
90 typedef SmartPointer< const Self > ConstPointer;
92 typedef typename Superclass::OutputImageType OutputImageType;
98 itkTypeMacro(ComposeRGBImageFilter,
99 TernaryFunctorImageFilter);
102 ComposeRGBImageFilter() {}
103 virtual ~ComposeRGBImageFilter() {}
106 ComposeRGBImageFilter(
const Self &);
107 void operator=(
const Self &);
111 #endif //#if !defined( ITK_LEGACY_REMOVE )