ThresholdConfig
pub struct ThresholdConfig
Count a region's pixels past a limit, as well as measuring them.
An operator watching a process usually cares less about the single hottest pixel in a region than about how much of it has crossed a line: what fraction of a brake disc is over 200 C, how much of a pane is still below its setpoint. The share moves smoothly where a maximum jumps around.
Off by default. Unlike percentiles this costs no selection and no storage, so it is opt-in only because a threshold nobody chose has no meaningful value.
ThresholdConfig — fields
threshold_c: f32
The limit, in the SDK's temperature unit (Celsius unless
crate::set_temperature_unit chose Fahrenheit).
direction: ThresholdDirection
Which side of threshold_c counts.
enabled: bool
Whether anything is counted at all.
ThresholdConfig — methods
pub fn above(threshold_c: f32) -> Self
Count the pixels above threshold_c, in the SDK's temperature
unit.
pub fn below(threshold_c: f32) -> Self
Count the pixels below threshold_c, in the SDK's temperature
unit.