Thermal Camera SDK 11.3.0
SDK for Optris Thermal Cameras
Loading...
Searching...
No Matches
MeasurementFieldConfig.h
Go to the documentation of this file.
1// Copyright (c) 2008-2026 Optris GmbH & Co. KG
2
10
11#pragma once
12
13#include <string>
14#include <ostream>
15#include <vector>
16
17#include "otcsdk/Api.h"
18#include "otcsdk/Exceptions.h"
21
22
23namespace optris
24{
25
28{
31
36 Vector2f position = {0.F, 0.F};
37
39 Vector2f dimension = {0.F, 0.F};
40
46 std::vector<Vector2f> vertices;
47
54 bool normalized = false;
55
56
65};
66
67
70{
72 std::string name;
73
76
82 float emissivity = 1.F;
83
85 bool customEmissivity = false;
86
87
96};
97
98
99// Utility functions
108OTC_SDK_API std::ostream& operator<<(std::ostream& out, const FieldShapeConfig& fieldShapeConfig) noexcept;
109
118OTC_SDK_API std::ostream& operator<<(std::ostream& out, const MeasurementFieldConfig& config) noexcept;
119
120} // namespace optris
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 various enums and structs representing the properties of fields.
Contains a class for a generic 2D vector.
Main SDK namespace.
Definition AlarmChannel.h:21
OTC_SDK_API std::ostream & operator<<(std::ostream &out, const AlarmChannelConfig &config) noexcept
Output stream operator for alarm channel configurations.
FieldShape
Represents the different available field shapes.
Definition FieldProperties.h:24
@ Rectangle
Rectangular field.
Definition FieldProperties.h:25
Vector2< float > Vector2f
Alias for a 2D vector with float components.
Definition Vector.h:38
Encapsulates the configuration of a field shape.
Definition MeasurementFieldConfig.h:28
Vector2f dimension
Dimension for rectangular and elliptical fields. Ignored for polygonal and spline based fields.
Definition MeasurementFieldConfig.h:39
Vector2f position
Center point for rectangular and elliptical fields or the origin of of the vertex coordinates for pol...
Definition MeasurementFieldConfig.h:36
bool normalized
Specifies whether the provided position, dimension and vertices are pixel coordinates or are normaliz...
Definition MeasurementFieldConfig.h:54
std::vector< Vector2f > vertices
Vertices for polygonal and spline based fields. Ignored for rectangular and elliptical fields.
Definition MeasurementFieldConfig.h:46
static OTC_SDK_API void validate(FieldShapeConfig &config)
Validates the field shape configuration.
FieldShape type
Type of the field shape.
Definition MeasurementFieldConfig.h:30
Encapsulates the configuration of a measurement field.
Definition MeasurementFieldConfig.h:70
std::string name
Measurement field name.
Definition MeasurementFieldConfig.h:72
bool customEmissivity
Indicates whether a custom emissivity should be used.
Definition MeasurementFieldConfig.h:85
float emissivity
Field-specific emissivity value in [0.01, 1.1].
Definition MeasurementFieldConfig.h:82
static OTC_SDK_API void validate(MeasurementFieldConfig &config)
Validates the measurement field configuration.
FieldShapeConfig shape
Defines the shape of the measurement field.
Definition MeasurementFieldConfig.h:75