Scripting API

btkGetRotations

Module BTKRotation

Description#

Extracts segment transform matrices from a previous Theia computation.

Parameters#

hHandle pointing to a C++ btk::Acquisition object.

Returned Values#

segmentsstructure with the segments' values. Each fieldname corresponds to a segment's label (see note #1 and #2).
segmentsInfostructure with the informations related to the segments.
  • segmentsInfo.frequency: Point's frequency
  • segmentsInfo.units: a single field with the unit (string) of the segments.

Detailed Description#

Notes#

Note #1: Check the page structureFieldnameFormat to understand how the fieldnames are formated.

Note #2: Each field value is a matrix object represented with dimensions of 4x4x(number of frames in acquisition).

See also#

Syntax#

[segments, segmentsInfo] = btkGetRotations(h)

Examples#