35 friend class ConstMeasurementFieldIterator;
54 int referenceFrameWidth,
55 int referenceFrameHeight);
84 long long getId() const noexcept;
105 std::
string getName() const noexcept;
112 void setName(const std::
string& name) noexcept;
182 int getX() const noexcept;
189 int getY() const noexcept;
407 const
unsigned short*
getData() const noexcept;
420 int _positionXScaled;
422 int _positionYScaled;
430 int _referenceFrameWidth;
432 int _referenceFrameHeight;
440 std::vector<
unsigned short> _values;
443 float _meanTemperature;
445 float _minTemperature;
447 float _maxTemperature;
487 return _converter.toTemperature(
getValue(index));
492 return _converter.toTemperature(
getValue(x, y));
497 return ConstMeasurementFieldIterator{*
this};
502 return _converter.getPrecision();
507 return _positionXScaled;
512 return _positionYScaled;
517 return _config.shape;
537 return _heightScaled;
542 return static_cast<int>(_values.size());
547 return _emissivitySource;
557 return _ambientTemperatureSource;
562 return _config.radiation;
567 _config.radiation = radiation;
573 _emissivitySource = emissivitySource;
574 _ambientTemperatureSource = ambientTemperatureSource;
579 return _meanTemperature;
584 return _minTemperature;
589 return _maxTemperature;
594 _meanTemperature = mean;
595 _minTemperature = min;
596 _maxTemperature = max;
611 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.
RadiationParameterSource getTransmissivitySource() const noexcept
Returns the source of the transmissivity value.
Definition MeasurementField.h:550
int getX() const noexcept
Returns the x-coordinate of the upper left corner.
Definition MeasurementField.h:505
OTC_SDK_API void scale(int frameWidth, int frameHeight)
Scales the position and dimensions of the measurement field based on new frame dimensions.
const unsigned short * getData() const noexcept
Returns a pointer to the first element of the internal value array.
Definition MeasurementField.h:609
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:465
int getY() const noexcept
Returns the y-coordinate of the upper left corner.
Definition MeasurementField.h:510
void setRadiationParameterSources(RadiationParameterSource emissivitySource, RadiationParameterSource ambientTemperatureSource) noexcept
Sets the sources of the radiation parameters.
Definition MeasurementField.h:570
void setRadiationParameters(const RadiationParameters &radiation) noexcept
Sets the radiation parameters stored in the measurement field.
Definition MeasurementField.h:565
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.
MeasurementFieldConfig getConfig() const noexcept
Returns the configuration of the measurement field.
Definition MeasurementField.h:455
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:599
void setName(const std::string &name) noexcept
Sets the name of the measurement field.
Definition MeasurementField.h:480
FieldShape getShape() const noexcept
Returns the shape of the measurement field.
Definition MeasurementField.h:515
int getSize() const noexcept
Returns the overall size of the field (width * height).
Definition MeasurementField.h:540
TemperaturePrecision getTemperaturePrecision() const noexcept
Returns the precision of the temperatures stored in the measurement field.
Definition MeasurementField.h:500
int getWidth() const noexcept
Returns the width in pixels of the field.
Definition MeasurementField.h:530
FieldMode getMode() const noexcept
Returns the mode for the measurement field.
Definition MeasurementField.h:520
OTC_SDK_API float getDataPoint() const noexcept
Returns the data point specified by the the mode of this field.
OTC_SDK_API void copyDataTo(unsigned short *destination, int size) const noexcept
Copies the internal values to a one-dimensional array or vector.
RadiationParameters getRadiationParameters() const noexcept
Grants read access to the radiation parameters used to process the measurement field.
Definition MeasurementField.h:560
std::string getName() const noexcept
Returns the name of the measurement field.
Definition MeasurementField.h:475
RadiationParameterSource getEmissivitySource() const noexcept
Returns the source of the emissivity value.
Definition MeasurementField.h:545
float getMinTemperature() const noexcept
Returns the minimum temperature in the field in °C.
Definition MeasurementField.h:582
float getMaxTemperature() const noexcept
Returns the maximum temperature in the field in °C.
Definition MeasurementField.h:587
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:485
void setIndex(int index) noexcept
Sets the index of the measurement field.
Definition MeasurementField.h:470
int getHeight() const noexcept
Returns the height in pixels of the field.
Definition MeasurementField.h:535
ConstMeasurementFieldIterator getConstIterator() const noexcept
Returns an iterator with read access.
Definition MeasurementField.h:495
void setTemperatures(float mean, float min, float max) noexcept
Sets the mean, minimum and maximum temperatures in °C.
Definition MeasurementField.h:592
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.
RadiationParameterSource getAmbientTemperatureSource() const noexcept
Returns the source of the ambient temperature value.
Definition MeasurementField.h:555
MeasurementField clone() const noexcept
Returns a complete copy of this frame.
Definition MeasurementField.h:604
void setMode(FieldMode mode) noexcept
Sets the mode for the measurement field.
Definition MeasurementField.h:525
OTC_SDK_API MeasurementField() noexcept
Constructor.
long long getId() const noexcept
Returns the ID uniquely identifying the measurement field.
Definition MeasurementField.h:460
float getMeanTemperature() const noexcept
Returns the overall mean temperature of the field in °C.
Definition MeasurementField.h:577
Holds the radiation parameters for a frame or a measurement field.
Definition RadiationParameters.h:34
Converts temperatures in °C to and from their internal SDK representation.
Definition TemperatureConverter.h:23
Main SDK namespace.
Definition DeviceInfo.h:24
RadiationParameterSource
Represents the different sources of radiation parameters.
Definition RadiationParameters.h:26
@ Sdk
The radiation parameter are/can be set via the SDK.
Definition RadiationParameters.h:27
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