18 #ifndef __itkRGBToLuminanceImageAdaptor_h
19 #define __itkRGBToLuminanceImageAdaptor_h
22 #include "vnl/vnl_math.h"
40 template<
class TInternalType,
class TExternalType >
52 static inline void Set(TInternalType & output,
const TExternalType & input)
53 { output =
static_cast< TInternalType
>( input.GetLuminance() ); }
55 static inline TExternalType Get(
const TInternalType & input)
56 {
return static_cast< TExternalType
>( input.GetLuminance() ); }
70 template<
class TImage,
class TOutputPixelType >
73 Accessor::RGBToLuminancePixelAccessor<
74 typename TImage::PixelType,
81 typename TImage::PixelType,
96 void operator=(
const Self &);