pyCGM_Single.pyCGM.findwandmarker

pyCGM_Single.pyCGM.findwandmarker(frame, thorax)

Calculate the wand marker function.

Takes in a dictionary of marker names to x, y, z positions and the thorax axis. Calculates the wand marker for calculating the clavicle.

Markers used: RSHO, LSHO

Parameters
framedict

Dictionaries of marker lists.

thoraxarray

The x,y,z position of the thorax.

Returns
wandarray

Returns wand marker position for calculating knee joint center later. The wand marker position is returned as a 2x3 array containing the right wand marker x,y,z positions 1x3 followed by the left wand marker x,y,z positions 1x3.

Examples

>>> import numpy as np
>>> from .pyCGM import findwandmarker
>>> frame = {'RSHO': np.array([428.88, 270.55, 1500.73]),
...          'LSHO': np.array([68.24, 269.01, 1510.10])}
>>> thorax = [[[256.23, 365.30, 1459.66],
...          [257.14, 364.21, 1459.58],
...          [256.08, 354.32, 1458.65]],
...          [256.14, 364.30, 1459.65]]
>>> [np.around(arr, 2) for arr in findwandmarker(frame,thorax)]
[array([ 255.91,  364.31, 1460.62]), array([ 256.42,  364.27, 1460.61])]