OptrisOptrisDocumentation

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

SnapshotRender

pub struct SnapshotRender

How the colorized picture in a snapshot was drawn.

Read-only, and read-side only: a PNG snapshot's primary image is the picture the operator was looking at, and this says what its colours meant: the palette, the numeric range the palette was stretched over, and the auto-scale mode that chose that range. So a reader can put a legend beside the picture, or reproduce it. The SDK fills it from the live view when it writes the file; nothing here is a caller's to set.

Why the range is not derivable

Under the sigma and percentile auto-scale modes the range is temporally filtered, so it is neither what the image's own pixels imply nor what the application last asked for. Recording it is the only way a reader can say what the colours meant.

SnapshotRender — fields

palette: String

Palette name as the SDK spells it on disk ("Iron", "Jet", "GrayscaleBW") or "custom" when the application supplied its own colours.

palette_name: String

Display name of an application-supplied palette. Empty for a built-in one.

range_min_c: Option<f32>

Low end of the colour scale, in the SDK's temperature unit (Celsius unless crate::set_temperature_unit chose Fahrenheit), converted from the file's Celsius as it is read.

The end of the palette, not the scene's minimum; under the percentile mode the scene runs past it.

range_max_c: Option<f32>

High end of the colour scale, in the SDK's temperature unit.

auto_scale_mode: String

"percentile", "absolute", "sigma1" or "sigma3": how the range was chosen. Empty when a fixed range was in force, because then the mode did not choose it.

overlays: Option<bool>

Whether region and blob overlays are actually in the picture.

A reader seeing a box can then tell it is an overlay rather than something in the scene.

Not a copy of Camera::set_overlay_compositing: a camera with a GPU backend draws them unless compositing was switched off, and a camera on the CPU pipeline or the simulated camera only after it was switched on, so a fresh simulated camera records Some(false) although the setting reads true.

Camera::set_overlay_compositing: crate::Camera::set_overlay_compositing

thermal_data_reliable: Option<bool>

Some(false) when the detector had not settled and the temperatures the colours were computed from were not yet trustworthy.