35 friend class ConstMeasurementFieldIterator;
77 long long getId() const noexcept;
98 const std::
string&
getName() const noexcept;
105 void setName(const std::
string& name) noexcept;
175 int getX() const noexcept;
182 int getY() const noexcept;
379 const
unsigned short*
getData() const noexcept;
392 std::vector<
unsigned short> _values;
395 float _meanTemperature;
397 float _minTemperature;
399 float _maxTemperature;
439 return _converter.toTemperature(
getValue(index));
444 return _converter.toTemperature(
getValue(x, y));
449 return ConstMeasurementFieldIterator{*
this};
454 return _converter.getPrecision();
459 return _config.positionX;
464 return _config.positionY;
469 _config.positionX = x;
470 _config.positionY = y;
475 return _config.shape;
490 return _config.width;
495 return _config.height;
500 return static_cast<int>(_values.size());
505 return _config.emissivity;
510 return _config.transmissivity;
515 return _config.ambientTemperature;
520 return _meanTemperature;
525 return _minTemperature;
530 return _maxTemperature;
535 _meanTemperature = mean;
536 _minTemperature = min;
537 _maxTemperature = max;
552 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 encapsulating the configuration of a measurement field.
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.
Encapsulates the configuration of a measurement field.
Definition MeasurementFieldConfig.h:26
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:508
int getX() const noexcept
Returns the x-coordinate of the upper left corner.
Definition MeasurementField.h:457
const unsigned short * getData() const noexcept
Returns a pointer to the first element of the internal value array.
Definition MeasurementField.h:550
OTC_SDK_API void resize(int width, int height)
Resizes the measurement field.
int getIndex() const noexcept
Returns the index of the measurement field.
Definition MeasurementField.h:417
int getY() const noexcept
Returns the y-coordinate of the upper left corner.
Definition MeasurementField.h:462
OTC_SDK_API void setRadiationParameters(float emissivity, float transmissivity, float ambientTemperature)
Sets the radiation parameters stored in the measurement field.
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 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:540
void setName(const std::string &name) noexcept
Sets the name of the measurement field.
Definition MeasurementField.h:432
FieldShape getShape() const noexcept
Returns the shape of the measurement field.
Definition MeasurementField.h:473
int getSize() const noexcept
Returns the overall size of the field (width * height).
Definition MeasurementField.h:498
TemperaturePrecision getTemperaturePrecision() const noexcept
Returns the precision of the temperatures stored in the measurement field.
Definition MeasurementField.h:452
int getWidth() const noexcept
Returns the width in pixels of the field.
Definition MeasurementField.h:488
FieldMode getMode() const noexcept
Returns the mode for the measurement field.
Definition MeasurementField.h:478
OTC_SDK_API float getDataPoint() const noexcept
Returns the data point specified by the the mode of this field.
const std::string & getName() const noexcept
Returns the name of the measurement field.
Definition MeasurementField.h:427
OTC_SDK_API void copyDataTo(unsigned short *destination, int size) const noexcept
Copies the internal values to a one-dimensional array or vector.
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:467
float getEmissivity() const noexcept
Returns the emissivity of the field.
Definition MeasurementField.h:503
float getMinTemperature() const noexcept
Returns the minimum temperature in the field in °C.
Definition MeasurementField.h:523
float getMaxTemperature() const noexcept
Returns the maximum temperature in the field in °C.
Definition MeasurementField.h:528
OTC_SDK_API void setData(const unsigned short *source, int frameWidth, TemperaturePrecision precision)
Sets the thermal field data values.
float getTemperature(int index) const
Returns the temperature in in °C at the given index.
Definition MeasurementField.h:437
void setIndex(int index) noexcept
Sets the index of the measurement field.
Definition MeasurementField.h:422
int getHeight() const noexcept
Returns the height in pixels of the field.
Definition MeasurementField.h:493
ConstMeasurementFieldIterator getConstIterator() const noexcept
Returns an iterator with read access.
Definition MeasurementField.h:447
void setTemperatures(float mean, float min, float max) noexcept
Sets the mean, minimum and maximum temperatures in °C.
Definition MeasurementField.h:533
MeasurementField clone() const noexcept
Returns a complete copy of this frame.
Definition MeasurementField.h:545
float getAmbientTemperature() const noexcept
Returns the set ambient temperature in °C.
Definition MeasurementField.h:513
void setMode(FieldMode mode) noexcept
Sets the mode for the measurement field.
Definition MeasurementField.h:483
OTC_SDK_API MeasurementField() noexcept
Constructor.
long long getId() const noexcept
Returns the ID uniquely identifying the measurement field.
Definition MeasurementField.h:412
float getMeanTemperature() const noexcept
Returns the overall mean temperature of the field in °C.
Definition MeasurementField.h:518
const MeasurementFieldConfig & getConfig() const noexcept
Returns the configuration of the measurement field.
Definition MeasurementField.h:407
Converts temperatures in °C to and from their internal SDK representation.
Definition TemperatureConverter.h:23
Main SDK namespace.
Definition DeviceInfo.h:23
FieldShape
Represents the different available shapes of fields.
Definition FieldProperties.h:24
FieldMode
Represents the different field modes that define what data point is calculated.
Definition FieldProperties.h:30
TemperaturePrecision
Represents the available temperature precisions.
Definition TemperaturePrecision.h:32