Carna  Version 3.3.2
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Carna::base::HUV Struct Reference

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.
 

Detailed Description

Represents values in \(\left[-1024, +3071\right]\).

Author
Leonid Kostrykin
Date
June 2021

Definition at line 34 of file HUV.h.


The documentation for this struct was generated from the following file: