|
ITK
5.1.0
Insight Toolkit
|
Go to the documentation of this file.
18 #ifndef itkRGBToLuminanceImageFilter_h
19 #define itkRGBToLuminanceImageFilter_h
39 template <
typename TInput,
typename TOutput>
57 return !(*
this != other);
63 return static_cast<TOutput>(A.GetLuminance());
68 template <
typename TInputImage,
typename TOutputImage>
87 #ifdef ITK_USE_CONCEPT_CHECKING
97 #if !defined(ITK_WRAPPING_PARSER)
Functor::RGBToLuminance< typename TInputImage::PixelType, typename TOutputImage::PixelType > FunctorType
void SetFunctor(const std::function< ConstRefFunctionType > &f)
bool operator==(const RGBToLuminance &other) const
Implements pixel-wise generic "operation" on one image.
TOutput operator()(const TInput &A) const
typename TInput::ComponentType ComponentType
typename itk::NumericTraits< ComponentType >::RealType RealType
Base class for all process objects that output image data.
~RGBToLuminanceImageFilter() override=default
RGBToLuminanceImageFilter()
~RGBToLuminance()=default
bool operator!=(const RGBToLuminance &) const
Converts an RGB image into a grayscale image.
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...