Functions to load and convert from optical frame to MARIONET frame. More...
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. |
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.
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
[in,out] | H | 4x4 matrix that transform coordinates in optical frame to marionet frame |
[in] | frame_mario | 2d vector containing the 3 coordinates of ref points in mario frame |
[in] | frame | 2d vector containing the 3 coordinates of ref points in optical frame |
References calc_trans_mat(), and vectormat2double().
Referenced by load_all_measures().
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().