OptrisOptrisDocumentation

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

ThresholdBand

pub struct ThresholdBand

The share of a region between two temperatures, or outside them: PIX Connect's "Distribution [%]". Added in 12.0.35.

Set with Region::set_threshold_band and read as the same RegionThresholdShare a one-sided ThresholdConfig gives, over the region's measurable pixels. PIX Connect divides by every pixel of the area, the SDK by the measurable ones.

ThresholdBand — fields

low_c: f32

The lower limit, in the SDK's temperature unit (Celsius unless crate::set_temperature_unit chose Fahrenheit).

high_c: f32

The upper limit, in the same unit. Not below low_c.

outside: bool

false counts the pixels from low_c up to high_c, both included; true counts the rest, strictly below low_c or strictly above high_c.

ThresholdBand — methods

pub fn between(low_c: f32, high_c: f32) -> Self

Count the pixels from low_c up to high_c, both included.

pub fn outside(low_c: f32, high_c: f32) -> Self

Count the pixels strictly below low_c or strictly above high_c: the share ThresholdBand::between leaves out.