74 static T
min(){
return std::numeric_limits<T>::is_integer ? std::numeric_limits<T>::min() : 0; }
79 static T
max(){
return std::numeric_limits<T>::is_integer ? std::numeric_limits<T>::max() : 1; }
84 static T
maxOrigin(){
return std::numeric_limits<T>::is_integer ? std::numeric_limits<T>::max() : 0; }
90 static const double xMin =
static_cast<double>(
91 std::numeric_limits<T>::is_integer ? std::numeric_limits<T>::min() : -std::numeric_limits<T>::max() );
92 static const double xMax =
static_cast<double>( std::numeric_limits<T>::max() );
95 return static_cast<T
>(x);
Definition: Intensity.h:49
static T max()
For floating-point values, returns 1.0, otherwise the upper limit of the range.
Definition: Intensity.h:79
static T min()
TODO: is this [0...1] limitation for floats valid?
Definition: Intensity.h:74
scalingMode
For setting mode of conversions between unsigned and signed numbers, and between integers and floats.
Definition: Intensity.h:67
static T maxOrigin()
Value to be used in inverting numbers; returns 0.0 for floating-point values.
Definition: Intensity.h:84
static T limit(double x)
Ensures that the value stays within the numeric range of T2.
Definition: Intensity.h:89
Definition: DataSelector.cpp:1277