18#ifndef itkColormapFunction_h
19#define itkColormapFunction_h
44template <
typename TScalar,
typename TRGBPixel>
99 auto d =
static_cast<RealType>(maxInputValue - minInputValue);
101 value = std::clamp(value, 0.0, 1.0);
123 os << indent <<
"Minimum RGB Component Value: "
126 os << indent <<
"Maximum RGB Component Value: "
129 os << indent <<
"Minimum Input Value: "
131 os << indent <<
"Maximum Input Value: "
Function object which maps a scalar value into an RGB colormap value.
ScalarType m_MaximumInputValue
void PrintSelf(std::ostream &os, Indent indent) const override
RealType RescaleInputValue(ScalarType v) const
RGBComponentType RescaleRGBComponentValue(RealType v) const
~ColormapFunction() override=default
typename TRGBPixel::ComponentType RGBComponentType
typename NumericTraits< ScalarType >::RealType RealType
virtual RGBComponentType GetMinimumRGBComponentValue() const
virtual ScalarType GetMinimumInputValue() const
virtual RGBComponentType GetMaximumRGBComponentValue() const
RGBComponentType m_MaximumRGBComponentValue
virtual ScalarType GetMaximumInputValue() const
virtual RGBPixelType operator()(const ScalarType &) const =0
ScalarType m_MinimumInputValue
RGBComponentType m_MinimumRGBComponentValue
Control indentation during Print() invocation.
Light weight base class for most itk classes.
Define additional traits for native types such as int or float.
static constexpr T max(const T &)
static constexpr T min(const T &)
Base class for most ITK classes.
void PrintSelf(std::ostream &os, Indent indent) const override
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....