18 #ifndef itkColormapFunction_h
19 #define itkColormapFunction_h
45 template<
typename TScalar,
typename TRGBPixel >
70 itkGetConstMacro(MinimumInputValue,
ScalarType);
73 itkGetConstMacro(MaximumInputValue,
ScalarType);
82 return !( *
this != other );
111 static_cast< RealType >( minInputValue ) ) / d;
113 value = vnl_math_max(0.0, value);
114 value = vnl_math_min(1.0, value);
136 os << indent <<
"Minimum RGB Component Value: "
139 os << indent <<
"Maximum RGB Component Value: "
142 os << indent <<
"Minimum Input Value: "
145 os << indent <<
"Maximum Input Value: "
152 void operator=(const
Self &) ITK_DELETE_FUNCTION;
virtual RGBComponentType GetMinimumRGBComponentValue() const
virtual RGBComponentType GetMaximumRGBComponentValue() const
RGBComponentType m_MaximumRGBComponentValue
virtual ScalarType GetMinimumInputValue() const
ScalarType m_MaximumInputValue
ScalarType m_MinimumInputValue
virtual bool operator!=(const ColormapFunction &) const
virtual bool operator==(const ColormapFunction &other) const
virtual RGBPixelType operator()(const ScalarType &) const =0
Function object which maps a scalar value into an RGB colormap value.
RGBComponentType RescaleRGBComponentValue(RealType v) const
NumericTraits< ScalarType >::RealType RealType
SmartPointer< Self > Pointer
SmartPointer< const Self > ConstPointer
Control indentation during Print() invocation.
virtual void PrintSelf(std::ostream &os, Indent indent) const override
virtual void PrintSelf(std::ostream &os, Indent indent) const override
TRGBPixel::ComponentType RGBComponentType
virtual ScalarType GetMaximumInputValue() const
Define additional traits for native types such as int or float.
RGBComponentType m_MinimumRGBComponentValue
Base class for most ITK classes.
RealType RescaleInputValue(ScalarType v) const