15#ifndef HUV_H_6014714286
16#define HUV_H_6014714286
55 operator signed short()
const;
80inline HUV::operator
signed short()
const
89 if( this->value < -1024 ) this->value = -1024;
90 if( this->value > 3071 ) this->value = 3071;
96 const static float huvMax = 3071;
100 value =
static_cast< signed short >( std::lround(
huvFloat ) );
106 return (
value + 1024 ) / 4095.f;
158 return value / 4095.f;
165 if( this->value < -4095 ) this->value = -4095;
166 if( this->value > +4095 ) this->value = +4095;
175 value =
static_cast< signed short >( std::lround(
huvFloat ) );
Defines LibCarna::base::LibCarnaException and LibCarna::base::AssertionFailure.
Contains forward-declarations.
Represents an association.
Represents offsets to Hounsfield Units Values.
float intensity() const
Returns the corresponding intensity offset.
HUVOffset()=default
Constructor.
signed short value
Holds the HU value.
Represents Hounsfield Units Values in , usually used in CT imaging.
HUV()=default
Constructor.
float intensity() const
Returns the corresponding intensity.
signed short value
Holds the HU value.