OptrisOptrisDocumentation

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

IgnoredTemperatures

pub struct IgnoredTemperatures

Temperatures to leave out of a measurement: PIX Connect's "Ignore pixels with temperatures below ... and above ...", each side switched on separately.

below_c leaves out pixels colder than it, above_c pixels warmer than it, and None switches that side off. A pixel exactly on a limit counts. An ignored pixel had a reading, so crate::RegionStats::coverage still counts it, and Camera::region_ignored_pixel_count says how many there were. The limits are in the SDK's temperature unit (Celsius unless crate::set_temperature_unit chose Fahrenheit). Added in 12.0.42.

# fn main() -> optris_sdk::Result<()> {
use optris_sdk::{Camera, IgnoredTemperatureUse, IgnoredTemperatures};
let camera = Camera::open()?;
// Keep a 300 C flame out of every area's statistics.
camera.set_ignored_temperatures(
    IgnoredTemperatureUse::RegionStatistics,
    IgnoredTemperatures::above(300.0),
)?;
# Ok(())
# }

IgnoredTemperatures — fields

below_c: Option<f32>

Leave out pixels colder than this; None keeps every cold pixel.

above_c: Option<f32>

Leave out pixels warmer than this; None keeps every warm pixel. Not below below_c when both are set.

IgnoredTemperatures — methods

pub fn below(below_c: f32) -> Self

Leave out pixels colder than below_c.

pub fn above(above_c: f32) -> Self

Leave out pixels warmer than above_c.

pub fn outside_of(below_c: f32, above_c: f32) -> Self

Keep only the pixels from below_c up to above_c, both included.