foot-pressure.h
Go to the documentation of this file.
00001 
00002 
00003 #include <time.h>
00004 #include <string>
00005 #include <vector>
00006 //#include <fstream>
00007 
00011 struct foot_sens
00012 {
00014   int num_rows;
00016   int num_cols;
00018   double row_space;
00020   double col_space;
00021   //| \brief Area occupied by each sensel
00022   double sensel_area;
00024   double noise_thresh;
00025 
00027   double sec_per_frame;
00028 
00030   struct tm readtime;
00031 
00033   double sat_press;
00034 
00035   int start_frame;
00036   int end_frame;
00038   int tot_frames;
00040   string units;
00042   vector< vector< vector<double> > > mdata;
00044   vector< vector<double> > cof_data;
00046   vector< vector<double> > for_data;
00048   vector< vector<double> > pres_data;
00049   string origfile;
00050 };
00051 
00052 int get_month_no(string month);
00053 
00054 int read_foot_pres_movie(char *filename, struct foot_sens &foot_movie);
00055 double press_frame_timestamp(int frameno, double sec_per_frame, struct tm readtime);
00056 int read_foot_press_head(ifstream &infile, struct foot_sens &foot_movie);
00057 int read_foot_press_cof(char *filename, struct foot_sens &footcof);
00058 
00059 int read_foot_pressures(char *filename, struct foot_sens &footpres);
00060 int read_foot_forces(char *filename, struct foot_sens &footfor);
 All Data Structures Files Functions Variables Typedefs Defines