18 #ifndef itkRGBToLuminanceImageFilter_h
19 #define itkRGBToLuminanceImageFilter_h
38 template<
typename TInput,
typename TOutput >
43 using RealType =
typename itk::NumericTraits< ComponentType >::RealType;
54 return !( *
this != other );
58 {
return static_cast< TOutput
>( A.GetLuminance() ); }
62 template<
typename TInputImage,
typename TOutputImage >
76 typename TOutputImage::PixelType >;
85 #ifdef ITK_USE_CONCEPT_CHECKING
95 #if !defined( ITK_WRAPPING_PARSER )
Converts an RGB image into a grayscale image.
Functor::RGBToLuminance< typename TInputImage::PixelType, typename TOutputImage::PixelType > FunctorType
bool operator==(const RGBToLuminance &other) const
bool operator!=(const RGBToLuminance &) const
typename itk::NumericTraits< ComponentType >::RealType RealType
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Base class for all process objects that output image data.
void SetFunctor(const std::function< ConstRefFunctionType > &f)
RGBToLuminanceImageFilter()
typename TInput::ComponentType ComponentType
~RGBToLuminance()=default
~RGBToLuminanceImageFilter() override=default
#define itkConceptMacro(name, concept)
TOutput operator()(const TInput &A) const
Implements pixel-wise generic "operation" on one image.