optris::sdk::RegionThresholdShare
How much of a region is past its threshold, for one frame.
Both numbers are over the region's measurable pixels, which is RegionStats::pixel_count: an unmeasurable pixel is in neither the numerator nor the denominator. That is the same rule RegionStats::coverage follows, and it keeps the two separable -- coverage says how much of the region had data, this says how much of the data crossed the limit.
Deliberately not called "coverage". That word is already RegionStats::coverage, and the two answer different questions.
Public attributes
count
uint32_t count = 0
Measurable pixels on the counted side of the threshold.
share
float share = 0.0F
count divided by RegionStats::pixel_count, 0 to 1. Zero when the region measured nothing.
valid
bool valid = false
True only when ThresholdConfig::enabled was set and the region produced a measurement. False -- with both fields zero rather than a plausible share -- otherwise.