18 #ifndef itkColormapFunction_h
19 #define itkColormapFunction_h
44 template <
typename TScalar,
typename TRGBPixel>
70 itkGetConstMacro(MinimumInputValue,
ScalarType);
73 itkGetConstMacro(MaximumInputValue,
ScalarType);
84 return !(*
this != other);
111 auto d = static_cast<RealType>(maxInputValue - minInputValue);
112 RealType value = (static_cast<RealType>(v) - static_cast<RealType>(minInputValue)) / d;
114 value = std::max(0.0, value);
115 value = std::min(1.0, value);
137 os << indent <<
"Minimum RGB Component Value: "
140 os << indent <<
"Maximum RGB Component Value: "
143 os << indent <<
"Minimum Input Value: "
145 os << indent <<
"Maximum Input Value: "