pyCGM_Single.pycgmStatic.staticCalculationHead¶
-
pyCGM_Single.pycgmStatic.
staticCalculationHead
(frame, head)¶ Static Head Calculation function
This function calculates the x,y,z axes of the head, and then calculates the offset of the head using the headoffCalc function.
- Parameters
- framedict
Dictionary of marker lists.
- headarray
An array containing the head axis and head origin.
- Returns
- offsetfloat
The head offset angle for static calibration.
Examples
>>> import numpy as np >>> from .pycgmStatic import staticCalculationHead >>> frame = None >>> head = [[[100.33, 83.39, 1484.08], ... [98.97, 83.58, 1483.77], ... [99.35, 82.64, 1484.76]], ... [99.58, 82.79, 1483.8]] >>> np.around(staticCalculationHead(frame,head), 2) 0.28