optris_sdk_radiation_config
The parameters that turn what the sensor measures into a temperature.
These are the settings that most often need to be right and most often are not. Emissivity in particular: a shiny metal surface reads far colder than it is at the default of 1.0, and no amount of calibration compensates for it.
Grouped as a struct rather than offered as a dozen separate settings because they are one physical model and are almost always changed together.
Public attributes
struct_size
uint32_t struct_size
Set to sizeof(optris_sdk_radiation_config).
emissivity
float emissivity
How efficiently the surface radiates, 0 to 1. 1.0 is a perfect black body; painted or oxidised surfaces are around 0.95, and bare metal can be below 0.1.
transmissivity
float transmissivity
How much of the radiation the path between camera and target lets through, 0 to 1. 1.0 is a clear path.
ambient_temperature_c
float ambient_temperature_c
Temperature of the air between camera and target, in the SDK's temperature unit (Celsius unless optris_sdk_set_temperature_unit() chose Fahrenheit). optris_sdk_radiation_config_init() fills its default in the unit in force.
Ignored while estimate_ambient is set. Reading this always gives back the configured value, in either mode -- it is what was last written, never the figure the camera worked out for itself. For that, call optris_sdk_imager_get_effective_ambient_temperature(). See estimate_ambient.
This is the reflected reference as well. A low-emissivity surface shows its surroundings, and the correction for that uses this same temperature: the engine holds one value for both. There was a separate reflected_temperature_c field until API version 9; it was removed because writing it did nothing and reading it gave back this field, so a caller that named it no longer compiles and nothing that worked has stopped working.
reserved0
uint32_t reserved0
Reserved; always zero.
estimate_ambient
uint8_t estimate_ambient
Non-zero to let the camera work the ambient temperature out from its own internal probes rather than use ambient_temperature_c.
The two are alternatives: while this is set, whatever is written to ambient_temperature_c is kept but not applied, and clearing it puts the stored value back into force.
ambient_temperature_c reports the configured value in both modes, so a reading taken while this is set says what was asked for, not what is happening. To read what is happening, use either of:
optris_sdk_imager_get_effective_ambient_temperature(), for a plain read; or- the OPTRIS_SDK_FIELD_AMBIENT_TEMP device signal, via
optris_sdk_imager_read_signal(), to have an alarm rule watch it.
Both report the estimate in force -- the value the pipeline built its energy table from, not a recomputation of it -- and both go invalid until the first frame, since the estimate comes from the housing probe and no frame means no reading.
Added after reserved0. A caller compiled against an older header passes a smaller struct_size; reading leaves this field alone and writing keeps the camera's current setting, which is what that caller has always got.
reserved1
uint8_t reserved1[3]
Reserved; always zero. Named so the struct has no implicit padding.
emissivity_affects_image
uint8_t emissivity_affects_image
Non-zero to let a per-region emissivity change the picture as well as the numbers. Default is on.
When set, a region carrying its own emissivity is corrected in the pipeline, so both the temperatures it reports and the false-colour pixels inside it change. When clear, the picture stays on the global emissivity and the region's own value only moves its reported temperatures.
The image half reaches both pipelines, GPU and CPU, and so a simulated camera too, and it follows a camera moved onto the CPU pipeline after a GPU failure. Playback and a snapshot have no pipeline behind them, so there the region reports OPTRIS_SDK_REGION_EMISSIVITY_READING_ONLY however this is set. The numbers half always works.
Clearing this is what produces the switch-driven half of OPTRIS_SDK_REGION_EMISSIVITY_READING_ONLY. The value-driven half -- a region emissivity below the image paths' 0.1 floor -- needs no switch and was always reachable; this field is what makes the other half reachable from C.
Added after reserved1. A caller compiled against an older header passes a smaller struct_size; reading leaves this field alone and writing keeps the camera's current setting.
emissivity_own_scale
uint8_t emissivity_own_scale
Non-zero to colour each corrected region on its own temperature range instead of the scene's. Default is off.
Only meaningful while emissivity_affects_image is set: this decides how the corrected pixels are coloured, not whether they are corrected. Together the two are the three things an operator can ask for:
emissivity_affects_imageclear -- the readings change and the picture does not (OPTRIS_SDK_REGION_EMISSIVITY_READING_ONLY);- set, this clear -- corrected and coloured on the global scale (
OPTRIS_SDK_REGION_EMISSIVITY_OWN_VALUE); - set, this set -- corrected and coloured on its own min/max (
OPTRIS_SDK_REGION_EMISSIVITY_OWN_SCALE).
Like the image half of emissivity_affects_image this works on both pipelines, and on playback and a snapshot as well: the rescaling is a pass over the delivered picture, not a pipeline stage. Without this field OPTRIS_SDK_REGION_EMISSIVITY_OWN_SCALE was a state the C ABI could report but no C caller could ever bring about.
Added beside emissivity_affects_image and gated on the same struct_size.
reserved2
uint8_t reserved2[2]
Reserved; always zero. Named so the struct has no implicit padding.