OptrisOptrisDocumentation

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

optris::sdk::ThresholdConfig

What share of a region has crossed a limit.

An operator watching a process usually cares less about the single hottest pixel than about how much of the region is over a limit: what fraction of a brake disc is above 200 C, how much of a pane is still below its setpoint. It moves smoothly where a maximum jumps around, because it is a count rather than an extreme.

Set Region::threshold to switch it on.

Public attributes

enabled

bool enabled = false

Off by default. While false nothing is counted and RegionThresholdShare::valid is false.

threshold_c

float threshold_c = 0.0F

The limit, in the SDK's temperature unit (Celsius unless SetTemperatureUnit() chose Fahrenheit).

direction

ThresholdDirection direction = ThresholdDirection::kAbove

Which side of threshold_c counts. A pixel exactly on the threshold counts for neither: the comparison is strict, so kAbove and kBelow at the same threshold do not overlap.