Orfeo Toolbox  3.16
itkRedPixelAccessor.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Insight Segmentation & Registration Toolkit
4  Module: $RCSfile: itkRedPixelAccessor.h,v $
5  Language: C++
6  Date: $Date: 2009-03-03 15:08:48 $
7  Version: $Revision: 1.9 $
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 __itkRedPixelAccessor_h
18 #define __itkRedPixelAccessor_h
19 
20 
21 #include "itkRGBPixel.h"
22 
23 
24 namespace itk
25 {
26 
38 template <class T>
40 {
41 public:
44 
47  typedef T ExternalType;
48 
52 
54  inline void Set( InternalType & output, const ExternalType & input ) const
55  { output.SetRed( input ); }
56 
58  inline const ExternalType & Get( const InternalType & input ) const
59  { return input.GetRed(); }
60 
61  bool operator!=( const Self &) const
62  {
63  return false;
64  }
65 
66  bool operator==( const Self & other ) const
67  {
68  return !(*this != other);
69  }
70 };
71 
72 } // end namespace itk
73 
74 #endif

Generated at Sun May 19 2013 00:02:41 for Orfeo Toolbox with doxygen 1.8.3.1