Thermal Camera SDK 11.3.0
SDK for Optris Thermal Cameras
Loading...
Searching...
No Matches
optris::TemperatureConverter Class Reference

Converts temperatures in °C to and from their internal SDK representation. More...

#include <TemperatureConverter.h>

Collaboration diagram for optris::TemperatureConverter:
Collaboration graph

Public Member Functions

OTC_SDK_API TemperatureConverter () noexcept
 Constructor.
 
OTC_SDK_API TemperatureConverter (TemperaturePrecision precision) noexcept
 Constructor.
 
OTC_SDK_API void setPrecision (TemperaturePrecision precision) noexcept
 Set the temperature precision.
 
TemperaturePrecision getPrecision () const noexcept
 Returns the temperature precision.
 
float toTemperature (unsigned short value) const noexcept
 Converts an internal value to a temperature in °C.
 
float toTemperature (float value) const noexcept
 Converts a sub-integer internal value to a temperature in °C.
 
unsigned short toValue (float temperature) const noexcept
 Converts a temperature in °C to an internal value.
 
bool isTemperatureValid (float temperature) noexcept
 Checks if the given temperature in °C is valid.
 
bool isValueValid (unsigned short value) noexcept
 Checks if an internal value is valid.
 
float getInvalidTemperature () const noexcept
 Returns the value signifying an invalid temperature.
 
unsigned short getInvalidValue () const noexcept
 Returns the value signifying an invalid internal value.
 

Detailed Description

Converts temperatures in °C to and from their internal SDK representation.

Constructor & Destructor Documentation

◆ TemperatureConverter()

OTC_SDK_API optris::TemperatureConverter::TemperatureConverter ( TemperaturePrecision precision)
noexcept

Constructor.

Parameters
[in]precisionof the temperature.

Member Function Documentation

◆ getInvalidTemperature()

float optris::TemperatureConverter::getInvalidTemperature ( ) const
inlinenoexcept

Returns the value signifying an invalid temperature.

Returns
value signifying an invalid temperature.

◆ getInvalidValue()

unsigned short optris::TemperatureConverter::getInvalidValue ( ) const
inlinenoexcept

Returns the value signifying an invalid internal value.

Returns
value signifying an invalid internal value.

◆ getPrecision()

TemperaturePrecision optris::TemperatureConverter::getPrecision ( ) const
inlinenoexcept

Returns the temperature precision.

Returns
temperature precision.

◆ isTemperatureValid()

bool optris::TemperatureConverter::isTemperatureValid ( float temperature)
inlinenoexcept

Checks if the given temperature in °C is valid.

Parameters
[in]temperaturein °C to check.
Returns
true if the temperature is valid. False otherwise.

◆ isValueValid()

bool optris::TemperatureConverter::isValueValid ( unsigned short value)
inlinenoexcept

Checks if an internal value is valid.

Parameters
[in]valueto check.
Returns
true if the value is valid. False otherwise.

◆ setPrecision()

OTC_SDK_API void optris::TemperatureConverter::setPrecision ( TemperaturePrecision precision)
noexcept

Set the temperature precision.

Parameters
[in]precisionto set.

◆ toTemperature() [1/2]

float optris::TemperatureConverter::toTemperature ( float value) const
inlinenoexcept

Converts a sub-integer internal value to a temperature in °C.

For callers that hold scaling-range state at sub-integer precision (see ImageBuilder's hysteresis filter and the Sigma scaling modes).

Parameters
[in]valuesub-integer internal value to convert.
Returns
temperature in °C.

◆ toTemperature() [2/2]

float optris::TemperatureConverter::toTemperature ( unsigned short value) const
inlinenoexcept

Converts an internal value to a temperature in °C.

Parameters
[in]valueinternal value to convert.
Returns
temperature in °C.

◆ toValue()

unsigned short optris::TemperatureConverter::toValue ( float temperature) const
inlinenoexcept

Converts a temperature in °C to an internal value.

Parameters
[in]temperaturein °C to convert.
Returns
internal value.

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