18 #ifndef itkRGBToLuminanceImageAdaptor_h
19 #define itkRGBToLuminanceImageAdaptor_h
22 #include "vnl/vnl_math.h"
40 template<
typename TInternalType,
typename 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<
typename TImage,
typename TOutputPixelType >
73 Accessor::RGBToLuminancePixelAccessor<
74 typename TImage::PixelType,
81 typename TImage::PixelType,
98 void operator=(const
Self &) ITK_DELETE_FUNCTION;
Give access to Luminance of a color pixel type.
ImageAdaptor< TImage, Accessor::RGBToLuminancePixelAccessor< typename TImage::PixelType, TOutputPixelType > > Superclass
RGBToLuminanceImageAdaptor Self
RGBToLuminanceImageAdaptor()
SmartPointer< const Self > ConstPointer
TInternalType InternalType
TExternalType ExternalType
SmartPointer< Self > Pointer
static void Set(TInternalType &output, const TExternalType &input)
virtual ~RGBToLuminanceImageAdaptor()
static TExternalType Get(const TInternalType &input)
Give access to partial aspects of voxels from an Image.
Presents a color image as being composed of the Luminance of its pixels.
Base class for all data objects in ITK.