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 );
109 value = vnl_math_max(0.0, value);
110 value = vnl_math_min(1.0, value);
132 os << indent <<
"Minimum RGB Component Value: "
135 os << indent <<
"Maximum RGB Component Value: "
138 os << indent <<
"Minimum Input Value: "
141 os << indent <<
"Maximum Input Value: "
virtual void PrintSelf(std::ostream &os, Indent indent) const ITK_OVERRIDE
virtual RGBComponentType GetMinimumRGBComponentValue() const
void operator=(const Self &)
virtual RGBComponentType GetMaximumRGBComponentValue() const
RGBComponentType m_MaximumRGBComponentValue
virtual ScalarType GetMinimumInputValue() const
ScalarType m_MaximumInputValue
ScalarType m_MinimumInputValue
virtual void PrintSelf(std::ostream &os, Indent indent) const ITK_OVERRIDE
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.
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