pyCGM_Single.pycgmKinetics.findL5_Pelvis

pyCGM_Single.pycgmKinetics.findL5_Pelvis(frame)

Calculate L5 Markers Given Pelvis function

Markers used: LHip, RHip, Pelvis_axis

Parameters
framedict

Dictionaries of marker lists.

Returns
midHip, L5tuple

Returns the (x, y, z) marker positions of the midHip, a (1x3) array, and L5, a (1x3) array, in a tuple.

Examples

>>> import numpy as np
>>> from .pycgmKinetics import findL5_Pelvis
>>> Pelvis_axis = [np.array([251.60, 391.74, 1032.89]),
...                np.array([[251.74, 392.72, 1032.78],
...                    [250.61, 391.87, 1032.87],
...                    [251.60, 391.84, 1033.88]]),
...                np.array([231.57, 210.25, 1052.24])]
>>> LHip = np.array([308.38, 322.80, 937.98])
>>> RHip = np.array([182.57, 339.43, 935.52])
>>> frame = { 'Pelvis_axis': Pelvis_axis, 'RHip': RHip, 'LHip': LHip}
>>> np.around(findL5_Pelvis(frame), 2) 
array([[ 245.48,  331.12,  936.75],
       [ 271.53,  371.69, 1043.8 ]])