OptrisOptrisDocumentation

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

ImportOptions

pub struct ImportOptions

How import converts. Built with ImportOptions::new and the setters, so a later option can be added without breaking anyone.

let options = optris_sdk::ravi::ImportOptions::new()
    .allow_short_wave(true)
    .frame_limit(100);

ImportOptions — methods

pub fn new() -> Self

The defaults: the SDK's own normalization tables, no short-wave files, no clamping, every frame, the statistics scan on and the per-frame extras kept.

pub fn time_zone(mut self, zone: RaviTimeZone) -> Self

The zone the PC that recorded the file was in.

The recording always states a UTC start (crate::Camera::playback_start_time_us) and a zone (crate::Camera::playback_time_zone). Unset, this computer's zone is used: the recording says it was assumed, the log warns, and correct_start_time sets it right afterwards.

pub fn norm_directory(mut self, directory: &str) -> Self

Where Norm-<n>.prn is. Unset, the import uses the tables the SDK ships, which is right unless you mean to use others.

pub fn allow_short_wave(mut self, allow: bool) -> Self

Convert a file whose verdict is RaviVerdict::ShortWave anyway, on the linear axis. Off by default; see the verdict for what is wrong then. A short-wave recording PIX Connect's split axis is built for converts without it.

pub fn clamp_to_range(mut self, clamp: bool) -> Self

Clamp temperatures to the camera's range plus 26 K either side, as PIX Connect does when it plays the file.

pub fn frame_limit(mut self, frames: u64) -> Self

Convert only the first frames frames. Zero, the default, converts all of them.

pub fn scan(mut self, scan: bool) -> Self

Read the file once before converting it, for the scene's temperature range. On by default; off halves the work, and the recording then carries no scene range.

pub fn per_frame_extras(mut self, keep: bool) -> Self

Keep each frame's PIX Connect extras -- the five-state shutter flag, NMEA position, process interface readings -- in the frame records. On by default.