00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef _itkScalarToRGBPixelFunctor_h
00018 #define _itkScalarToRGBPixelFunctor_h
00019
00020 #include "itkRGBPixel.h"
00021
00022 namespace itk {
00023
00024 namespace Functor {
00025
00041 template< class TScalar >
00042 class ITK_EXPORT ScalarToRGBPixelFunctor
00043 {
00044 public:
00045 ScalarToRGBPixelFunctor();
00046 ~ScalarToRGBPixelFunctor() {};
00047
00048 typedef unsigned char RGBComponentType;
00049 typedef RGBPixel<RGBComponentType> RGBPixelType;
00050 typedef TScalar ScalarType;
00051
00052 RGBPixelType operator()( const TScalar &) const;
00053
00054 void SetLittleEndian()
00055 {
00056 m_IsBigEndian = false;
00057 }
00058 void SetBigEndian()
00059 {
00060 m_IsBigEndian = true;
00061 }
00062
00063 private:
00064 bool m_IsBigEndian;
00065 ::size_t m_Index[3];
00066
00067 };
00068
00069 }
00070
00071 }
00072
00073 #ifndef ITK_MANUAL_INSTANTIATION
00074 #include "itkScalarToRGBPixelFunctor.txx"
00075 #endif
00076
00077 #endif