Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkPixelAccessor.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkPixelAccessor.h,v $ 00005 Language: C++ 00006 Date: $Date: 2003/09/10 14:29:22 $ 00007 Version: $Revision: 1.7 $ 00008 00009 Copyright (c) Insight Software Consortium. All rights reserved. 00010 See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 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 } // end namespace itk 00072 00073 00074 #endif 00075

Generated at Sat Mar 31 02:27:18 2007 for ITK by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2000