Functions
mtt_auxiliar.cpp File Reference

Auxiliary functions from the mtt tracking. More...

#include <mtt/mtt_auxiliar.h>
Include dependency graph for mtt_auxiliar.cpp:

Go to the source code of this file.

Functions

double get_fps (double dt, t_fps *acc)
 
void init_config (t_config *config)
 Init configuration. More...
 
void init_flags (t_flag *flags)
 Init flags. More...
 
int my_tictoc (int status)
 TIC TOC implementation functions. More...
 
double point2line_distance (double alpha, double ro, double x, double y)
 Calculates the line to point distance. More...
 
double point2point_algebric_distance (double xi, double yi, double xf, double yf)
 Calculates the algebric distante between two points. More...
 
double point2point_distance (double xi, double yi, double xf, double yf)
 Calculates the distante between two points. More...
 
int timediff (struct timeval t1, struct timeval t2)
 Calculates timediff. More...
 

Detailed Description

Auxiliary functions from the mtt tracking.

Definition in file mtt_auxiliar.cpp.

Function Documentation

double get_fps ( double  dt,
t_fps acc 
)

Definition at line 115 of file mtt_auxiliar.cpp.

void init_config ( t_config config)

Init configuration.

Parameters
configgeneral configuration structure
Returns
void

Definition at line 34 of file mtt_auxiliar.cpp.

void init_flags ( t_flag flags)

Init flags.

Parameters
flagsgeneral flags structure
Returns
void

Definition at line 109 of file mtt_auxiliar.cpp.

int my_tictoc ( int  status)

TIC TOC implementation functions.

Parameters
statusTIC or TOC
Returns
timediff in useconds if TOC, 0 if TIC, -1 if unknown

Definition at line 148 of file mtt_auxiliar.cpp.

double point2line_distance ( double  alpha,
double  ro,
double  x,
double  y 
)

Calculates the line to point distance.

Parameters
alphapolar coordinates of the line
ropolar coordinates of the line
xcartesian coordinates of the point
y
Returns
algebric distance

Definition at line 177 of file mtt_auxiliar.cpp.

double point2point_algebric_distance ( double  xi,
double  yi,
double  xf,
double  yf 
)

Calculates the algebric distante between two points.

Parameters
xi
yi
xf
yf
Returns
algebric distance

Definition at line 174 of file mtt_auxiliar.cpp.

double point2point_distance ( double  xi,
double  yi,
double  xf,
double  yf 
)

Calculates the distante between two points.

Parameters
xi
yi
xf
yf
Returns
distance

Definition at line 171 of file mtt_auxiliar.cpp.

int timediff ( struct timeval  t1,
struct timeval  t2 
)

Calculates timediff.

Parameters
t1first time
t2second time
Returns
timediff in useconds

Definition at line 166 of file mtt_auxiliar.cpp.



mtt
Author(s): Jorge Almeida
autogenerated on Mon Mar 2 2015 01:32:18