Carna
Version 3.3.2
|
Represents values in \(\left[-1024, +3071\right]\). More...
#include <HUV.h>
Public Member Functions | |
operator signed short () const | |
Implicitly casts into a signed short and yields value. | |
HUV ()=default | |
Constructor. | |
HUV (signed int value, bool absolute=false) | |
Creates HUV with value. Clamps to \(\left[-1024, 3071\right]\) if absolute is true . | |
HUV (float intensity, bool absolute=false) | |
Creates HUV corresponding to intensity. Clamps to \(\left[-1024, 3071\right]\) if absolute is true . | |
float | absIntensity () const |
Returns the corresponding absolute intensity. | |
float | relIntensity () const |
Returns the corresponding relative intensity. | |
Static Public Member Functions | |
template<typename T > | |
static HUV | abs (T value) |
Wraps an absolute HU value. | |
template<typename T > | |
static HUV | rel (T value) |
Wraps a relative HU value. | |
Public Attributes | |
signed short | value |
Holds the HU value. | |
Represents values in \(\left[-1024, +3071\right]\).
Documentation generated by Doxygen