OptrisOptrisDocumentation

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

FrameGeometry

public static class FrameGeometry

Frame geometry helpers.

FrameGeometry: methods

public static Vector2 CentreOf(uint frameWidth, uint frameHeight)

The centre of a frame that size, in frame coordinates.

  • Throws SdkConfigurationException: Either dimension is zero.

Not (0.5, 0.5), which is the mistake this call exists to stop. Both axes are divided by the width, so X runs 0..1 and Y runs 0..height / width: the centre of a 382x288 frame is therefore (0.5, 0.377), and a hand-written (0.5, 0.5) places it below centre on every camera that is not square.