Header file to define data type for foot pressure sensor. More...
#include <time.h>
#include <string>
#include <vector>
Go to the source code of this file.
Data Structures | |
struct | foot_sens |
Structure containing foot pressure sensor data. More... | |
Functions | |
int | get_month_no (string month) |
int | read_foot_pres_movie (char *filename, struct foot_sens &foot_movie) |
Read in-shoe pressure data from sensors, pressure distribution for all frames. | |
double | press_frame_timestamp (int frameno, double sec_per_frame, struct tm readtime) |
Returns the timestamp when frame was recorded. | |
int | read_foot_press_head (ifstream &infile, struct foot_sens &foot_movie) |
int | read_foot_press_cof (char *filename, struct foot_sens &footcof) |
Read in-shoe pressure data - center of force coordinates in pixel location. | |
int | read_foot_pressures (char *filename, struct foot_sens &footpres) |
Read contact pressure values exported from Graph Objects. | |
int | read_foot_forces (char *filename, struct foot_sens &footfor) |
Read force values exported from Graph Objects. |
Header file to define data type for foot pressure sensor.
int get_month_no | ( | string | month | ) |
double press_frame_timestamp | ( | int | frameno, |
double | sec_per_frame, | ||
struct tm | readtime | ||
) |
Returns the timestamp when frame was recorded.
Since the frames are recorded at known frequency, and the timestamp of the first frame is recorded, this function outputs the timestamp (as seconds passed since Epoch) based on the frame number.
[in] | frameno | The index number of the frame. ie Actual Frame number-1 (since Frame one is stored as mdata[0][][] and so on). |
[in] | secs_per_frame | The seconds per frame. It is obtained from the specific member of the foot_sens structure. |
[in] | readtime | The tm structure that holds timestamp data. |
int read_foot_forces | ( | char * | filename, |
struct foot_sens & | footfor | ||
) |
Read force values exported from Graph Objects.
References foot_sens::for_data, read_foot_press_head(), and foot_sens::tot_frames.
int read_foot_pres_movie | ( | char * | filename, |
struct foot_sens & | foot_movie | ||
) |
Read in-shoe pressure data from sensors, pressure distribution for all frames.
Reads files of type *.asf. Loads pressure distribution over all sensels.
References foot_sens::mdata, foot_sens::num_cols, foot_sens::num_rows, read_foot_press_head(), and foot_sens::tot_frames.
int read_foot_press_cof | ( | char * | filename, |
struct foot_sens & | footcof | ||
) |
Read in-shoe pressure data - center of force coordinates in pixel location.
The function reads files of type *.asc, which contain the location of the center of force on the foot. The co-ordinates of the center of force are expressed as the row and column number of the sensels. The exact physical location can be calculation using the row spacing and column spacing information that is contained in the file.
References foot_sens::cof_data, read_foot_press_head(), and foot_sens::tot_frames.
int read_foot_press_head | ( | ifstream & | infile, |
struct foot_sens & | foot_movie | ||
) |
Referenced by read_foot_forces(), read_foot_pres_movie(), read_foot_press_cof(), and read_foot_pressures().
int read_foot_pressures | ( | char * | filename, |
struct foot_sens & | footpres | ||
) |
Read contact pressure values exported from Graph Objects.
References foot_sens::pres_data, read_foot_press_head(), and foot_sens::tot_frames.