OptrisOptrisDocumentation

Documentation/OTC SDK/optris_sdk — Rust API referencev12.0

RegionThresholdShare

pub struct RegionThresholdShare

How much of a region was 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 keeps this separable from RegionStats::coverage, which says how much of the region had data at all.

crate::Camera::region_threshold_share returns None when the region has no threshold configured, rather than a share of zero that would read as "none of it was hot".

RegionThresholdShare — fields

count: u32

Measurable pixels on the counted side of the threshold.

share: f32

count divided by RegionStats::pixel_count, 0 to 1. A fraction, not a percentage.