optris::sdk::rec::SnapshotInfo
Everything a snapshot can record about its own capture.
Every field is optional. An absent field is left out of the file rather than written as a default, so a reader can tell "not recorded" from "recorded as zero", which matters when the value is a measurement.
Its temperatures, here and in rendering, are in the SDK's temperature unit (Celsius unless SetTemperatureUnit() chose Fahrenheit), both when it is handed to a Save call and when ReadInfo() returns it. The file itself stores Celsius, so a snapshot written in either unit is the same file.
Public attributes
emissivity
std::optional< float > emissivity
Surface emissivity, 0..1.
transmissivity
std::optional< float > transmissivity
Path transmissivity, 0..1.
ambient_temp_c
std::optional< float > ambient_temp_c
Ambient temperature.
range_min_c
std::optional< float > range_min_c
Low end of the range.
The camera's configured measurement range. range_max_c also picks the pixel scale when SnapshotOptions::scale is left at 0.
range_max_c
std::optional< float > range_max_c
High end, and the scale hint.
device_model
std::string device_model
e.g. "Xi 400".
device_serial
std::string device_serial
e.g. "24120005".
hardware_revision
std::string hardware_revision
e.g. "3002".
firmware_version
std::string firmware_version
e.g. "3.7.1".
optics_fov_deg
std::optional< float > optics_fov_deg
Horizontal field of view of the fitted optic, in degrees.
description
std::string description
Free text, written to the metadata JSON.
attachments
std::vector< Attachment > attachments
Application files to carry inside the image. See attachment.h.
rois
std::vector< RoiDefinition > rois
Regions to record alongside the image, in the shared schema.
extra_json
std::string extra_json
A JSON object merged into the metadata document at the top level. Keys the schema already uses are not overwritten.
rendering
std::optional< SnapshotRendering > rendering
The colour picture to write as the PNG's primary image.
Set, and SavePng() writes an 8-bit RGB image anyone can open in a browser, and carries the 16-bit radiometric data losslessly as an attachment instead. Unset, and the file keeps the 16-bit greyscale primary image it has always had.
Either way LoadThermal() returns the same temperatures. TIFF and CSV ignore this field entirely.
Recorder::SaveSnapshot() fills it from the live view for you.