optris_sdk_region_threshold_share
How much of a region is past its threshold, for one frame.
Both numbers are over the region's measurable pixels, which is optris_sdk_region_stats::pixel_count: an unmeasurable pixel is in neither the numerator nor the denominator, which is the rule optris_sdk_region_stats::coverage already follows. The two stay separable -- coverage says how much of the region had data, this says how much of that data crossed the limit. Deliberately not called "coverage" for that reason.
Public attributes
struct_size
uint32_t struct_size
Set to sizeof(optris_sdk_region_threshold_share).
count
uint32_t count
Measurable pixels on the counted side of the threshold.
share
float share
count divided by optris_sdk_region_stats::pixel_count, 0 to
- A fraction, not a percentage.
valid
uint8_t valid
Non-zero only when the region had a threshold configured and produced a measurement. Zero -- with both fields above zero rather than a plausible share -- otherwise. Test it, the way you would for optris_sdk_region_percentiles.
reserved0
uint8_t reserved0[3]
Reserved; always zero.