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;
102 value = std::max(0.0, value);
103 value = std::min(1.0, value);
125 os << indent <<
"Minimum RGB Component Value: "
128 os << indent <<
"Maximum RGB Component Value: "
131 os << indent <<
"Minimum Input Value: "
133 os << indent <<
"Maximum Input Value: "