OptrisOptrisDocumentation

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

SensorDimensions

public readonly record struct SensorDimensions : IEquatable<SensorDimensions>

A camera model's native frame size in pixels.

What Sdk.GetSensorDimensions(…) answers. A pair rather than two out parameters so that it can be stored, compared and passed on as one thing: a tile's size is one fact, and splitting it into two integers is how a width gets paired with the wrong height.

There is no "unknown" value here on purpose. A model the SDK cannot size is reported by the call refusing, not by a zero inside this struct: for the life of the SDK's dimension table the PI 1 answered 0 × 0 while a simulated PI 1 streamed 160 × 120, and nothing noticed because a zero looks like an answer.

SensorDimensions: constructors

public SensorDimensions(int Width, int Height)

A camera model's native frame size in pixels.

  • Width: Width in pixels. Always greater than zero.
  • Height: Height in pixels. Always greater than zero.

What Sdk.GetSensorDimensions(…) answers. A pair rather than two out parameters so that it can be stored, compared and passed on as one thing: a tile's size is one fact, and splitting it into two integers is how a width gets paired with the wrong height.

There is no "unknown" value here on purpose. A model the SDK cannot size is reported by the call refusing, not by a zero inside this struct: for the life of the SDK's dimension table the PI 1 answered 0 × 0 while a simulated PI 1 streamed 160 × 120, and nothing noticed because a zero looks like an answer.

SensorDimensions: properties

public int Height { get; init; }

Height in pixels. Always greater than zero.

public int PixelCount { get; }

The number of pixels in a frame of this size.

public int Width { get; init; }

Width in pixels. Always greater than zero.