18 #ifndef itkRGBToLuminanceImageAdaptor_h
19 #define itkRGBToLuminanceImageAdaptor_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,
83 typename TImage::PixelType,
TImage::PixelType InternalType
Give access to Luminance of a color pixel type.
~RGBToLuminanceImageAdaptor() override=default
RGBToLuminanceImageAdaptor()=default
TOutputPixelType ExternalType
static void Set(TInternalType &output, const TExternalType &input)
static TExternalType Get(const TInternalType &input)
Give access to partial aspects of voxels from an Image.
Base class for most ITK classes.
Presents a color image as being composed of the Luminance of its pixels.
Base class for all data objects in ITK.