load_mario_frame_opti.cpp File Reference

Functions to load and convert from optical frame to MARIONET frame. More...

#include <algorithm>
#include "c3d.h"
#include "lowerleg_func.h"
#include "postprocess.h"
Include dependency graph for load_mario_frame_opti.cpp:
This graph shows which files directly or indirectly include this file:

Functions

int load_mario_frame_opti_data (vector< vector< double > > &all_opti_data, vector< string > &all_opti_labels, vector< vector< double > > &frame)
 Load the frame reference point coordinates.
int calc_mario_frame_opti (gsl_matrix *H, vector< vector< double > > &frame_mario, vector< vector< double > > &frame)
 Calculate the transformation matrix to convert from optical system to MARIONET frame of ref.

Detailed Description

Functions to load and convert from optical frame to MARIONET frame.

The optical marker set includes 3 points fixed to the MARIONET frame in order to calculate the transformation matrix relating the MARIONET frame to the optical system frame (as defined by ARENA software). This file includes the necessary functions to read the optical datafile, load all data into a vector and calculate the transformation matrix.


Function Documentation

int calc_mario_frame_opti ( gsl_matrix *  H,
vector< vector< double > > &  frame_mario,
vector< vector< double > > &  frame 
)

Calculate the transformation matrix to convert from optical system to MARIONET frame of ref.

The function calculates the transformation matrix that converts data in optical system's reference frame to the co-ordinates expressed in terms of reference system fixed to the MARIONET.

Points are stored in the file in the order of: Ox, Oy, O

Parameters:
[in,out]H4x4 matrix that transform coordinates in optical frame to marionet frame
[in]frame_mario2d vector containing the 3 coordinates of ref points in mario frame
[in]frame2d vector containing the 3 coordinates of ref points in optical frame

References calc_trans_mat(), and vectormat2double().

Referenced by load_all_measures().

Here is the call graph for this function:

Here is the caller graph for this function:

int load_mario_frame_opti_data ( vector< vector< double > > &  all_opti_data,
vector< string > &  all_opti_labels,
vector< vector< double > > &  frame 
)

Load the frame reference point coordinates.

Referenced by load_all_measures().

Here is the caller graph for this function:

 All Data Structures Files Functions Variables Typedefs Defines