Orfeo Toolbox  3.16
itkComposeRGBImageFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Insight Segmentation & Registration Toolkit
4  Module: $RCSfile: itkComposeRGBImageFilter.h,v $
5  Language: C++
6  Date: $Date: 2009-04-01 14:36:10 $
7  Version: $Revision: 1.11 $
8 
9  Copyright (c) Insight Software Consortium. All rights reserved.
10  See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
11 
12  This software is distributed WITHOUT ANY WARRANTY; without even
13  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14  PURPOSE. See the above copyright notices for more information.
15 
16 =========================================================================*/
17 #ifndef __itkComposeRGBImageFilter_h
18 #define __itkComposeRGBImageFilter_h
19 
21 #include "itkRGBPixel.h"
22 
23 namespace itk
24 {
25 
26 namespace Function {
27 
28 template< class TInput >
30 {
31 public:
35  bool operator!=( const ComposeRGB & ) const
36  {
37  return false;
38  }
39  bool operator==( const ComposeRGB & other ) const
40  {
41  return !(*this != other);
42  }
43  inline OutputType operator()( const TInput & R,
44  const TInput & G,
45  const TInput & B) const
46  {
47  OutputType rgbPixel;
48  rgbPixel.Set( R, G, B);
49  return rgbPixel;
50  }
51 };
52 }
53 
65 template <typename TInputImage,
66  typename TOutputImage=
67  Image< RGBPixel< ITK_TYPENAME TInputImage::PixelType >,
70  public
71 TernaryFunctorImageFilter<TInputImage,TInputImage,
72  TInputImage,TOutputImage,
73  Function::ComposeRGB< ITK_TYPENAME TInputImage::PixelType > >
74 {
75 public:
79  TInputImage,TInputImage,
80  TInputImage,TOutputImage,
82  ITK_TYPENAME TInputImage::PixelType > >
86 
88 
90  itkNewMacro(Self);
91 
93  itkTypeMacro(ComposeRGBImageFilter,
95 
96 protected:
99 
100 private:
101  ComposeRGBImageFilter(const Self&); //purposely not implemented
102  void operator=(const Self&); //purposely not implemented
103 
104 
105 };
106 
107 } // end namespace itk
108 
109 
110 #endif

Generated at Sat Feb 2 2013 23:32:50 for Orfeo Toolbox with doxygen 1.8.1.1