OptrisOptrisDocumentation

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

SnapshotInfo

pub struct SnapshotInfo

What a snapshot records about its own capture.

The same type in both directions: what Camera::save_snapshot_with writes into the file is what Snapshot::info reads back out of it.

Why the measurements are Option

The C spells each one as a has_ flag beside a value, so that a reader can tell "not recorded" from "recorded as zero", which matters when the value is a measurement. An Option says the same thing in a shape where the two halves cannot disagree, and the None case is the ABI's own "let the camera supply it".

The temperatures are in the SDK's temperature unit (Celsius unless crate::set_temperature_unit chose Fahrenheit) in both directions. The file itself always stores Celsius.

Camera::save_snapshot_with: crate::Camera::save_snapshot_with

SnapshotInfo — fields

emissivity: Option<f32>

Surface emissivity, 0..1.

transmissivity: Option<f32>

Path transmissivity, 0..1.

ambient_temp_c: Option<f32>

Ambient temperature, in the SDK's temperature unit.

range_min_c: Option<f32>

Low end of the camera's range, in the SDK's temperature unit.

range_max_c: Option<f32>

High end of the camera's range, in the SDK's temperature unit.

Also picks the pixel scale when SnapshotOptions::scale is 0.0.

optics_fov_deg: Option<f32>

Horizontal field of view, in degrees.

device_model: String

Camera model, e.g. "Xi 400".

device_serial: String

Camera serial, e.g. "24120005".

hardware_revision: String

Hardware revision, e.g. "3002".

firmware_version: String

Firmware version, e.g. "3.7.1".

description: String

Free text from the caller, written into the metadata JSON.