OptrisOptrisDocumentation

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

RecordedFlagPolicy

public sealed class RecordedFlagPolicy

What a recording says its shutter was told to do, and what that cost at the frame now on screen.

The thing to read before trusting a recording's numbers. Holding the shutter back buys an unbroken stream and pays in drift, and a recording stores finished temperatures, so that drift is in these pixels permanently and nothing on replay removes it. A suppressed recording otherwise looks exactly like a good one.

Which block this is. Two halves, merged, because they answer different questions. From the file header: RecordedFlagPolicy.Policy and RecordedFlagPolicy.OverrideDriftCelsius, what was configured for the whole recording. From the frame most recently delivered: RecordedFlagPolicy.IsHeld and RecordedFlagPolicy.DriftCelsius, what was happening there, present only on frames where a correction was actually refused, so a seek into a healthy stretch of a suppressed recording reports the policy with RecordedFlagPolicy.IsHeld clear.

Both 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. The file itself stores Celsius; they are converted as they are read.

RecordedFlagPolicy: properties

public Nullable<float> DriftCelsius { get; }

How far the detector had drifted from its last correction at that frame, a difference in degrees of the SDK's temperature unit. Roughly how wrong that frame's temperatures are.

null where the camera had not measured a drift yet, which is not the same as no drift.

public bool IsHeld { get; }

Whether a correction was refused at the frame most recently delivered.

true means that frame's temperatures are degraded, by roughly RecordedFlagPolicy.DriftCelsius, and permanently.

public Nullable<float> OverrideDriftCelsius { get; }

The drift, in degrees of the SDK's temperature unit, that overrode FlagWhileRecording.AvoidUnlessDrift, when the file says. null for the other policies, which do not consult one.

public FlagWhileRecording Policy { get; }

The policy the recording was made under.

A file written by a newer SDK may name a policy this build does not know; RecordedFlagPolicy.PolicyName then carries the file's own spelling and this reads FlagWhileRecording.Use. Branch on the name rather than on this alone when that distinction matters: "a policy I do not recognise" and "no policy" are different facts about a file.

public string PolicyName { get; }

The policy as the file spells it: "use", "avoid", "avoid_unless_drift", or something a newer writer wrote. Empty for a file that names none.