OptrisOptrisDocumentation

Documentation/OTC SDK/OTC SDK — legacy C++ API referencev12.0

These are the pre-v12 classes, kept so existing code keeps building. New code should use the modern API — see Migration Guide: v11 to v12.

optris::FieldStatus

Encapsulates the status of a processed measurement field.

Public functions

FieldStatus

OTC_SDK_API FieldStatus() noexcept

Constructor.

getName

const std::string & getName() const noexcept

Returns the field name.

Returns: field name.

getId

std::int32_t getId() const noexcept

Returns the unique field ID.

Returns: unique field ID.

getIndex

std::uint32_t getIndex() const noexcept

Returns the field index.

Returns: field index.

getStats

const FieldStats & getStats() const noexcept

Returns the results of the statistical analysis of the measurement field.

Returns: field statistics.

getRadiation

const RadiationParameters & getRadiation() const noexcept

Returns the radiation parameters used to process the measurement field.

Returns: radiation parameters used to process the measurement field.

update

OTC_SDK_API void update(std::int32_t id, const FieldStats &stats, std::uint32_t index, const std::string &name, float emissivity) noexcept

Sets the field status.

The position, the name and the emissivity are taken from the measurement field the caller holds, which is the one place version 12 keeps them.

This used to take a ProcessingParams and read all three out of its fields map. Nothing in version 12 ever put anything in that map, so every lookup threw std::out_of_range, the catch that was meant for an unknown ID was the live path on every call, and every field reported index 0 with an empty name and emissivity 1 on every frame. Version 11 populated the map and wrote the rule down in imgproc/FieldIndices.h: it kept two copies of a field's position and reported the processing parameters' copy. Version 12 keeps one copy, in the field object, so that is the one to report -- the same copy the alarm and PIF channel configs already read.

Parameters

Name Description
id measurement field ID.
stats results of the statistical analysis of the field.
index the field's position in the measurement field list.
name the field's name.
emissivity the emissivity the field was processed with: its own when it has a custom one, otherwise the standard emissivity.