OptrisOptrisDocumentation

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

SnapshotInfo

public sealed record SnapshotInfo : IEquatable<SnapshotInfo>

What a snapshot records about its own capture.

The same type in both directions: what ThermalCamera.SaveSnapshot(…) writes into the file is what Snapshot.Info reads back out of it, so a round trip through disk is expressible in one type rather than two that have to be kept in step.

Every measurement is nullable on purpose. null on the way in means "let the camera supply it", and on the way out it means the file does not carry it, which is a different fact from "the file says zero", and matters when the value is a measurement.

The three temperatures are in the SDK's temperature unit (Celsius unless Sdk.TemperatureUnit chose Fahrenheit) in both directions. The file itself always stores Celsius, so a snapshot written in Fahrenheit is the same file as one written in Celsius.

Example

camera.SaveSnapshot("event.tiff", SnapshotFormat.Tiff,
                    new SnapshotInfo
                    {
                        Description = "bearing 3, second shift",
                        Emissivity = 0.95f,
                    });

SnapshotInfo: constructors

public SnapshotInfo()

SnapshotInfo: properties

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

Ambient temperature, in the SDK's temperature unit.

public string Description { get; init; }

Free text from whoever took the image, written into the metadata document.

The one field the SDK can never fill in for you, and usually the only one worth setting: what the picture is of.

public string DeviceModel { get; init; }

The camera model, e.g. Xi 400.

public string DeviceSerial { get; init; }

The camera's serial number.

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

Surface emissivity, 0 to 1.

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

Horizontal field of view, in degrees.

public string FirmwareVersion { get; init; }

The camera's firmware version.

public string HardwareRevision { get; init; }

The camera's hardware revision.

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

High end of the camera's measurement range, in the SDK's temperature unit.

It also picks the pixel scale when SnapshotOptions.Scale is left to the SDK.

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

Low end of the camera's measurement range, in the SDK's temperature unit.

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

Path transmissivity, 0 to 1.