Orfeo Toolbox  3.16
itkBluePixelAccessor.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Insight Segmentation & Registration Toolkit
4  Module: $RCSfile: itkBluePixelAccessor.h,v $
5  Language: C++
6  Date: $Date: 2006-03-18 18:06:14 $
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 __itkBluePixelAccessor_h
18 #define __itkBluePixelAccessor_h
19 
20 
21 #include "itkRGBPixel.h"
22 
23 
24 namespace itk
25 {
26 
40 template <class T>
42 {
43 public:
46 
49  typedef T ExternalType;
50 
54 
56  inline void Set( InternalType & output, const ExternalType & input ) const
57  { output.SetBlue( input ); }
58 
60  inline const ExternalType & Get( const InternalType & input ) const
61  { return input.GetBlue(); }
62 
63  bool operator!=( const Self & other ) const
64  {
65  return false;
66  }
67  bool operator==( const Self & other ) const
68  {
69  return !(*this != other);
70  }
71 };
72 
73 } // end namespace itk
74 
75 #endif

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