OptrisOptrisDocumentation

Documentation/OTC SDK/OTC SDK — C API referencev12.0

optris_sdk_snapshot_info

What a snapshot records about its own capture.

The same struct in both directions: what optris_sdk_imager_save_snapshot_ex() writes into the file is what optris_sdk_snapshot_get_info() reads back out of it.

Each optional measurement is a has_ flag and a value, so a reader can tell "not recorded" from "recorded as zero" -- which matters when the value is a measurement. On the way in, a flag left at zero means "let the camera supply it"; anything set explicitly wins over what the camera would have said.

Its temperatures are in the SDK's temperature unit (Celsius unless optris_sdk_set_temperature_unit() chose Fahrenheit) in both directions. The file itself always stores Celsius, so the same file reads back in whichever unit is in force when it is read.

Public attributes

struct_size

uint32_t struct_size

Set to sizeof(optris_sdk_snapshot_info), or call optris_sdk_snapshot_info_init().

has_emissivity

int32_t has_emissivity

Non-zero when emissivity carries a value.

emissivity

float emissivity

Surface emissivity, 0..1.

has_transmissivity

int32_t has_transmissivity

Non-zero when transmissivity carries a value.

transmissivity

float transmissivity

Path transmissivity, 0..1.

has_ambient_temp_c

int32_t has_ambient_temp_c

Non-zero when ambient_temp_c carries a value.

ambient_temp_c

float ambient_temp_c

Ambient temperature, in the SDK's unit.

has_range_min_c

int32_t has_range_min_c

Non-zero when range_min_c carries a value.

range_min_c

float range_min_c

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

has_range_max_c

int32_t has_range_max_c

Non-zero when range_max_c carries a value. It also picks the pixel scale when optris_sdk_snapshot_options::scale is 0.

range_max_c

float range_max_c

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

has_optics_fov_deg

int32_t has_optics_fov_deg

Non-zero when optics_fov_deg carries a value.

optics_fov_deg

float optics_fov_deg

Horizontal field of view, in degrees.

device_model

char device_model[OPTRIS_SDK_MAX_MODEL]

e.g. "Xi 400".

device_serial

char device_serial[OPTRIS_SDK_MAX_SERIAL]

e.g. "24120005".

hardware_revision

char hardware_revision[OPTRIS_SDK_MAX_NAME]

e.g. "3002".

firmware_version

char firmware_version[OPTRIS_SDK_MAX_VERSION]

e.g. "3.7.1".

description

char description[OPTRIS_SDK_MAX_MESSAGE]

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