![]() |
Thermal Camera SDK 10.0.1
SDK for Optris Thermal Cameras
|
Encapsulates thermal frame data received from a device. More...
#include <ThermalFrame.h>
Public Member Functions | |
OTC_SDK_API | ThermalFrame ()=default |
Constructor. | |
OTC_SDK_API | ThermalFrame (const ThermalFrame &)=default |
Copy constructor. | |
OTC_SDK_API ThermalFrame & | operator= (const ThermalFrame &)=default |
Copy assignment. | |
OTC_SDK_API | ThermalFrame (ThermalFrame &&)=default |
Move constructor. | |
OTC_SDK_API ThermalFrame & | operator= (ThermalFrame &&)=default |
Move assignment. | |
OTC_SDK_API | ~ThermalFrame () override=default |
Destructor. | |
float | getTemperature (int index) const |
Returns the temperature in in °C at the given index. | |
float | getTemperature (int x, int y) const |
Returns the temperature in in °C at the given coordinates. | |
TemperaturePrecision | getTemperaturePrecision () const noexcept |
Returns the precision of the temperatures stored in the frame. | |
OTC_SDK_API void | setData (const unsigned short *source, TemperaturePrecision precision) |
Sets the thermal frame data values. | |
OTC_SDK_API void | setFromRawData (const void *source, TemperaturePrecision precision) |
Sets the thermal frame values from raw data. | |
TemperatureConverter | getConverter () const noexcept |
Returns the temperature converter. | |
ThermalFrame | clone () const noexcept |
Returns a complete copy of this frame. | |
![]() | |
OTC_SDK_API | Frame () noexcept |
Constructor. | |
OTC_SDK_API | Frame (const Frame &)=default |
Copy constructor. | |
OTC_SDK_API Frame & | operator= (const Frame &)=default |
Copy assignment. | |
OTC_SDK_API | Frame (Frame &&)=default |
Move constructor. | |
OTC_SDK_API Frame & | operator= (Frame &&)=default |
Move assignment. | |
virtual OTC_SDK_API | ~Frame () noexcept=default |
Destructor. | |
OTC_SDK_API unsigned short | getValue (int index) const noexcept(false) |
Returns the frame data value at the given index. | |
OTC_SDK_API unsigned short | getValue (int x, int y) const noexcept(false) |
Returns the frame data value at the given coordinates. | |
OTC_SDK_API ConstFrameIterator | getConstIterator () const noexcept |
Returns an iterator with read access. | |
OTC_SDK_API int | getWidth () const noexcept |
Returns the width in pixels of the frame. | |
OTC_SDK_API int | getHeight () const noexcept |
Returns the height in pixel of the frame. | |
OTC_SDK_API int | getSize () const noexcept |
Returns the overall size in pixels of the frame (width * height). | |
OTC_SDK_API bool | isEmpty () const noexcept |
Returns whether the frame is empty. | |
OTC_SDK_API void | clear () |
Clears the frame data. | |
OTC_SDK_API void | resize (int width, int height) |
Resizes the frame. | |
OTC_SDK_API Frame | clone () const noexcept |
Returns a complete copy of this frame. | |
OTC_SDK_API void | setData (const unsigned short *source) |
Sets the frame data values. | |
OTC_SDK_API void | setFromRawData (const void *source) |
Sets the frame data values from raw data. | |
OTC_SDK_API void | copyDataTo (unsigned short *destination, int size) const noexcept |
Copies the internal values to the destination array. | |
OTC_SDK_API const unsigned short * | getData () const noexcept |
Returns a pointer to the first element of the internal value array. | |
Additional Inherited Members | |
![]() | |
std::vector< unsigned short > | _values |
Frame data. | |
Encapsulates thermal frame data received from a device.
|
inlinenoexcept |
Returns a complete copy of this frame.
|
inlinenoexcept |
Returns the temperature converter.
It can be used to convert and validate the thermal frame values to and from temperatures in °C.
|
inline |
Returns the temperature in in °C at the given index.
[in] | index | of the desired frame temperature. |
SDKException | if index is out of range. |
|
inline |
Returns the temperature in in °C at the given coordinates.
[in] | x | coordinate. |
[in] | y | coordinate. |
SDKException | if the coordinates are out of range. |
|
inlinenoexcept |
Returns the precision of the temperatures stored in the frame.
OTC_SDK_API void optris::ThermalFrame::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.
[in] | source | to set the thermal frame data values from. |
[in] | precision | of the temperature values. |
OTC_SDK_API void optris::ThermalFrame::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.
[in] | source | to set the thermal frame data from. |
[in] | precision | of the thermal values. |