18#ifndef itkColormapFunction_h
19#define itkColormapFunction_h
42template <
typename TScalar,
typename TRGBPixel>
95 auto d =
static_cast<RealType>(maxInputValue - minInputValue);
97 value = std::clamp(value, 0.0, 1.0);
118 os << indent <<
"Minimum RGB Component Value: "
121 os << indent <<
"Maximum RGB Component Value: "
124 os << indent <<
"Minimum Input Value: "
126 os << indent <<
"Maximum Input Value: "
ScalarType m_MaximumInputValue
SmartPointer< Self > Pointer
void PrintSelf(std::ostream &os, Indent indent) const override
RealType RescaleInputValue(ScalarType v) const
RGBComponentType RescaleRGBComponentValue(RealType v) const
~ColormapFunction() override=default
SmartPointer< const Self > ConstPointer
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.
Define additional traits for native types such as int or float.
void PrintSelf(std::ostream &os, Indent indent) const override
Implements transparent reference counting.