OptrisOptrisDocumentation

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

SpotSearchRange

pub struct SpotSearchRange

The temperature band a tracked spot is allowed to search in.

A RegionKind::HotSpot reports the warmest pixel inside its parent, and the warmest pixel is not always the one the region was drawn for: a sun glint, a reflection in a polished flange, a heater behind the subject. Each outranks the subject and takes the spot with it. A band makes "the hottest pixel between 40 and 80 C" expressible, and the 300 C glint then cannot win.

The band constrains the search, not the sample: the Aperture around the winning pixel is averaged whole, neighbours outside the band included. When nothing in the parent falls inside the band the spot reports no reading -- RegionStats::valid false, NaN temperatures -- rather than falling back to the glint.

SpotSearchRange — fields

enabled: bool

Off by default. While false the search is unconstrained.

min_c: f32

Coolest temperature a pixel may have and still be eligible, in the SDK's temperature unit (Celsius unless crate::set_temperature_unit chose Fahrenheit), inclusive.

max_c: f32

Warmest temperature a pixel may have and still be eligible, in the SDK's temperature unit, inclusive. A band the wrong way round admits nothing, which is reported as "found nothing" rather than swapped.

SpotSearchRange — methods

pub fn band(min_c: f32, max_c: f32) -> Self

Confine the search to min_c ..= max_c, in the SDK's temperature unit.

pub fn unconstrained() -> Self

No band: the whole of the parent, which is the default and changes no temperatures.