kdtree1.2

所属分类:matlab编程
开发工具:matlab
文件大小:129KB
下载次数:52
上传日期:2010-07-17 15:44:11
上 传 者yaoyaogod
说明:  kd-tree 是广泛用来处理多维寻找最近点的数据结构。该文件中是由matlab调用c++代码实现的,其中实现包括kd-tree的建立最近点的查找等。
(kd-tree is kind of data structure which is widely used to find the nearest point in multi-demensions.The zip file contain matlab and cpp files.The functions implemented include kd-tree building and nearest points searching and so on.)

文件列表:
kdtree (0, 2008-12-09)
kdtree\CHANGES (1477, 2008-12-09)
kdtree\KDTree.h (23691, 2008-12-09)
kdtree\Makefile (5063, 2008-12-09)
kdtree\MyHeaps.h (13341, 2008-12-09)
kdtree\TODO (159, 2008-12-09)
kdtree\fulltest.m (1311, 2008-12-09)
kdtree\kdtree_ball_query.cpp (5479, 2008-12-09)
kdtree\kdtree_ball_query.m (1362, 2008-12-09)
kdtree\kdtree_ball_query.mexmaci (44132, 2008-12-09)
kdtree\kdtree_ball_query_demo.m (947, 2008-12-09)
kdtree\kdtree_build.cpp (6130, 2008-12-09)
kdtree\kdtree_build.m (850, 2008-12-09)
kdtree\kdtree_build.mexmaci (48840, 2008-12-09)
kdtree\kdtree_build_demo.m (574, 2008-12-09)
kdtree\kdtree_delete.cpp (1747, 2008-12-09)
kdtree\kdtree_delete.m (462, 2008-12-09)
kdtree\kdtree_delete.mexmaci (39740, 2008-12-09)
kdtree\kdtree_delete_demo.m (329, 2008-12-09)
kdtree\kdtree_k_nearest_neighbor_demo.m (590, 2008-12-09)
kdtree\kdtree_k_nearest_neighbors.cpp (5499, 2008-12-09)
kdtree\kdtree_k_nearest_neighbors.m (1338, 2008-12-09)
kdtree\kdtree_k_nearest_neighbors.mexmaci (53244, 2008-12-09)
kdtree\kdtree_k_nearest_neighbors_demo.m (3569, 2008-12-09)
kdtree\kdtree_nearest_neighbor.cpp (5533, 2008-12-09)
kdtree\kdtree_nearest_neighbor.m (996, 2008-12-09)
kdtree\kdtree_nearest_neighbor.mexmaci (48556, 2008-12-09)
kdtree\kdtree_nearest_neighbor_demo.m (618, 2008-12-09)
kdtree\kdtree_range_query.cpp (4229, 2008-12-09)
kdtree\kdtree_range_query.m (974, 2008-12-09)
kdtree\kdtree_range_query.mexmaci (44164, 2008-12-09)
kdtree\kdtree_range_query_demo.m (653, 2008-12-09)
license.txt (1373, 2009-05-22)

Package: kdtree1.2 Author: Andrea Tagliasacchi ata2@cs.sfu.ca Date: December 8 2008 %------------------ DESCRIPTION -----------------% kdtree provides a minimalistic implementation of kd-tree. The implementation can be used either inside MATLAB by means of MEX calls, or as a standalone tool, directly from a C/C++ program. The image on the website has been creaed with "fulltest.m" %------------------ FUNCTIONALITIES -----------------% This implementation offers the following functionalities: - kdtree_build: k-d tree construction O( n log^2(n) ) - kdtree_delete: frees memory allocated by kdtree - kdtree_nearest_neighbor: nearest neighbor query (for one or more points) - kdtree_k_nearest_neighbors: kNN for a single query point - kdtree_range_query: rectangular range query - kdtree_ball_query: queries samples withing distance delta from a point %------------------ FILE STRUCTURE -----------------% Everyone of the scripts/functions is complete of the following: *.cpp: the mex implementation of the sources *.mexmaci: the compiled version of the mex (intel mac) *.m: the comments that you can browse with the "help" command *_demo.m: demo file to illustrate the behavior %------------------ HOW COMPILE -----------------% IMPORTANT NOTE: I assume you have a correctly configured MEX environment. Compiling can be done in two ways. The first is directly inside MATLAB. You can compile manually each of the files by calling the command mex within the kdtree folder from the MATLAB command line. For example: >> mex kdtree_build.cpp Alternatively, if you are in a unix environment, you might also be able to use the provided makefile. In order to do this you need to change some of the environment variables in order to make them point to your local MATLAB installation. %------------------ DEVELOPMENT -----------------% As mentioned the *.cpp files contain a MEX interface for MATLAB. At the same time, a rich set of examples which run as standalone, independently from having a MATLAB installation, is provided. In order to compile them independetly from the MEX environment, a preprocessor condition -D CPPONLY need to be used. The makefile uses this flags and compiles sources in both environments: C++ and MEX. --- Feedback is greatly appreciated.

近期下载者

相关文件


收藏者