00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __itkPixelAccessor_h
00018 #define __itkPixelAccessor_h
00019
00020 #include "itkMacro.h"
00021 namespace itk
00022 {
00023
00052 template <class TInternalType, class TExternalType >
00053 class ITK_EXPORT PixelAccessor
00054 {
00055 public:
00058 typedef TExternalType ExternalType;
00059
00062 typedef TInternalType InternalType;
00063
00064 inline void Set(TInternalType & output, const TExternalType & input) const
00065 {output = (TInternalType) input;}
00066
00067 inline TExternalType Get( const TInternalType & input ) const
00068 {return (TExternalType)input;}
00069 };
00070
00071 }
00072
00073
00074 #endif
00075