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

Represents offsets to Hounsfield Units Values. More...

#include <HUV.hpp>

Public Member Functions

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

Public Attributes

signed short value
 Holds the HU value.
 

Detailed Description

Represents offsets to Hounsfield Units Values.

Author
Leonid Kostrykin

Definition at line 120 of file HUV.hpp.

Constructor & Destructor Documentation

◆ HUVOffset() [1/2]

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

Creates a HUV offset with value. Clamps to \(\left[-4095, +4095\right]\).

Definition at line 162 of file HUV.hpp.

◆ HUVOffset() [2/2]

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

Creates a HUV offset corresponding to intensity. Clamps to \(\left[-4095, +4095\right]\).

Definition at line 170 of file HUV.hpp.

Member Function Documentation

◆ intensity()

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

Returns the corresponding intensity offset.

Definition at line 156 of file HUV.hpp.

Member Data Documentation

◆ value

signed short LibCarna::base::HUVOffset::value

Holds the HU value.

Definition at line 126 of file HUV.hpp.


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