18 #ifndef itkComposeRGBImageFilter_h
19 #define itkComposeRGBImageFilter_h
20 #if !defined( ITK_LEGACY_REMOVE )
29 template<
typename 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 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;
92 typedef typename Superclass::OutputImageType OutputImageType;
98 itkTypeMacro(ComposeRGBImageFilter,
99 TernaryFunctorImageFilter);
102 ComposeRGBImageFilter() {}
103 virtual ~ComposeRGBImageFilter() {}
106 ITK_DISALLOW_COPY_AND_ASSIGN(ComposeRGBImageFilter);
110 #endif //#if !defined( ITK_LEGACY_REMOVE )
bool operator!=(const ImageRegionCopier< D1, D2 > &c1, const ImageRegionCopier< D1, D2 > &c2)
bool ITKIOXML_EXPORT operator==(itk::FancyString &s, const std::string &)