LibCarna Version 3.4.0
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
LibCarna::base::HUV Struct Reference

Represents Hounsfield Units Values in \(\left[-1024, +3071\right]\), usually used in CT imaging. More...

#include <HUV.hpp>

Public Member Functions

 operator signed short () const
 Implicitly casts into a signed short and yields value.
 
 HUV ()=default
 Constructor.
 
 HUV (signed int value)
 Creates HUV with value. Clamps to \(\left[-1024, 3071\right]\).
 
 HUV (float intensity)
 Creates HUV corresponding to intensity. Clamps to \(\left[-1024, 3071\right]\).
 
float intensity () const
 Returns the corresponding intensity.
 

Public Attributes

signed short value
 Holds the HU value.
 

Detailed Description

Represents Hounsfield Units Values in \(\left[-1024, +3071\right]\), usually used in CT imaging.

Author
Leonid Kostrykin

Definition at line 44 of file HUV.hpp.

Constructor & Destructor Documentation

◆ HUV() [1/2]

LibCarna::base::HUV::HUV ( signed int  value)
inlineexplicit

Creates HUV with value. Clamps to \(\left[-1024, 3071\right]\).

Definition at line 86 of file HUV.hpp.

◆ HUV() [2/2]

LibCarna::base::HUV::HUV ( float  intensity)
inlineexplicit

Creates HUV corresponding to intensity. Clamps to \(\left[-1024, 3071\right]\).

Definition at line 94 of file HUV.hpp.

Member Function Documentation

◆ intensity()

float LibCarna::base::HUV::intensity ( ) const
inline

Returns the corresponding intensity.

Definition at line 104 of file HUV.hpp.

◆ operator signed short()

LibCarna::base::HUV::operator signed short ( ) const
inline

Implicitly casts into a signed short and yields value.

Definition at line 80 of file HUV.hpp.

Member Data Documentation

◆ value

signed short LibCarna::base::HUV::value

Holds the HU value.

Definition at line 50 of file HUV.hpp.


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