OperationMode
public readonly record struct OperationMode : IEquatable<OperationMode>
One configuration the camera can be put into.
A mode is a whole operating point: an optics, a temperature range, a resolution and a frame rate, which the camera's calibration supports as a set. They cannot be mixed freely: a camera offers a fixed list and you pick one of them.
ThermalCamera.TemperatureRange reaches the same machinery through the one axis most callers change. This is the whole thing, and what a settings dialogue needs to populate itself.
OperationMode: constructors
public OperationMode(int FieldOfView, string Optics, float MinimumTemperature, float MaximumTemperature, int Width, int Height, int FrameRate, bool IsExtendable, bool SupportsHighPrecision, Nullable<float> ExtendedMinimumTemperature = default, Nullable<float> ExtendedMaximumTemperature = default, OpticsUnit FieldOfViewUnit = 0)
One configuration the camera can be put into.
FieldOfView: The number that characterises the optics. ReadFieldOfViewUnitto know what it means: degrees of field of view for most optics, millimetres of focal length for the rest.Optics: How the optics is described on the camera. Possibly empty.MinimumTemperature: The coolest this mode measures, in the SDK's temperature unit (Celsius unlessSdk.TemperatureUnitchose Fahrenheit): the calibrated limit, always.ThermalCamera.TemperatureRangeExtensiondoes not move it. This is part of the mode's identity, and a mode taken fromThermalCamera.OperationModesor fromThermalCamera.ActiveOperationModecan be assigned back whatever that switch is set to. This changed in 12.0.1, and the old behaviour was a defect. It used to report the limit in force, so with the extension on it held the extended limit, whichExtendedMinimumTemperaturealready carried, and the calibrated one appeared nowhere. Every lookup matches the calibrated limits, so the SDK handed out modes it then refused: assigningThermalCamera.ActiveOperationModeback to itself threwSdkConfigurationException, and after a mode switch with the extension on no extendable mode could be selected again until it was switched off or the camera reopened. For the limit in force, compose it, which is what the SDK does internally:csharp var low = mode.MinimumTemperature; if (camera.TemperatureRangeExtension && mode.IsExtendable) low = mode.ExtendedMinimumTemperature ?? low;MaximumTemperature: The warmest, in the SDK's temperature unit, under the same rule: the calibrated limit, not the one in force.Width: Frame width in pixels.Height: Frame height in pixels.FrameRate: Frames per second.IsExtendable: Whether the range can be stretched past its limits, less accurately. SeeThermalCamera.TemperatureRangeExtension.SupportsHighPrecision: Whether this mode's calibration offers the high-precision temperature table -- its own statement that the range fits in the narrower span that table spans. Nothing to do with frame rate; the frame rate is identical either way, andThermalCamera.HighPrecisionsays what it does and does not change.ExtendedMinimumTemperature: The coolest this mode measures once extended, in the SDK's temperature unit, ornullwhenIsExtendableisfalse.ExtendedMaximumTemperature: The warmest once extended, ornullwhen the mode is not extendable.FieldOfViewUnit: WhatFieldOfViewis measured in. Per mode, because one camera can carry two optics measured differently.
A mode is a whole operating point: an optics, a temperature range, a resolution and a frame rate, which the camera's calibration supports as a set. They cannot be mixed freely: a camera offers a fixed list and you pick one of them.
ThermalCamera.TemperatureRange reaches the same machinery through the one axis most callers change. This is the whole thing, and what a settings dialogue needs to populate itself.
OperationMode: properties
public Nullable<float> ExtendedMaximumTemperature { get; init; }
The warmest once extended, or null when the mode is not extendable.
public Nullable<float> ExtendedMinimumTemperature { get; init; }
The coolest this mode measures once extended, in the SDK's temperature unit, or null when IsExtendable is false.
public int FieldOfView { get; init; }
The number that characterises the optics. Read FieldOfViewUnit to know what it means: degrees of field of view for most optics, millimetres of focal length for the rest.
public OpticsUnit FieldOfViewUnit { get; init; }
What FieldOfView is measured in. Per mode, because one camera can carry two optics measured differently.
public string FieldOfViewUnitSymbol { get; }
What to print after OperationMode.FieldOfView: "°", "mm", or nothing at all when the unit is not known.
Empty for OpticsUnit.Unknown on purpose. Showing the wrong unit is the defect this answers, so there is no fallback to degrees.
public int FrameRate { get; init; }
Frames per second.
public int Height { get; init; }
Frame height in pixels.
public bool IsExtendable { get; init; }
Whether the range can be stretched past its limits, less accurately. See ThermalCamera.TemperatureRangeExtension.
public float MaximumTemperature { get; init; }
The warmest, in the SDK's temperature unit, under the same rule: the calibrated limit, not the one in force.
public float MinimumTemperature { get; init; }
The coolest this mode measures, in the SDK's temperature unit (Celsius unless Sdk.TemperatureUnit chose Fahrenheit): the calibrated limit, always. ThermalCamera.TemperatureRangeExtension does not move it. This is part of the mode's identity, and a mode taken from ThermalCamera.OperationModes or from ThermalCamera.ActiveOperationMode can be assigned back whatever that switch is set to.
This changed in 12.0.1, and the old behaviour was a defect. It used to report the limit in force, so with the extension on it held the extended limit, which ExtendedMinimumTemperature already carried, and the calibrated one appeared nowhere. Every lookup matches the calibrated limits, so the SDK handed out modes it then refused: assigning ThermalCamera.ActiveOperationMode back to itself threw SdkConfigurationException, and after a mode switch with the extension on no extendable mode could be selected again until it was switched off or the camera reopened.
For the limit in force, compose it, which is what the SDK does internally:
var low = mode.MinimumTemperature; if (camera.TemperatureRangeExtension && mode.IsExtendable) low = mode.ExtendedMinimumTemperature ?? low;
public string Optics { get; init; }
How the optics is described on the camera. Possibly empty.
public bool SupportsHighPrecision { get; init; }
Whether this mode's calibration offers the high-precision temperature table -- its own statement that the range fits in the narrower span that table spans. Nothing to do with frame rate; the frame rate is identical either way, and ThermalCamera.HighPrecision says what it does and does not change.
public int Width { get; init; }
Frame width in pixels.