18 #ifndef itkColormapFunction_h
19 #define itkColormapFunction_h
45 template <
typename TScalar,
typename TRGBPixel>
71 itkGetConstMacro(MinimumInputValue,
ScalarType);
74 itkGetConstMacro(MaximumInputValue,
ScalarType);
85 return !(*
this != other);
112 auto d = static_cast<RealType>(maxInputValue - minInputValue);
113 RealType value = (static_cast<RealType>(v) - static_cast<RealType>(minInputValue)) / d;
115 value = std::max(0.0, value);
116 value = std::min(1.0, value);
138 os << indent <<
"Minimum RGB Component Value: "
141 os << indent <<
"Maximum RGB Component Value: "
144 os << indent <<
"Minimum Input Value: "
146 os << indent <<
"Maximum Input Value: "