mtt_draw.h
Go to the documentation of this file.
1 /**************************************************************************************************
2  Software License Agreement (BSD License)
3 
4  Copyright (c) 2011-2013, LAR toolkit developers - University of Aveiro - http://lars.mec.ua.pt
5  All rights reserved.
6 
7  Redistribution and use in source and binary forms, with or without modification, are permitted
8  provided that the following conditions are met:
9 
10  *Redistributions of source code must retain the above copyright notice, this list of
11  conditions and the following disclaimer.
12  *Redistributions in binary form must reproduce the above copyright notice, this list of
13  conditions and the following disclaimer in the documentation and/or other materials provided
14  with the distribution.
15  *Neither the name of the University of Aveiro nor the names of its contributors may be used to
16  endorse or promote products derived from this software without specific prior written permission.
17 
18  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
19  IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20  FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
21  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22  DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
24  IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
25  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 ***************************************************************************************************/
32 #ifndef _POTKF_DRAW_H_
33 #define _POTKF_DRAW_H_
34 
35 #include "mtt_common.h"
36 
37 void DrawListPaths(IplImage*img,t_list*list,t_config*config);
38 void DrawListCenters(IplImage*img,t_list*list,CvScalar color,t_config*config);
39 void DrawListIds(IplImage*img,t_list*list,CvScalar color,t_config*config);
40 void DrawSearchArea(IplImage*img,t_list*list,t_config*config);
41 void DrawVelocity(IplImage*img,t_list*list,t_config*config);
42 void draw_end_lines(IplImage*img,t_cluster**clusters,int size,t_data*data,t_config*config);
43 void draw_oclusion_area(IplImage*img,t_object**list,int size,CvScalar color,t_config*config);
44 void drawarrow(int x0, int y0, double o, double lenght, IplImage *dst, CvScalar color, int thickness, int line_type, int shift);
45 void draw_ambient(IplImage*img,t_config*config,enum_background_style style=STYLE_DARK,int laser=1);
46 void draw_midle_circle(IplImage*img,t_config*config);
47 void draw_clusters_npoints(IplImage*img,t_cluster**clusters,int size,t_data*data,t_config*config);
48 void draw_clusters_centers(IplImage*img,t_cluster**clusters,int size,t_config*config);
49 void draw_clusters_area(IplImage*img,t_cluster**clusters,int size,t_config*config,t_data*data);
50 void draw_clusters(IplImage*img,t_cluster**clusters,int size,t_data*data,t_config*config);
51 void draw_objects(IplImage*img,t_object**objects,int size,CvScalar color,t_config*config);
52 void draw_objects_centers(IplImage*img,t_object**objects,int size,CvScalar color,t_config*config);
53 void draw_objects_ids(IplImage*img,t_object**objects,int size,CvScalar color,t_config*config);
54 void draw_objects_ppos(IplImage*img,t_object**objects,int size,t_config*config);
55 void draw_raw_data(IplImage*img,t_data*data,CvScalar color,t_config*config);
56 void draw_raw_data_acc(IplImage*img,t_data_acc*data,CvScalar color,t_config*config);
57 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);
58 extern void get_mean_velocity(t_circular_data*data,double*mean_module,double*mean_angle);
59 extern int real2print(double x,t_config*config);
60 
61 #endif
void draw_objects_ids(IplImage *img, t_object **objects, int size, CvScalar color, t_config *config)
Draw objects ID's in their centers.
Definition: mtt_draw.cpp:383
void draw_objects(IplImage *img, t_object **objects, int size, CvScalar color, t_config *config)
Draw objects lines.
Definition: mtt_draw.cpp:417
void DrawListCenters(IplImage *img, t_list *list, CvScalar color, t_config *config)
Definition: mtt_draw.cpp:254
void draw_clusters_area(IplImage *img, t_cluster **clusters, int size, t_config *config, t_data *data)
Draw the cluster inner area.
Definition: mtt_draw.cpp:670
void draw_midle_circle(IplImage *img, t_config *config)
Draw a circle on the midle of the image.
Definition: mtt_draw.cpp:582
void DrawListPaths(IplImage *img, t_list *list, t_config *config)
Definition: mtt_draw.cpp:160
void DrawListIds(IplImage *img, t_list *list, CvScalar color, t_config *config)
Definition: mtt_draw.cpp:308
int real2print(double x, t_config *config)
void draw_clusters(IplImage *img, t_cluster **clusters, int size, t_data *data, t_config *config)
Draw all cluster points connect by lines.
Definition: mtt_draw.cpp:707
void draw_raw_data_acc(IplImage *img, t_data_acc *data, CvScalar color, t_config *config)
Draw raw data accumulator.
Definition: mtt_draw.cpp:772
void draw_clusters_centers(IplImage *img, t_cluster **clusters, int size, t_config *config)
Draw a point on the cluster in r minimum and mean theta.
Definition: mtt_draw.cpp:596
Full description of and tracked object.
Definition: mtt_common.h:394
void draw_objects_ppos(IplImage *img, t_object **objects, int size, t_config *config)
void drawarrow(int x0, int y0, double o, double lenght, IplImage *dst, CvScalar color, int thickness, int line_type, int shift)
Draw arrow.
Definition: mtt_draw.cpp:798
This structure contains object information.
Definition: mtt_common.h:210
void draw_oclusion_area(IplImage *img, t_object **list, int size, CvScalar color, t_config *config)
Draw the cluster inner area.
Definition: mtt_draw.cpp:626
void DrawSearchArea(IplImage *img, t_list *list, t_config *config)
Definition: mtt_draw.cpp:217
Cluster type class, clusters are groups of points in close proximity.
void get_mean_velocity(t_circular_data *data, double *mean_module, double *mean_angle)
void draw_clusters_npoints(IplImage *img, t_cluster **clusters, int size, t_data *data, t_config *config)
Prints the cluster number of points.
Definition: mtt_draw.cpp:474
This structure has all points coordinates.
Definition: mtt_common.h:115
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)
Definition: mtt_draw.cpp:34
void DrawVelocity(IplImage *img, t_list *list, t_config *config)
Definition: mtt_draw.cpp:278
This structure contains global configurations parameters.
Definition: mtt_common.h:137
void draw_end_lines(IplImage *img, t_cluster **clusters, int size, t_data *data, t_config *config)
Draw clusters end lines, lines from the center of the image to the first and last point of the cluste...
Definition: mtt_draw.cpp:447
Header with common structures and includes.
void draw_objects_centers(IplImage *img, t_object **objects, int size, CvScalar color, t_config *config)
Draws a point in objects centers.
Definition: mtt_draw.cpp:353
This structure contains global flags parameters.
Definition: mtt_common.h:369
void draw_raw_data(IplImage *img, t_data *data, CvScalar color, t_config *config)
Draw raw data.
Definition: mtt_draw.cpp:743
void draw_ambient(IplImage *img, t_config *config, enum_background_style style=STYLE_DARK, int laser=1)
Draw background ambient.
Definition: mtt_draw.cpp:507


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