18 #ifndef __itkColormapFunction_h
19 #define __itkColormapFunction_h
45 template<
class TScalar,
class TRGBPixel >
70 itkGetConstMacro(MinimumInputValue,
ScalarType);
73 itkGetConstMacro(MaximumInputValue,
ScalarType);
82 return !( *
this != other );
85 virtual RGBPixelType operator()(
const ScalarType &)
const = 0;
104 this->m_MinimumInputValue );
106 static_cast< RealType >( this->m_MinimumInputValue ) ) / d;
109 value = vnl_math_max(0.0, value);
110 value = vnl_math_min(1.0, value);
120 m_MinimumRGBComponentValue );
122 d * v ) + this->m_MinimumRGBComponentValue;
128 void PrintSelf(std::ostream & os,
Indent indent)
const
130 Superclass::PrintSelf(os, indent);
132 os << indent <<
"Minimum RGB Component Value: "
134 this->GetMinimumRGBComponentValue() ) << std::endl;
135 os << indent <<
"Maximum RGB Component Value: "
137 this->GetMaximumRGBComponentValue() ) << std::endl;
138 os << indent <<
"Minimum Input Value: "
140 this->GetMinimumInputValue() ) << std::endl;
141 os << indent <<
"Maximum Input Value: "
143 this->GetMaximumInputValue() ) << std::endl;
148 void operator=(
const Self &);