OptrisOptrisDocumentation

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

ShutterDeferral

public sealed class ShutterDeferral

What the while-recording shutter policy is doing, and what it has cost so far.

The honest half of FlagWhileRecording. Setting a policy says what you want; this says whether it is in force and how far the detector has drifted while it was.

A suppressed shutter cycle changes nothing else an application can see: the stream has no gap, and the temperatures still look like temperatures. So without this a degraded recording is indistinguishable from a good one from inside the process that is making it, which is the worst outcome the feature can have, and the reason this type exists.

Read ThermalCamera.ShutterDeferral. Every member is false or zero on a camera running the default policy, which is every camera nobody has configured.

The drifts are temperature differences in degrees of the SDK's temperature unit, whatever the Celsius in their names says: kelvin-sized in Celsius, Fahrenheit-sized when Sdk.TemperatureUnit chose Fahrenheit, never offset.

ShutterDeferral: properties

public uint DeferredFrames { get; }

How many scheduled cycles have been held since the current recording started.

A count of refused decisions (the scheduler re-decides every frame while a cycle stays due), so it is much larger than the number of corrections a FlagWhileRecording.Use recording would have taken. Read it as "was anything suppressed at all", and ShutterDeferral.PeakDriftCelsius for how much it cost.

public float DriftCelsius { get; }

The worst of the three internal probes' drift since the last correction, a difference in degrees of the SDK's temperature unit. The radiometric cost, as the scheduler measures it.

Zero until the camera's minimum flag interval has elapsed since the last cycle, because the probes are read only once an interval has: a cost the engine declines to pay on every frame. A zero early in a recording is "not measured yet", not "no drift".

public bool IsDeferring { get; }

Whether a cycle is being held right now: one is due and the policy is refusing it. The frames arriving while this is true are the degraded ones.

public float PeakDriftCelsius { get; }

The largest ShutterDeferral.DriftCelsius reached since the current recording started. The single number to put beside a recording.

Reset when a recording starts and kept after it stops, so it is readable once the file is closed: the same contract RecordingStatistics has.

public bool PolicyInForce { get; }

Whether the policy can act at all right now.

false, with the rest of this empty, in four cases that are different problems for whoever has to act on them: no recording is running; the policy is FlagWhileRecording.Use; the automatic shutter is switched off, so there is nothing to hold; or a process-interface input owns the flag, so the SDK runs no cycle and the setting is moot rather than working. Ask ThermalCamera.IsShutterExternallyControlled to tell that last case from the others.

Drive a "flag suppressed" indicator from this and not from the configured policy. The two disagree exactly when a configuration that was accepted cannot take effect, which is the case worth showing.