OptrisOptrisDocumentation

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

RecordedLossy

public sealed record RecordedLossy : IEquatable<RecordedLossy>

What was done to a recording's samples that a lossless recording would not have done.

Why a reader has to be able to ask. A lossy recording and a lossless one are the same format, the same tracks and the same pixel type, and the difference is invisible in the numbers: a temperature that reads 23.4 °C may have been measured as 23.4 °C or as 23.37 °C. Nothing in the data recovers that, and a measurement whose uncertainty is unknowable is not evidence. RecordedLossy.MaxErrorKelvin is the one number to put beside a reading taken from such a file.

RecordedLossy: constructors

public RecordedLossy(uint QuantizeCounts, float MaxErrorKelvin, string VisualCodec, int VisualQuality)

What was done to a recording's samples that a lossless recording would not have done.

  • QuantizeCounts: Samples were rounded to a multiple of this many counts, one count being 0.1 K. Zero when the thermal track is exact.
  • MaxErrorKelvin: The largest error the rounding can have introduced, half a step: a difference in degrees of the SDK's temperature unit, whatever the name says (kelvin in Celsius, Fahrenheit degrees when Sdk.TemperatureUnit chose Fahrenheit), so it compares directly with the temperatures read from the same file. No pixel of any frame in the file is further out than this, not on average, at all.
  • VisualCodec: The codec a lossy visual track was encoded with, as FFmpeg names it. Empty when there is no visual track or it is lossless.
  • VisualQuality: That track's quality setting, on its encoder's own scale. Zero when there is none.

Why a reader has to be able to ask. A lossy recording and a lossless one are the same format, the same tracks and the same pixel type, and the difference is invisible in the numbers: a temperature that reads 23.4 °C may have been measured as 23.4 °C or as 23.37 °C. Nothing in the data recovers that, and a measurement whose uncertainty is unknowable is not evidence. RecordedLossy.MaxErrorKelvin is the one number to put beside a reading taken from such a file.

RecordedLossy: properties

public float MaxErrorKelvin { get; init; }

The largest error the rounding can have introduced, half a step: a difference in degrees of the SDK's temperature unit, whatever the name says (kelvin in Celsius, Fahrenheit degrees when Sdk.TemperatureUnit chose Fahrenheit), so it compares directly with the temperatures read from the same file. No pixel of any frame in the file is further out than this, not on average, at all.

public uint QuantizeCounts { get; init; }

Samples were rounded to a multiple of this many counts, one count being 0.1 K. Zero when the thermal track is exact.

public string VisualCodec { get; init; }

The codec a lossy visual track was encoded with, as FFmpeg names it. Empty when there is no visual track or it is lossless.

public int VisualQuality { get; init; }

That track's quality setting, on its encoder's own scale. Zero when there is none.