load_collar_opti_data.cpp File Reference

load optical into tib/femur structures More...

#include "lowerleg_struct.h"
#include "c3d.h"
#include "lowerleg_func.h"
#include "postprocess.h"
Include dependency graph for load_collar_opti_data.cpp:
This graph shows which files directly or indirectly include this file:

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.

Detailed Description

load optical into tib/femur structures


Function Documentation

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().

Here is the caller graph for this function:

 All Data Structures Files Functions Variables Typedefs Defines