Vec2
class optris_sdk.measurement.Vec2
A point or a size in region coordinates, which are not pixels.
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, not 1.0. Dividing both axes by the width is
what makes a circle a true circle in pixels at any resolution;
normalizing each axis by its own extent would make it an ellipse on
anything that is not square.
This catches people out, and the failure is quiet: a spot placed at
(80, 60) -- pixel coordinates on a 160x120 sensor -- is far
off-frame, so it measures nothing and reports valid = False
rather than raising. If a region never becomes valid, check this
first.
Camera.from_pixels converts, and is the way to say what you
mean when you are thinking in pixels.
Supports tuple unpacking, so x, y = region.centre works.