Orfeo Toolbox  3.16
itkGreenPixelAccessor.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Insight Segmentation & Registration Toolkit
4  Module: $RCSfile: itkGreenPixelAccessor.h,v $
5  Language: C++
6  Date: $Date: 2008-10-17 01:08:45 $
7  Version: $Revision: 1.8 $
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 __itkGreenPixelAccessor_h
18 #define __itkGreenPixelAccessor_h
19 
20 
21 #include "itkRGBPixel.h"
22 
23 
24 namespace itk
25 {
26 
41 template <class T>
43 {
44 public:
47 
50  typedef T ExternalType;
51 
55 
57  inline void Set( InternalType & output, const ExternalType & input ) const
58  { output.SetGreen( input ); }
59 
61  inline const ExternalType & Get( const InternalType & input ) const
62  { return input.GetGreen(); }
63 
64  bool operator!=( const Self & other ) const
65  {
66  return false;
67  }
68 
69  bool operator==( const Self & other ) const
70  {
71  return !(*this != other);
72  }
73 };
74 
75 
76 } // end namespace itk
77 
78 #endif

Generated at Sat Feb 2 2013 23:40:35 for Orfeo Toolbox with doxygen 1.8.1.1