optris_sdk_snapshot_render
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.
It is a separate struct rather than fields on optris_sdk_snapshot_info because that struct is the same type in both directions and none of this is a caller's to write. The SDK fills it from the live view when it writes the file.
Why the range is not derivable: 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.
The range is read in the SDK's temperature unit (Celsius unless optris_sdk_set_temperature_unit() chose Fahrenheit) in force when it is read; the file stores Celsius.
Public attributes
struct_size
uint32_t struct_size
Set to sizeof(optris_sdk_snapshot_render), or call optris_sdk_snapshot_render_init().
palette
char palette[OPTRIS_SDK_MAX_NAME]
Palette name as the SDK spells it on disk -- "Iron", "Jet", "GrayscaleBW" -- or "custom" when the application supplied its own colours.
palette_name
char palette_name[OPTRIS_SDK_MAX_NAME]
Display name of an application-supplied palette. Empty for a built-in one.
auto_scale_mode
char auto_scale_mode[OPTRIS_SDK_MAX_NAME]
"percentile", "absolute", "sigma1" or "sigma3" -- how the range below was chosen. Empty when a fixed range was in force, because then the mode did not choose it.
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 colour scale, in the SDK's temperature unit. The end of the palette, not the scene's minimum -- under the percentile mode the scene runs past it.
has_range_max_c
int32_t has_range_max_c
Non-zero when range_max_c carries a value.
range_max_c
float range_max_c
High end of the colour scale, SDK's unit.
has_overlays
int32_t has_overlays
Non-zero when overlays carries a value.
overlays
int32_t overlays
Non-zero when the 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.
This is not a copy of optris_sdk_imager_set_overlay_compositing(). A camera with a GPU backend draws them unless compositing was switched off; a camera on the CPU pipeline and the simulated camera draw them only after it was switched on. So a fresh simulated camera records zero here although the setting reads non-zero. SDK 12.0.16 and earlier recorded zero for every camera without a GPU backend, even with outlines in the picture.
has_thermal_data_reliable
int32_t has_thermal_data_reliable
Non-zero when thermal_data_reliable carries a value.
thermal_data_reliable
int32_t thermal_data_reliable
Zero when the detector had not settled and the temperatures the colours were computed from were not yet trustworthy.