![]() |
Thermal Camera SDK 10.1.0
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 (const MeasurementFieldConfig &config, long long fieldId) 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. | |
| const MeasurementFieldConfig & | getConfig () const noexcept |
| Returns the configuration of the measurement field. | |
| long long | getId () const noexcept |
| Returns the ID uniquely identifying the measurement field. | |
| int | getIndex () const noexcept |
| Returns the index of the measurement field. | |
| void | setIndex (int index) noexcept |
| Sets the index of the measurement field. | |
| const std::string & | getName () const noexcept |
| Returns the name of the measurement field. | |
| void | setName (const std::string &name) noexcept |
| Sets the name 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. | |
| FieldShape | getShape () const noexcept |
| Returns the shape of the measurement field. | |
| FieldMode | getMode () const noexcept |
| Returns the mode for the measurement field. | |
| void | setMode (FieldMode mode) noexcept |
| Sets the mode for the measurement field. | |
| 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. | |
| OTC_SDK_API float | getDataPoint () const noexcept |
| Returns the data point specified by the the mode of this field. | |
| 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 | copyTemperaturesTo (float *destination, int size) const noexcept |
| Copies the thermal data as degree Celsius to a one-dimensional array or vector. | |
| OTC_SDK_API void | copyDataTo (unsigned short *destination, int size) const noexcept |
| Copies the internal values to a one-dimensional array or vector. | |
| 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] | config | to create a measurement field from. |
| [in] | fieldId | uniquely identifying the measurement field. |
|
inlinenoexcept |
Returns a complete copy of this frame.
|
noexcept |
|
noexcept |
|
inlinenoexcept |
Returns the set ambient temperature in °C.
|
inlinenoexcept |
Returns the configuration of the measurement field.
|
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.
|
noexcept |
Returns the data point specified by the the mode of this field.
|
inlinenoexcept |
Returns the emissivity of the field.
|
inlinenoexcept |
Returns the height in pixels of the field.
|
inlinenoexcept |
Returns the ID uniquely identifying the measurement field.
|
inlinenoexcept |
Returns the index 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 mode for the measurement field.
|
inlinenoexcept |
Returns the name of the measurement field.
|
inlinenoexcept |
Returns the shape of the measurement field.
|
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 index of the measurement field.
| [in] | index | to set. |
|
inlinenoexcept |
Sets the mode for the measurement field.
| [in] | mode | to set. |
|
inlinenoexcept |
Sets the name of the measurement field.
| [in] | name | 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. |