18#ifndef itkColormapFunction_h
19#define itkColormapFunction_h
43template <
typename TScalar,
typename TRGBPixel>
96 auto d =
static_cast<RealType>(maxInputValue - minInputValue);
98 value = std::clamp(value, 0.0, 1.0);
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.
void PrintNumericTrait(std::ostream &os, const Indent &indent, const char *name, const T &value)
Print "<name>: <value>\n" indented, matching ITK's PrintSelf style.