![]() |
Thermal Camera SDK 10.1.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 (const MeasurementFieldConfig &config, long long fieldId, int referenceFrameWidth, int referenceFrameHeight) |
| 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. | |
| 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. | |
| 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. | |
| OTC_SDK_API 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. | |
| OTC_SDK_API void | scale (int frameWidth, int frameHeight) |
| Scales the position and dimensions of the measurement field based on new frame dimensions. | |
| RadiationParameterSource | getEmissivitySource () const noexcept |
| Returns the source of the emissivity value. | |
| RadiationParameterSource | getTransmissivitySource () const noexcept |
| Returns the source of the transmissivity value. | |
| RadiationParameterSource | getAmbientTemperatureSource () const noexcept |
| Returns the source of the ambient temperature value. | |
| RadiationParameters | getRadiationParameters () const noexcept |
| Grants read access to the radiation parameters used to process the measurement field. | |
| void | setRadiationParameters (const RadiationParameters &radiation) noexcept |
| Sets the radiation parameters stored in the measurement field. | |
| void | setRadiationParameterSources (RadiationParameterSource emissivitySource, RadiationParameterSource ambientTemperatureSource) noexcept |
| Sets the sources of the radiation parameters. | |
| 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.
| OTC_SDK_API optris::MeasurementField::MeasurementField | ( | const MeasurementFieldConfig & | config, |
| long long | fieldId, | ||
| int | referenceFrameWidth, | ||
| int | referenceFrameHeight ) |
Constructor.
| [in] | config | to create a measurement field from. |
| [in] | fieldId | uniquely identifying the measurement field. |
| [in] | referenceFrameWidth | in pixels for scaling. |
| [in] | referenceFrameHeight | in pixels for scaling. |
| SDKException | if one the reference frame dimensions is zero. |
|
inlinenoexcept |
Returns a complete copy of this frame.
|
noexcept |
|
noexcept |
|
inlinenoexcept |
Returns the source of the ambient temperature value.
|
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 source of the emissivity value.
|
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 |
Grants read access to the radiation parameters used to process 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 source of the transmissivity value.
| 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. |
| SDKException | if one of the provided dimensions is equal or less than zero. |
| OTC_SDK_API void optris::MeasurementField::scale | ( | int | frameWidth, |
| int | frameHeight ) |
Scales the position and dimensions of the measurement field based on new frame dimensions.
| [in] | frameWidth | new frame width in pixels. |
| [in] | frameHeight | new frame height in pixels. |
| 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. |
|
noexcept |
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. |
|
inlinenoexcept |
Sets the radiation parameters stored in the measurement field.
| [in] | radiation | parameters to set. |
|
inlinenoexcept |
Sets the sources of the radiation parameters.
| [in] | emissivitySource | to set. |
| [in] | ambientTemperatureSource | to set. |
|
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. |