00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00032 #ifndef _POTKF_DRAW_H_
00033 #define _POTKF_DRAW_H_
00034
00035 #include "mtt_common.h"
00036
00037 void DrawListPaths(IplImage*img,t_list*list,t_config*config);
00038 void DrawListCenters(IplImage*img,t_list*list,CvScalar color,t_config*config);
00039 void DrawListIds(IplImage*img,t_list*list,CvScalar color,t_config*config);
00040 void DrawSearchArea(IplImage*img,t_list*list,t_config*config);
00041 void DrawVelocity(IplImage*img,t_list*list,t_config*config);
00042 void draw_end_lines(IplImage*img,t_cluster**clusters,int size,t_data*data,t_config*config);
00043 void draw_oclusion_area(IplImage*img,t_object**list,int size,CvScalar color,t_config*config);
00044 void drawarrow(int x0, int y0, double o, double lenght, IplImage *dst, CvScalar color, int thickness, int line_type, int shift);
00045 void draw_ambient(IplImage*img,t_config*config,enum_background_style style=STYLE_DARK,int laser=1);
00046 void draw_midle_circle(IplImage*img,t_config*config);
00047 void draw_clusters_npoints(IplImage*img,t_cluster**clusters,int size,t_data*data,t_config*config);
00048 void draw_clusters_centers(IplImage*img,t_cluster**clusters,int size,t_config*config);
00049 void draw_clusters_area(IplImage*img,t_cluster**clusters,int size,t_config*config,t_data*data);
00050 void draw_clusters(IplImage*img,t_cluster**clusters,int size,t_data*data,t_config*config);
00051 void draw_objects(IplImage*img,t_object**objects,int size,CvScalar color,t_config*config);
00052 void draw_objects_centers(IplImage*img,t_object**objects,int size,CvScalar color,t_config*config);
00053 void draw_objects_ids(IplImage*img,t_object**objects,int size,CvScalar color,t_config*config);
00054 void draw_objects_ppos(IplImage*img,t_object**objects,int size,t_config*config);
00055 void draw_raw_data(IplImage*img,t_data*data,CvScalar color,t_config*config);
00056 void draw_raw_data_acc(IplImage*img,t_data_acc*data,CvScalar color,t_config*config);
00057 void DrawGlobal(char key,IplImage*img,t_config*config,t_data*data,t_object**objects,int object_size,t_list*list,t_flag*flags,int laser=0,bool raw_only=false);
00058 extern void get_mean_velocity(t_circular_data*data,double*mean_module,double*mean_angle);
00059 extern int real2print(double x,t_config*config);
00060
00061 #endif