18 #ifndef itkColormapFunction_h
19 #define itkColormapFunction_h
44 template <
typename TScalar,
typename TRGBPixel>
70 itkGetConstMacro(MinimumInputValue,
ScalarType);
73 itkGetConstMacro(MaximumInputValue,
ScalarType);
99 auto d = static_cast<RealType>(maxInputValue - minInputValue);
100 RealType value = (static_cast<RealType>(v) - static_cast<RealType>(minInputValue)) / d;
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: "