34 friend class ConstMeasurementFieldIterator;
60 float emissivity = 1.F,
61 float transmissivity = 1.F,
83 int getId() const noexcept;
90 void setId(
int id) noexcept;
161 int getX() const noexcept;
168 int getY() const noexcept;
329 const
unsigned short*
getData() const noexcept;
349 float _transmissivity;
351 float _ambientTemperature;
354 std::vector<
unsigned short> _values;
357 float _meanTemperature;
359 float _minTemperature;
361 float _maxTemperature;
381 return _converter.toTemperature(
getValue(index));
386 return _converter.toTemperature(
getValue(x, y));
391 return ConstMeasurementFieldIterator{*
this};
396 return _converter.getPrecision();
427 return static_cast<int>(_values.size());
437 return _transmissivity;
442 return _ambientTemperature;
447 return _meanTemperature;
452 return _minTemperature;
457 return _maxTemperature;
462 _meanTemperature = mean;
463 _minTemperature = min;
464 _maxTemperature = max;
479 return _values.data();
Contains defines controlling the Windows DLL export and import of symbols.
#define OTC_SDK_API
Only needed when working with Windows DLLs.
Definition Api.h:65
Contains the exceptions raised by the SDK.
Contains a class realizing the iteration over measurement field data.
Contains a class that converts between temperatures in the internal SDK format and in °C.
OTC_SDK_API void setFromRawData(const void *source, TemperaturePrecision precision)
Sets the field data values from raw data.
float getTransmissivity() const noexcept
Returns the transmissivity of the field.
Definition MeasurementField.h:435
int getX() const noexcept
Returns the x-coordinate of the upper left corner.
Definition MeasurementField.h:399
const unsigned short * getData() const noexcept
Returns a pointer to the first element of the internal value array.
Definition MeasurementField.h:477
OTC_SDK_API void resize(int width, int height)
Resizes the measurement field.
int getY() const noexcept
Returns the y-coordinate of the upper left corner.
Definition MeasurementField.h:404
OTC_SDK_API void setRadiationParameters(float emissivity, float transmissivity, float ambientTemperature)
Sets the radiation parameters stored in the measurement field.
OTC_SDK_API unsigned short getValue(int index) const
Returns the field data value at the given index.
TemperatureConverter getConverter() const noexcept
Returns the temperature converter.
Definition MeasurementField.h:467
int getSize() const noexcept
Returns the overall size of the field (width * height).
Definition MeasurementField.h:425
TemperaturePrecision getTemperaturePrecision() const noexcept
Returns the precision of the temperatures stored in the measurement field.
Definition MeasurementField.h:394
int getWidth() const noexcept
Returns the width in pixels of the field.
Definition MeasurementField.h:415
OTC_SDK_API void copyDataTo(unsigned short *destination, int size) const noexcept
Copies the internal values to the destination array.
void setPosition(int x, int y) noexcept
Sets the position of the measurement field by providing the coordinates of the upper left corner.
Definition MeasurementField.h:409
float getEmissivity() const noexcept
Returns the emissivity of the field.
Definition MeasurementField.h:430
float getMinTemperature() const noexcept
Returns the minimum temperature in the field in °C.
Definition MeasurementField.h:450
float getMaxTemperature() const noexcept
Returns the maximum temperature in the field in °C.
Definition MeasurementField.h:455
OTC_SDK_API void setData(const unsigned short *source, int frameWidth, TemperaturePrecision precision)
Sets the thermal field data values.
int getId() const noexcept
Returns the id of the measurement field.
Definition MeasurementField.h:369
float getTemperature(int index) const
Returns the temperature in in °C at the given index.
Definition MeasurementField.h:379
int getHeight() const noexcept
Returns the height in pixels of the field.
Definition MeasurementField.h:420
ConstMeasurementFieldIterator getConstIterator() const noexcept
Returns an iterator with read access.
Definition MeasurementField.h:389
void setTemperatures(float mean, float min, float max) noexcept
Sets the mean, minimum and maximum temperatures in °C.
Definition MeasurementField.h:460
MeasurementField clone() const noexcept
Returns a complete copy of this frame.
Definition MeasurementField.h:472
float getAmbientTemperature() const noexcept
Returns the set ambient temperature in °C.
Definition MeasurementField.h:440
OTC_SDK_API MeasurementField() noexcept
Constructor.
void setId(int id) noexcept
Sets the id of the measurement field.
Definition MeasurementField.h:374
float getMeanTemperature() const noexcept
Returns the overall mean temperature of the field in °C.
Definition MeasurementField.h:445
Converts temperatures in °C to and from their internal SDK representation.
Definition TemperatureConverter.h:23
Main SDK namespace.
Definition DeviceInfo.h:23
static constexpr float INVALID_TEMPERATURE
All temperatures in °C equal or lower are invalid.
Definition TemperaturePrecision.h:21
TemperaturePrecision
Represents the available temperature precisions.
Definition TemperaturePrecision.h:29