load optical into tib/femur structures More...
Functions | |
int | load_collar_opti_data (vector< vector< double > > &all_opti_data, vector< string > &all_opti_labels, vector< vector< int > > point_flag, tibia &tib) |
Load Optical Marker data for all optical sensors on collar into tibia structure. |
load optical into tib/femur structures
int load_collar_opti_data | ( | vector< vector< double > > & | all_opti_data, |
vector< string > & | all_opti_labels, | ||
vector< vector< int > > | point_flag, | ||
tibia & | tib | ||
) |
Load Optical Marker data for all optical sensors on collar into tibia structure.
The load_opti_data functions pulls in motion data for all markers into a 2d vector. Then, the clean_opti_data() cleans up the errors and mis-labeled tracks in the data and reassigns them to the correct tracks. This function further processes the data and assigns it to correct child structure (optical sensor) of the tibia structure. For best results, it is called after load_opti_data() and after clean_opti_data() have been run. This identification of data to sensor id is done by comparing the labels of the marker stored in input vector all_opti_labels with the labels of the markers in tib.optical[i].point_label
This function also converts the data to metric units ie converts from mm to m.
References sensor::mdata, tibia::opti_count, tibia::optical, sensor::point_flag, and sensor::point_label.
Referenced by load_all_measures().