optris::sdk::ThresholdBand
The share of a region between two temperatures, or outside them.
PIX Connect's measuring-area mode "Distribution [%]" is the share of an area between two temperatures. ThresholdConfig has room for one limit, and a 12.0.x patch cannot grow it, so a band is set on a region that is already installed:
const uint64_t id = imager->Regions().Add(Region::Rect({0.5F, 0.375F}, {0.4F, 0.3F})); imager->Regions().SetThresholdBand(id, ThresholdBand{180.0F, 220.0F}); const auto share = imager->Regions().ThresholdShare(id); // 0..1
The result is the same RegionThresholdShare and SignalField::kThresholdShare as a one-sided threshold, over the measurable pixels. The region's ThresholdConfig then reads {enabled, low_c, direction}; the upper limit is held by the region store beside it, saved in a configuration and a recording with the region, and read back with RegionEngine::ThresholdBandOf().
PIX Connect divides by every pixel of the area, the SDK by the measurable ones, so the two differ where an area reaches pixels with no data. Added in 12.0.35.
Public attributes
low_c
float low_c = 0.0F
The lower limit, in the SDK's temperature unit (Celsius unless SetTemperatureUnit() chose Fahrenheit).
high_c
float high_c = 0.0F
The upper limit, in the same unit. Not below low_c.
direction
ThresholdDirection direction = ThresholdDirection::kBetween
ThresholdDirection::kBetween or ThresholdDirection::kOutside.