These are the pre-v12 classes, kept so existing code keeps building. New code should use the modern API — see Migration Guide: v11 to v12.
optris::ThermalFrame
Encapsulates processed thermal frame data.
Inherits from optris::Frame.
Public functions
ThermalFrame
OTC_SDK_API ThermalFrame()=default
Constructor.
ThermalFrame
OTC_SDK_API ThermalFrame(const ThermalFrame &)=default
Copy constructor.
operator=
OTC_SDK_API ThermalFrame & operator=(const ThermalFrame &)=default
Copy assignment.
ThermalFrame
OTC_SDK_API ThermalFrame(ThermalFrame &&)=default
Move constructor.
operator=
OTC_SDK_API ThermalFrame & operator=(ThermalFrame &&)=default
Move assignment.
~ThermalFrame
OTC_SDK_API ~ThermalFrame() override=default
Destructor.
getTemperature
float getTemperature(int index) const
Returns the temperature in in °C at the given index.
Parameters
| Name | Description |
|---|---|
index |
of the desired frame temperature. |
Returns: temperature in in °C at the given index.
Exceptions
| Name | Description |
|---|---|
SDKException |
if index is out of range. |
getTemperature
float getTemperature(int x, int y) const
Returns the temperature in in °C at the given coordinates.
Parameters
| Name | Description |
|---|---|
x |
coordinate. |
y |
coordinate. |
Returns: temperature in in °C at the given coordinate.
Exceptions
| Name | Description |
|---|---|
SDKException |
if the coordinates are out of range. |
getTemperaturePrecision
TemperaturePrecision getTemperaturePrecision() const noexcept
Returns the precision of the temperatures stored in the frame.
Returns: precision of the temperatures stored in the frame.
copyTemperaturesTo
OTC_SDK_API void copyTemperaturesTo(float *destination, int size) const noexcept
Copies the thermal data as degree Celsius to a one-dimensional array or vector.
Warning: Make sure the destination has at least the size returned by getSize().
Parameters
| Name | Description |
|---|---|
destination |
to copy the internal data to. |
size |
as element count. The specified size is limited to [0, getSize()]. |
setData
OTC_SDK_API void setData(const unsigned short *source, TemperaturePrecision precision)
Sets the thermal frame data values. The provided data may be modified based on the given temperature precision.
Parameters
| Name | Description |
|---|---|
source |
to set the thermal frame data values from. |
precision |
of the temperature values. |
setFromRawData
OTC_SDK_API void setFromRawData(const void *source, TemperaturePrecision precision)
Sets the thermal frame values from raw data. The data from the source is directly copied to the internal memory and is not modified based on the provided temperature precision.
Parameters
| Name | Description |
|---|---|
source |
to set the thermal frame data from. |
precision |
of the thermal values. |
getConverter
TemperatureConverter getConverter() const noexcept
Returns the temperature converter. It can be used to convert and validate the thermal frame values to and from temperatures in °C.
Returns: temperature converter.