load_opti_data.cpp File Reference

Functions to load optical marker data into data vector. More...

#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <curses.h>
#include "c3d.h"
#include "postprocess.h"
Include dependency graph for load_opti_data.cpp:
This graph shows which files directly or indirectly include this file:

Defines

#define MAXCOL   10
#define MAX_OPTI_SIZE   50
#define MAX_OPTI_LABEL   50

Functions

int load_opti_data (char *filename, vector< vector< double > > &datapoints, vector< string > &point_labels)
 Load Optical Marker Data.

Detailed Description

Functions to load optical marker data into data vector.


Define Documentation

#define MAX_OPTI_LABEL   50
#define MAX_OPTI_SIZE   50
#define MAXCOL   10

Function Documentation

int load_opti_data ( char *  filename,
vector< vector< double > > &  datapoints,
vector< string > &  point_labels 
)

Load Optical Marker Data.

This program reads the Motion Capture Data written in *.c3d format files and loads it into vectors containing the point data and the point labels.

Parameters:
[in]filenameName of the file (*.c3d) containing the optical marker data
[out]datapoints2d vector containing point displacement data. datapoints[i][j] contains global position data of parameter j, in the i+1 frame. (index for vector starts from 0)
[out]point_labelsThe labels for the points on which markers are placed. point_label[i] corresponds to the label for data in vector datapoints[][3i] to datapoints[][3i+2]

This function performs the same steps as the c3dreader program (/user/home/mharshe/work/c3d_handling/c3dreader.cpp) but instead of storing the data into a txt file, it loads it into vectors (which are passed as arguments to the function).

total number of frames stored last_field - first_field+1

Referenced by load_all_measures(), and main().

Here is the caller graph for this function:

 All Data Structures Files Functions Variables Typedefs Defines