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
101 void operator=(const
Self &) ITK_DELETE_FUNCTION;
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