pyCGM_Single.pycgmKinetics.findL5_Thorax

pyCGM_Single.pycgmKinetics.findL5_Thorax(frame)

Calculate L5 Markers Given Thorax function.

Markers used: C7, RHip, LHip, Thorax_axis

Parameters
framedict

Dictionaries of marker lists.

Returns
L5array

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

Examples

>>> from .pycgmKinetics import findL5_Thorax
>>> import numpy as np
>>> Thorax_axis = [[[256.34, 365.72, 1461.92], 
...               [257.26, 364.69, 1462.23], 
...               [256.18, 364.43, 1461.36]],
...               [256.27, 364.79, 1462.29]]
>>> C7 = np.array([256.78, 371.28, 1459.70])
>>> LHip = np.array([308.38, 322.80, 937.98])
>>> RHip = np.array([182.57, 339.43, 935.52])
>>> frame = { 'C7': C7, 'RHip': RHip, 'LHip': LHip, 'Thorax_axis': Thorax_axis}
>>> np.around(findL5_Thorax(frame), 2) 
array([ 265.16,  359.12, 1049.06])