![]() |
Thermal Camera SDK 10.0.1
SDK for Optris Thermal Cameras
|
Rectangular measurement field with individual radiation parameters. More...
#include <MeasurementField.h>
Public Member Functions | |
OTC_SDK_API | MeasurementField () noexcept |
Constructor. | |
OTC_SDK_API | MeasurementField (int id, int x, int y, int width, int height, float emissivity=1.F, float transmissivity=1.F, float ambientTemperature=INVALID_TEMPERATURE) noexcept |
Constructor. | |
OTC_SDK_API | MeasurementField (const MeasurementField &rhs)=default |
Copy constructor. | |
OTC_SDK_API MeasurementField & | operator= (const MeasurementField &rhs)=default |
Copy assignment. | |
OTC_SDK_API | MeasurementField (MeasurementField &&rhs) noexcept=default |
Move constructor. | |
OTC_SDK_API MeasurementField & | operator= (MeasurementField &&rhs) noexcept=default |
Move assignment. | |
OTC_SDK_API | ~MeasurementField ()=default |
Destructor. | |
int | getId () const noexcept |
Returns the id of the measurement field. | |
void | setId (int id) noexcept |
Sets the id of the measurement field. | |
OTC_SDK_API unsigned short | getValue (int index) const |
Returns the field data value at the given index. | |
float | getTemperature (int index) const |
Returns the temperature in in °C at the given index. | |
OTC_SDK_API unsigned short | getValue (int x, int y) const |
Returns the field data value at the given coordinates. | |
float | getTemperature (int x, int y) const noexcept(false) |
Returns the temperature in in °C at the given coordinates. | |
ConstMeasurementFieldIterator | getConstIterator () const noexcept |
Returns an iterator with read access. | |
TemperaturePrecision | getTemperaturePrecision () const noexcept |
Returns the precision of the temperatures stored in the measurement field. | |
int | getX () const noexcept |
Returns the x-coordinate of the upper left corner. | |
int | getY () const noexcept |
Returns the y-coordinate of the upper left corner. | |
void | setPosition (int x, int y) noexcept |
Sets the position of the measurement field by providing the coordinates of the upper left corner. | |
int | getWidth () const noexcept |
Returns the width in pixels of the field. | |
int | getHeight () const noexcept |
Returns the height in pixels of the field. | |
int | getSize () const noexcept |
Returns the overall size of the field (width * height). | |
OTC_SDK_API void | resize (int width, int height) |
Resizes the measurement field. | |
float | getEmissivity () const noexcept |
Returns the emissivity of the field. | |
float | getTransmissivity () const noexcept |
Returns the transmissivity of the field. | |
float | getAmbientTemperature () const noexcept |
Returns the set ambient temperature in °C. | |
OTC_SDK_API void | setRadiationParameters (float emissivity, float transmissivity, float ambientTemperature) |
Sets the radiation parameters stored in the measurement field. | |
float | getMeanTemperature () const noexcept |
Returns the overall mean temperature of the field in °C. | |
float | getMinTemperature () const noexcept |
Returns the minimum temperature in the field in °C. | |
float | getMaxTemperature () const noexcept |
Returns the maximum temperature in the field in °C. | |
void | setTemperatures (float mean, float min, float max) noexcept |
Sets the mean, minimum and maximum temperatures in °C. | |
TemperatureConverter | getConverter () const noexcept |
Returns the temperature converter. | |
MeasurementField | clone () const noexcept |
Returns a complete copy of this frame. | |
OTC_SDK_API void | setData (const unsigned short *source, int frameWidth, TemperaturePrecision precision) |
Sets the thermal field data values. | |
OTC_SDK_API void | setFromRawData (const void *source, TemperaturePrecision precision) |
Sets the field 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. | |
const unsigned short * | getData () const noexcept |
Returns a pointer to the first element of the internal value array. | |
Friends | |
class | ConstMeasurementFieldIterator |
Rectangular measurement field with individual radiation parameters.
Once added via the IRImager the setters will no loner affect the processing of the field because the IRImager creates an internal copy of the field.
|
noexcept |
Constructor.
[in] | id | unique number to make the measurement fields identifiable. |
[in] | x | x-coordinate of the upper left corner of the rectangular field. |
[in] | y | y-coordinate of the upper left corner of the rectangular field. |
[in] | width | width of the field in pixels. |
[in] | height | height of the field in pixels. |
[in] | emissivity | emissivity parameter of material to be monitored. |
[in] | transmissivity | transmissivity of material in between camera and object, i.e. the transmissivity of the protective glass, if used. |
[in] | ambientTemperature | in °. Set it to INVALID_TEMPERATURE or less to force the SDK to estimate the ambient temperature based on thermal probe readings of the camera. |
|
inlinenoexcept |
Returns a complete copy of this frame.
|
noexcept |
Copies the internal values to the destination array.
[out] | destination | array to copy the internal data to. |
[in] | size | in bytes. The specified size is limited to [0, field size in bytes]. |
|
inlinenoexcept |
Returns the set ambient temperature in °C.
|
inlinenoexcept |
Returns an iterator with read access.
The iterator traverses the measurement field in a row major fashion.
|
inlinenoexcept |
Returns the temperature converter.
It can be used to convert and validate the thermal frame values to and from temperatures in °C.
|
inlinenoexcept |
Returns a pointer to the first element of the internal value array.
|
inlinenoexcept |
Returns the emissivity of the field.
|
inlinenoexcept |
Returns the height in pixels of the field.
|
inlinenoexcept |
Returns the id of the measurement field.
|
inlinenoexcept |
Returns the maximum temperature in the field in °C.
|
inlinenoexcept |
Returns the overall mean temperature of the field in °C.
|
inlinenoexcept |
Returns the minimum temperature in the field in °C.
|
inlinenoexcept |
Returns the overall size of the field (width * height).
|
inline |
Returns the temperature in in °C at the given index.
[in] | index | of the desired field 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 measurement field.
|
inlinenoexcept |
Returns the transmissivity of the field.
OTC_SDK_API unsigned short optris::MeasurementField::getValue | ( | int | index | ) | const |
Returns the field data value at the given index.
[in] | index | of the desired field data. |
SDKException | if the index is out of range. |
OTC_SDK_API unsigned short optris::MeasurementField::getValue | ( | int | x, |
int | y ) const |
Returns the field data value at the given coordinates.
[in] | x | coordinate. |
[in] | y | coordinate. |
SDKException | if the coordinates are out of range. |
|
inlinenoexcept |
Returns the width in pixels of the field.
|
inlinenoexcept |
Returns the x-coordinate of the upper left corner.
|
inlinenoexcept |
Returns the y-coordinate of the upper left corner.
OTC_SDK_API void optris::MeasurementField::resize | ( | int | width, |
int | height ) |
Resizes the measurement field.
[in] | width | in pixels of the resized measurement field. |
[in] | height | in pixels of the resized measurement field. |
OTC_SDK_API void optris::MeasurementField::setData | ( | const unsigned short * | source, |
int | frameWidth, | ||
TemperaturePrecision | precision ) |
Sets the thermal field data values.
The provided data may be modified based on the given temperature precision.
[in] | source | to set the field data values from. |
[in] | frameWidth | width in pixels of the frame containing the measurement field. |
[in] | precision | of the temperature values. |
OTC_SDK_API void optris::MeasurementField::setFromRawData | ( | const void * | source, |
TemperaturePrecision | precision ) |
Sets the field data values from raw data.
[in] | source | to set the field data values from. |
[in] | precision | of the thermal values. |
|
inlinenoexcept |
Sets the id of the measurement field.
[in] | id | new id of the measurement field. |
|
inlinenoexcept |
Sets the position of the measurement field by providing the coordinates of the upper left corner.
[in] | x | coordinate of the upper left corner of the rectangular field. |
[in] | y | coordinate of the upper left corner of the rectangular field. |
OTC_SDK_API void optris::MeasurementField::setRadiationParameters | ( | float | emissivity, |
float | transmissivity, | ||
float | ambientTemperature ) |
Sets the radiation parameters stored in the measurement field.
[in] | emissivity | for the measurement field. Should be in [0, 1]. |
[in] | transmissivity | for the measurement field. Should be in [0, 1]. |
[in] | ambientTemperature | in °C. Set to INVALID_TEMPERATURE or less to force the SDK to estimate the ambient temperature based on internal probe readings. |
SDKException | if emissivity or transmissivity is not in [0, 1]. |
|
inlinenoexcept |
Sets the mean, minimum and maximum temperatures in °C.
[in] | mean | temperature in °C. |
[in] | min | temperature in °C. |
[in] | max | temperature in °C. |