Marker sets¶
A marker set lists the labels a trial should have, the body segment each belongs to, the sticks
drawn between them, and what auto-labeling needs to know about them. OpenMotionLabel guesses the
set from a file's labels and from the set the file declares (Nexus writes it in
SUBJECTS:MARKER_SETS), and the marker list shows which one it uses.
Built-in sets¶
| Name | Markers | Set |
|---|---|---|
pig_lower |
17 | Plug-in Gait lower body |
pig_full |
41 | Plug-in Gait full body |
cgm1_kad_lower |
23 | CGM1.0 lower body with the knee alignment device (KAD) |
cgm11_lower |
21 | CGM1.1 lower body |
cgm23_lower |
29 | CGM2.3 lower body |
cgm24_lower |
35 | CGM2.4 lower body |
cgm24_full |
59 | CGM2.4 full body (CGM2.4 lower body with the Plug-in Gait upper body) |
oml markersets lists them, and oml markersets pig_full shows one by segment, with flags for
optional markers (?, such as SACR, used instead of LPSI and RPSI), static-only ones (s, such
as the medial knee and ankle markers KNM and MED of the CGM sets) and the asymmetric ones that
tell left from right (*).
Checking a file against a set¶
oml coverage walk01.c3d --set cgm24_lower
It lists the set's markers the file lacks and the labels it has that the set doesn't.
Your own set¶
A marker set is a YAML file. The built-in ones (in src/openmotionlabel/markerset/library/)
are the best examples. A set can extend another and add markers to it:
name: My lab's lower body
description: Plug-in Gait lower body with two extra thigh markers.
extends: pig_lower
markers:
- {name: LTHA, segment: LeftFemur, description: Left anterior thigh}
- {name: RTHA, segment: RightFemur, description: Right anterior thigh}
sticks:
- [LTHA, LKNE]
- [RTHA, RKNE]
Commands take the file's path wherever they take a set's name, for example
oml coverage trial.c3d --set my_lab.yaml or oml label trial.c3d --markerset my_lab.yaml.
Auto-labeling needs to know where the extra markers sit on the body: learn a template from a few
of your labeled statics with oml learn (see Auto-labeling statics).