OptrisOptrisDocumentation

Documentation/OTC SDK/OTC SDK — C API referencev12.0

optris_sdk_vec2

A point in region coordinates.

Region coordinates are frame-normalized and isotropic: the origin is the frame's top-left and both axes are divided by the frame width. So x runs 0..1 and y runs 0..height/width -- 0.75 on a 4:3 sensor. This is what makes a circle a true circle in pixels at any resolution.

Public attributes

x

float x

Horizontal position: 0 at the frame's left edge, 1 at its right. From a pixel column this is column / width.

y

float y

Vertical position, 0 at the frame's top edge.

The bottom edge is not 1. From a pixel row this is row / width -- the frame width, the same divisor as x, which is what keeps the two axes isotropic. So the bottom edge sits at height/width: 0.75 on a 4:3 sensor, 0.5 on a 640x320 one.

Dividing the row by the frame height instead is the usual way to end up with a region that is placed too low and stretched, and it looks correct on a square sensor, so it survives testing.