00001 /************************************************************************************************** 00002 Software License Agreement (BSD License) 00003 00004 Copyright (c) 2011-2013, LAR toolkit developers - University of Aveiro - http://lars.mec.ua.pt 00005 All rights reserved. 00006 00007 Redistribution and use in source and binary forms, with or without modification, are permitted 00008 provided that the following conditions are met: 00009 00010 *Redistributions of source code must retain the above copyright notice, this list of 00011 conditions and the following disclaimer. 00012 *Redistributions in binary form must reproduce the above copyright notice, this list of 00013 conditions and the following disclaimer in the documentation and/or other materials provided 00014 with the distribution. 00015 *Neither the name of the University of Aveiro nor the names of its contributors may be used to 00016 endorse or promote products derived from this software without specific prior written permission. 00017 00018 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR 00019 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND 00020 FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 00021 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 00022 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 00023 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 00024 IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 00025 OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00026 ***************************************************************************************************/ 00032 #ifndef _MTT_DATA_ASSOCIATION_H_ 00033 #define _MTT_DATA_ASSOCIATION_H_ 00034 00035 00036 #include "mtt_common.h" 00037 00038 #ifdef _MTT_DATA_ASSOCIATION_CPP_ 00039 00040 #else 00041 extern unsigned int last_id; 00042 #endif 00043 00044 unsigned int GetListSize(t_list*list); 00045 00046 // void AssociateObjects(t_list**list,t_object**objects,int object_size,t_config*config,t_flag*flags); 00047 void AssociateObjects(vector<t_listPtr> &list,vector<t_objectPtr> &objects,t_config& config,t_flag& flags); 00048 00049 void AddObjectToList(vector<t_listPtr> &list,t_object& object,t_config&config); 00050 00051 void RemoveFromList(vector<t_listPtr> &list,unsigned int id); 00052 00053 extern void AllocMotionModels(t_list&list,t_config&config); 00054 00055 void AllocPath(t_path*path,t_config&config); 00056 void InitialiseSearchArea(t_list&list,t_config&config); 00057 00058 void PrintNobjects(t_list*list); 00059 00060 void InitialiseTimers(t_timers*timer); 00061 void InitialiseClassification(t_classification*classification); 00062 00063 /*double CheckAssociationCriteria(t_list*list,t_object*object,t_config*config); 00064 double CheckAssociationCriteria(t_list*list,t_object& object);*/ 00065 double CheckAssociationCriteria(t_list&list,t_object& object); 00066 00067 void SingleObjectAssociation(t_list& list,t_object& object); 00068 00069 void AddPointPath(t_path*path,double x,double y); 00070 00071 void SetSearchArea(t_list& list,t_config&config); 00072 00073 void AllocErrors(t_errors*error,t_config&config); 00074 00075 void SetOjectMorphology(t_list&list,t_object& object); 00076 00077 void PrintTree(t_list*list,int l); 00078 extern double point2point_distance(double xi,double yi,double xf,double yf); 00079 extern int real2print(double x,t_config*config); 00080 #endif