18 #ifndef __itkRGBToLuminanceImageFilter_h
19 #define __itkRGBToLuminanceImageFilter_h
38 template<
typename TInput,
typename TOutput >
54 return !( *
this != other );
58 {
return static_cast< TOutput
>( A.GetLuminance() ); }
62 template<
typename TInputImage,
typename TOutputImage >
66 Functor::RGBToLuminance<
67 typename TInputImage::PixelType,
68 typename TOutputImage::PixelType > >
74 TInputImage, TOutputImage,
88 #ifdef ITK_USE_CONCEPT_CHECKING
SmartPointer< Self > Pointer
Converts an RGB image into a grayscale image.
SmartPointer< const Self > ConstPointer
bool operator==(const RGBToLuminance &other) const
virtual ~RGBToLuminanceImageFilter()
bool operator!=(const RGBToLuminance &) const
Base class for all process objects that output image data.
RGBToLuminanceImageFilter()
RGBToLuminanceImageFilter Self
TInput::ComponentType ComponentType
Implements pixel-wise generic operation on one image.
UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::RGBToLuminance< typename TInputImage::PixelType, typename TOutputImage::PixelType > > Superclass
itk::NumericTraits< ComponentType >::RealType RealType
#define itkConceptMacro(name, concept)
TOutput operator()(const TInput &A) const
void operator=(const Self &)