![]() |
Thermal Camera SDK 11.3.0
SDK for Optris Thermal Cameras
|
Encapsulates the configuration of a field shape. More...
#include <MeasurementFieldConfig.h>

Static Public Member Functions | |
| static OTC_SDK_API void | validate (FieldShapeConfig &config) |
| Validates the field shape configuration. | |
Public Attributes | |
| FieldShape | type = FieldShape::Rectangle |
| Type of the field shape. | |
| Vector2f | position = {0.F, 0.F} |
| Center point for rectangular and elliptical fields or the origin of of the vertex coordinates for polygonal and spline based fields. | |
| Vector2f | dimension = {0.F, 0.F} |
| Dimension for rectangular and elliptical fields. Ignored for polygonal and spline based fields. | |
| std::vector< Vector2f > | vertices |
| Vertices for polygonal and spline based fields. Ignored for rectangular and elliptical fields. | |
| bool | normalized = false |
| Specifies whether the provided position, dimension and vertices are pixel coordinates or are normalized to the range [0, 1] relative to the current frame dimensions. | |
Encapsulates the configuration of a field shape.
|
static |
Validates the field shape configuration.
| [in,out] | config | to validate. |
| SDKException | if the configuration is invalid. |
| bool optris::FieldShapeConfig::normalized = false |
Specifies whether the provided position, dimension and vertices are pixel coordinates or are normalized to the range [0, 1] relative to the current frame dimensions.
Only one format for position, dimension and vertices can be used. There is no mixing and matching.
| std::vector<Vector2f> optris::FieldShapeConfig::vertices |
Vertices for polygonal and spline based fields. Ignored for rectangular and elliptical fields.
The vertices need to be defined relative to the point of origin specified by position.