OptrisOptrisDocumentation

Documentation/OTC SDK/Optris.Sdk — C# API referencev12.0

RadiationParameters

public readonly record struct RadiationParameters : IEquatable<RadiationParameters>

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. RadiationParameters.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 getting it wrong.

One struct rather than a dozen separate properties because they are one physical model and are almost always changed together.

Example

// Painted steel, in a room at 23 C.
RadiationParameters radiation = camera.Radiation with
{
    Emissivity = 0.95f,
    AmbientTemperature = 23.0f,
};

camera.Radiation = radiation;

RadiationParameters: properties

public float AmbientTemperature { get; init; }

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

Ignored while RadiationParameters.EstimateAmbient is set.

Reading this gives back the configured value in either mode: what was last written, never the figure the camera worked out for itself. While RadiationParameters.EstimateAmbient is set, the value here is therefore not the one the measurement is using. For that, read ThermalCamera.EffectiveAmbientTemperature.

This is the reflected reference as well. A low-emissivity surface shows its surroundings, and the correction for that uses this same temperature; the camera holds one value for both. There was a separate ReflectedTemperature property until API version 9; it was removed because setting it did nothing and reading it gave back this one.

public float Emissivity { get; init; }

How efficiently the surface radiates, 0 to 1.

public bool EmissivityAffectsImage { get; init; }

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

When true, 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 false, the picture stays on the global emissivity and the region's own value only moves its reported temperatures, which is the state RegionEmissivityState.ReadingOnly announces.

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. A recording or a still has no pipeline behind it, so there a region reports RegionEmissivityState.ReadingOnly however this is set.

This flag reads back as it was set, everywhere, so it says what was asked for and not what happened; rewriting it under an application that reads a configuration back and writes it out again would lose the setting. ThermalCamera.RegionEmissivityInFrames answers the picture question for the frames arriving right now, across every region at once, and ThermalCamera.TemperatureAtEmissivity(…) is what to use on a pixel the picture did not carry.

On a file, a replay or a reopened still, neither half is automatic. There is no pipeline behind a file, so the picture is never corrected; and the numbers are corrected only when the file carries the camera's characteristic curve, which the SDK has written into recordings and stills since 12.0. Such a region reports RegionEmissivityState.ReadingOnly. A file with no curve (one written by an older build, or saved from a source that has none) reports RegionEmissivityState.Cameras and reads at the emissivity the file records, which is the one every pixel in it was computed at.

One exception on a replay: a region the recording restored, still carrying the emissivity it was restored with, is left alone. The recording camera may already have applied that value to the pixels, and applying it again would apply it twice. Regions added after a recording is opened are corrected.

Changing the GLOBAL emissivity of a file is a different calculation from a region's own, and the two can disagree. The global value goes through the camera's energy-to-temperature table; a region's own value is applied algebraically to the reading. That is true of a camera and is reproduced on a file deliberately, so that a recording and the camera that made it never differ. Measured on a real PI 640i from emissivity 0.95, the two agree to within 3–10 % of the response: 0.40 K at 0.90, but 6.9 K at 0.50, on a correction of +40.7 K. A display offering both should not present them as interchangeable at low emissivity.

Until API version 30 there was a write-only ThermalCamera.EmissivityAffectsImage setter beside this, over a C entry point that never had a getter. This property is the whole of that setting and it reads back.

public bool EmissivityOwnScale { get; init; }

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

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

Unlike the image half of RadiationParameters.EmissivityAffectsImage, 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, so a display showing one should say so.

public bool EstimateAmbient { get; init; }

Whether the camera works the ambient temperature out from its own internal probes instead of using RadiationParameters.AmbientTemperature.

The two are alternatives. While this is true, RadiationParameters.AmbientTemperature is kept but not applied; setting it to false puts the stored value back into force.

To find out what the camera decided, read ThermalCamera.EffectiveAmbientTemperature, or watch the SignalField.AmbientTemperature device signal. Do not reproduce the estimate yourself: it comes from the housing probe with a 0.1 K hysteresis and a copy of the rule will drift against the SDK.

Change it from the current value rather than building a RadiationParameters from scratch; a with expression carries this flag across, so adjusting only the emissivity leaves the ambient policy alone.

public float Transmissivity { get; init; }

How much of the radiation the path between camera and target lets through, 0 to 1.