OptrisOptrisDocumentation

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

optris_sdk_placement

Where one camera's frame sits on the canvas. Mirrors optris::sdk::Placement.

Turned, zoomed and moved, without changing a single measured temperature. A region authored on the canvas is measured by mapping it back through the inverse placement into the camera's own frame, where the original pixels are, so nothing radiometric is ever interpolated. See optris_sdk_imager_set_canvas().

The truth is matrix, an affine from frame coordinates into canvas coordinates. Everything the helper calls do composes into it or decomposes out of it exactly -- the friendly form is a translate, rotate and uniform scale and nothing more, so optris_sdk_placement_get_zoom() and optris_sdk_placement_get_rotation_deg() read straight back off what optris_sdk_placement_centred() wrote.

Set matrix directly for anything that form cannot say: a shear, or an alignment solved by a calibration step. Measurement only ever asks for the inverse, so it does not care which route produced it -- but then optris_sdk_placement_has_shear() reports non-zero and the zoom and rotation accessors become an approximation rather than an exact read-back.

Public attributes

struct_size

uint32_t struct_size

Set it with optris_sdk_placement_init before every call.

matrix

optris_sdk_matrix3 matrix

Frame space -> canvas space.