OptrisOptrisDocumentation

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

RadiationConfig

pub struct RadiationConfig

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.

RadiationConfig — fields

emissivity: f32

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: f32

How much of the radiation the path lets through, 0 to 1.

ambient_temperature_c: f32

Temperature of the air between camera and target, in the SDK's temperature unit (Celsius unless crate::set_temperature_unit chose Fahrenheit).

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 until C ABI 9; it was removed because writing it did nothing and reading it gave back this field.

Ignored while RadiationConfig::estimate_ambient is set.

Kept while the estimate is on

Reading this always gives back the configured value, in either mode. A value written while the estimate is on is kept but not applied, and switching the estimate off puts it into force (in earlier releases it was discarded). To learn what the measurement is actually based on, call crate::Camera::effective_ambient_temperature, which is correct in both modes.

estimate_ambient: bool

Let the camera work the ambient temperature out from its own internal probes rather than use RadiationConfig::ambient_temperature_c.

The two are alternatives. Note that switching this off does not restore a value written while it was on, see RadiationConfig::ambient_temperature_c.

emissivity_affects_image: bool

Whether a region's own emissivity changes the picture as well as the numbers. On by default.

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 state crate::RegionEmissivityState::ReadingOnly announces.

The image half reaches both pipelines, GPU and CPU, and so a simulated camera too. Playback and a still have no pipeline behind them, so there a region reports crate::RegionEmissivityState::ReadingOnly however this is set. The numbers half always works.

Until API version 30 there was a write-only Camera::set_emissivity_affects_image beside this, over a C entry point that never had a getter; this field is the whole of that setting and it reads back.

emissivity_own_scale: bool

Whether each corrected region is coloured on its own temperature range instead of the scene's. Off by default.

Only meaningful while RadiationConfig::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: crate::RegionEmissivityState::ReadingOnly, crate::RegionEmissivityState::OwnValue and crate::RegionEmissivityState::OwnScale.

Unlike the image half of RadiationConfig::emissivity_affects_image, this works on every backend: the rescaling is a pass over the delivered picture, not a pipeline stage. The colours inside such a region no longer mean what the scale bar says.

RadiationConfig — methods

pub fn new() -> Result<Self>

The SDK's defaults: emissivity and transmissivity 1.0, ambient 20 °C, and the ambient estimate off.

The ambient is read in the SDK's temperature unit at the time of the call, so it is 68.0 once crate::set_temperature_unit has chosen Fahrenheit, and means 20 °C in either unit.

Errors

Returns an error only if the SDK's own initialiser fails.