OptrisOptrisDocumentation

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

SnapshotRender

public sealed record SnapshotRender : IEquatable<SnapshotRender>

How the colorized picture in a snapshot was drawn.

Read-only, and read-side only: a PNG snapshot's primary image is the picture the operator was looking at, and this says what its colours meant: the palette, the numeric range the palette was stretched over, and the auto-scale mode that chose that range. So a reader can put a legend beside the picture, or reproduce it. The SDK fills it from the live view when it writes the file; nothing here is a caller's to set.

Why the range is not derivable. Under the sigma and percentile auto-scale modes the range is temporally filtered, so it is neither what the image's own pixels imply nor what the application last asked for. Recording it is the only way a reader can say what the colours meant.

SnapshotRender: constructors

public SnapshotRender()

SnapshotRender: properties

public string AutoScaleMode { get; init; }

percentile, absolute, sigma1 or sigma3: how the range was chosen.

Empty when a fixed range was in force, because then the mode did not choose it.

public Nullable<bool> Overlays { get; init; }

Whether region and blob overlays are actually in the picture.

A reader seeing a box can then tell it is an overlay rather than something in the scene.

Not a copy of ThermalCamera.OverlayCompositing: a camera with a GPU backend draws them unless compositing was switched off, and a camera on the CPU pipeline or the simulated camera only after it was switched on, so a fresh simulated camera records false although the setting reads true.

public string Palette { get; init; }

Palette name as the SDK spells it on disk (Iron, Jet, GrayscaleBW) or custom when the application supplied its own colours.

public string PaletteName { get; init; }

Display name of an application-supplied palette. Empty for a built-in one.

public Nullable<float> RangeMaximum { get; init; }

High end of the colour scale, in the SDK's temperature unit.

public Nullable<float> RangeMinimum { get; init; }

Low end of the colour scale, in the SDK's temperature unit (Celsius unless Sdk.TemperatureUnit chose Fahrenheit). The file stores Celsius.

The end of the palette, not the scene's minimum; under the percentile mode the scene runs past it.

public Nullable<bool> ThermalDataReliable { get; init; }

false when the detector had not settled and the temperatures the colours were computed from were not yet trustworthy.