|  | 
| enum | scalingMode { NONE
, DEFAULT
, RANGE
 } | 
|  | For setting mode of conversions between unsigned and signed numbers, and between integers and floats.  More... 
 | 
|  | 
|  | 
| template<class T > | 
| static T | min () | 
|  | TODO: is this [0...1] limitation for floats valid? 
 | 
|  | 
| template<class T > | 
| static T | max () | 
|  | For floating-point values, returns 1.0, otherwise the upper limit of the range. 
 | 
|  | 
| template<class T > | 
| static T | maxOrigin () | 
|  | Value to be used in inverting numbers; returns 0.0 for floating-point values. 
 | 
|  | 
| template<class T > | 
| static T | limit (double x) | 
|  | Ensures that the value stays within the numeric range of T2. 
 | 
|  | 
◆ scalingMode
For setting mode of conversions between unsigned and signed numbers, and between integers and floats. 
Consider scaling a signed char image to unsigned short image . The former one takes values in range [-127,128], the latter in range [0,65535].
- NONE: negative values will be mapped to undetectValue, positive ones as such to [0,128].
- HALF: negative values will be mapped to undetectValue, [0,128] linearly to [0,65535].
- RANGE: -127 will be mapped to undetectValue, 128 to 65535, and linearly between these.
Assume that the latter will 
 
 
◆ min()
TODO: is this [0...1] limitation for floats valid? 
For floating-point values, returns 0.0, otherwise the lower limit of the range. 
 
 
The documentation for this class was generated from the following file: