亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? kd_tree.h

?? c++實現(xiàn)的KNN庫:建立高維度的K-d tree,實現(xiàn)K鄰域搜索
?? H
字號:
//----------------------------------------------------------------------// File:			kd_tree.h// Programmer:		Sunil Arya and David Mount// Description:		Declarations for standard kd-tree routines// Last modified:	05/03/05 (Version 1.1)//----------------------------------------------------------------------// Copyright (c) 1997-2005 University of Maryland and Sunil Arya and// David Mount.  All Rights Reserved.// // This software and related documentation is part of the Approximate// Nearest Neighbor Library (ANN).  This software is provided under// the provisions of the Lesser GNU Public License (LGPL).  See the// file ../ReadMe.txt for further information.// // The University of Maryland (U.M.) and the authors make no// representations about the suitability or fitness of this software for// any purpose.  It is provided "as is" without express or implied// warranty.//----------------------------------------------------------------------// History://	Revision 0.1  03/04/98//		Initial release//	Revision 1.1  05/03/05//		Added fixed radius kNN search//----------------------------------------------------------------------#ifndef ANN_kd_tree_H#define ANN_kd_tree_H#include <ANN/ANNx.h>					// all ANN includesusing namespace std;					// make std:: available//----------------------------------------------------------------------//	Generic kd-tree node////		Nodes in kd-trees are of two types, splitting nodes which contain//		splitting information (a splitting hyperplane orthogonal to one//		of the coordinate axes) and leaf nodes which contain point//		information (an array of points stored in a bucket).  This is//		handled by making a generic class kd_node, which is essentially an//		empty shell, and then deriving the leaf and splitting nodes from//		this.//----------------------------------------------------------------------class ANNkd_node{						// generic kd-tree node (empty shell)public:	virtual ~ANNkd_node() {}					// virtual distroyer	virtual void ann_search(ANNdist) = 0;		// tree search	virtual void ann_pri_search(ANNdist) = 0;	// priority search	virtual void ann_FR_search(ANNdist) = 0;	// fixed-radius search	virtual void getStats(						// get tree statistics				int dim,						// dimension of space				ANNkdStats &st,					// statistics				ANNorthRect &bnd_box) = 0;		// bounding box												// print node	virtual void print(int level, ostream &out) = 0;	virtual void dump(ostream &out) = 0;		// dump node	friend class ANNkd_tree;					// allow kd-tree to access us};//----------------------------------------------------------------------//	kd-splitting function://		kd_splitter is a pointer to a splitting routine for preprocessing.//		Different splitting procedures result in different strategies//		for building the tree.//----------------------------------------------------------------------typedef void (*ANNkd_splitter)(			// splitting routine for kd-trees	ANNpointArray		pa,				// point array (unaltered)	ANNidxArray			pidx,			// point indices (permuted on return)	const ANNorthRect	&bnds,			// bounding rectangle for cell	int					n,				// number of points	int					dim,			// dimension of space	int					&cut_dim,		// cutting dimension (returned)	ANNcoord			&cut_val,		// cutting value (returned)	int					&n_lo);			// num of points on low side (returned)//----------------------------------------------------------------------//	Leaf kd-tree node//		Leaf nodes of the kd-tree store the set of points associated//		with this bucket, stored as an array of point indices.  These//		are indices in the array points, which resides with the//		root of the kd-tree.  We also store the number of points//		that reside in this bucket.//----------------------------------------------------------------------class ANNkd_leaf: public ANNkd_node		// leaf node for kd-tree{	int					n_pts;			// no. points in bucket	ANNidxArray			bkt;			// bucket of pointspublic:	ANNkd_leaf(							// constructor		int				n,				// number of points		ANNidxArray		b)				// bucket		{			n_pts		= n;			// number of points in bucket			bkt			= b;			// the bucket		}	~ANNkd_leaf() { }					// destructor (none)	virtual void getStats(						// get tree statistics				int dim,						// dimension of space				ANNkdStats &st,					// statistics				ANNorthRect &bnd_box);			// bounding box	virtual void print(int level, ostream &out);// print node	virtual void dump(ostream &out);			// dump node	virtual void ann_search(ANNdist);			// standard search	virtual void ann_pri_search(ANNdist);		// priority search	virtual void ann_FR_search(ANNdist);		// fixed-radius search};//----------------------------------------------------------------------//		KD_TRIVIAL is a special pointer to an empty leaf node. Since//		some splitting rules generate many (more than 50%) trivial//		leaves, we use this one shared node to save space.////		The pointer is initialized to NULL, but whenever a kd-tree is//		created, we allocate this node, if it has not already been//		allocated. This node is *never* deallocated, so it produces//		a small memory leak.//----------------------------------------------------------------------extern ANNkd_leaf *KD_TRIVIAL;					// trivial (empty) leaf node//----------------------------------------------------------------------//	kd-tree splitting node.//		Splitting nodes contain a cutting dimension and a cutting value.//		These indicate the axis-parellel plane which subdivide the//		box for this node. The extent of the bounding box along the//		cutting dimension is maintained (this is used to speed up point//		to box distance calculations) [we do not store the entire bounding//		box since this may be wasteful of space in high dimensions].//		We also store pointers to the 2 children.//----------------------------------------------------------------------class ANNkd_split : public ANNkd_node	// splitting node of a kd-tree{	int					cut_dim;		// dim orthogonal to cutting plane	ANNcoord			cut_val;		// location of cutting plane	ANNcoord			cd_bnds[2];		// lower and upper bounds of										// rectangle along cut_dim	ANNkd_ptr			child[2];		// left and right childrenpublic:	ANNkd_split(						// constructor		int cd,							// cutting dimension		ANNcoord cv,					// cutting value		ANNcoord lv, ANNcoord hv,				// low and high values		ANNkd_ptr lc=NULL, ANNkd_ptr hc=NULL)	// children		{			cut_dim		= cd;					// cutting dimension			cut_val		= cv;					// cutting value			cd_bnds[ANN_LO] = lv;				// lower bound for rectangle			cd_bnds[ANN_HI] = hv;				// upper bound for rectangle			child[ANN_LO]	= lc;				// left child			child[ANN_HI]	= hc;				// right child		}	~ANNkd_split()						// destructor		{			if (child[ANN_LO]!= NULL && child[ANN_LO]!= KD_TRIVIAL)				delete child[ANN_LO];			if (child[ANN_HI]!= NULL && child[ANN_HI]!= KD_TRIVIAL)				delete child[ANN_HI];		}	virtual void getStats(						// get tree statistics				int dim,						// dimension of space				ANNkdStats &st,					// statistics				ANNorthRect &bnd_box);			// bounding box	virtual void print(int level, ostream &out);// print node	virtual void dump(ostream &out);			// dump node	virtual void ann_search(ANNdist);			// standard search	virtual void ann_pri_search(ANNdist);		// priority search	virtual void ann_FR_search(ANNdist);		// fixed-radius search};//----------------------------------------------------------------------//		External entry points//----------------------------------------------------------------------ANNkd_ptr rkd_tree(				// recursive construction of kd-tree	ANNpointArray		pa,				// point array (unaltered)	ANNidxArray			pidx,			// point indices to store in subtree	int					n,				// number of points	int					dim,			// dimension of space	int					bsp,			// bucket space	ANNorthRect			&bnd_box,		// bounding box for current node	ANNkd_splitter		splitter);		// splitting routine#endif

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩一级免费一区| 欧美激情一区不卡| 欧美激情在线免费观看| 一区二区三区日韩欧美精品| 狠狠色丁香久久婷婷综合丁香| 色婷婷久久久久swag精品| 精品少妇一区二区三区 | 亚洲一区在线观看免费| 国产一区中文字幕| 91精品久久久久久久91蜜桃| 亚洲精品乱码久久久久久| 成人性生交大片| 精品乱人伦小说| 午夜亚洲福利老司机| 91视频国产资源| 国产精品妹子av| 国产精品18久久久| 精品国产免费一区二区三区四区| 亚洲成a天堂v人片| 欧美视频日韩视频| 一区二区三区中文字幕在线观看| 99视频一区二区| 国产精品区一区二区三区| 国产在线乱码一区二区三区| 欧美一二三四在线| 肉肉av福利一精品导航| 欧美浪妇xxxx高跟鞋交| 亚洲综合视频在线| 91国偷自产一区二区开放时间 | 视频一区视频二区在线观看| 一本久久a久久精品亚洲| 国产精品每日更新| 成av人片一区二区| 亚洲欧美在线aaa| av在线一区二区三区| 自拍偷拍亚洲欧美日韩| 99久久国产综合色|国产精品| 国产精品免费久久久久| caoporn国产精品| 中文字幕一区二区三区在线播放 | 久久久久久久久99精品| 国产美女一区二区| 国产精品网曝门| 91在线国内视频| 亚洲香肠在线观看| 在线成人午夜影院| 久久精品国产一区二区| 久久精品亚洲麻豆av一区二区| 成人精品视频一区二区三区尤物| 国产精品家庭影院| 欧美日韩精品一区二区| 美女一区二区久久| 国产精品色眯眯| 日本精品视频一区二区| 午夜精品影院在线观看| 日韩情涩欧美日韩视频| 国产成人在线视频播放| 亚洲欧美激情视频在线观看一区二区三区| 一本一道综合狠狠老| 全部av―极品视觉盛宴亚洲| 欧美r级在线观看| 成人午夜激情在线| 午夜免费久久看| 久久久国际精品| 欧美天堂一区二区三区| 精品在线视频一区| 亚洲激情成人在线| 精品国产乱码久久久久久1区2区 | 欧美亚洲图片小说| 国产自产高清不卡| 亚洲最大色网站| 国产亚洲欧美中文| 91久久久免费一区二区| 国产在线精品一区二区夜色| 亚洲视频一二区| 久久综合九色综合97婷婷| 一本久久a久久精品亚洲| 精品一区二区三区视频| 夜夜夜精品看看| 久久久精品综合| 欧美剧情电影在线观看完整版免费励志电影| 久久99精品久久久久久动态图| 1区2区3区国产精品| 精品欧美一区二区久久| 在线观看免费成人| 成人黄色一级视频| 激情成人午夜视频| 肉色丝袜一区二区| 一区二区三区国产| 国产精品日韩成人| 久久精品视频一区| 亚洲成av人片在线观看| 国产精品成人在线观看| 日韩欧美一级精品久久| 欧美日韩一区小说| 色哦色哦哦色天天综合| 国产1区2区3区精品美女| 黄色资源网久久资源365| 日产欧产美韩系列久久99| 一区二区三区国产豹纹内裤在线| 欧美激情在线免费观看| 久久久久国产精品免费免费搜索| 日韩欧美一二三四区| 制服丝袜av成人在线看| 欧美日本韩国一区二区三区视频| 色婷婷综合五月| 91视频国产资源| 色香蕉成人二区免费| 99精品黄色片免费大全| jlzzjlzz亚洲日本少妇| 成人一区二区三区| 成人小视频在线| 粉嫩av一区二区三区粉嫩| 国产经典欧美精品| 国产成人精品免费视频网站| 国产老肥熟一区二区三区| 国模一区二区三区白浆| 国产成人在线观看| 丁香婷婷综合色啪| 成人av集中营| 色综合一区二区| 色哟哟国产精品| 欧美喷水一区二区| 日韩你懂的电影在线观看| 精品国产乱码久久久久久久| 久久久久久久久久久黄色| 国产日韩精品一区| 亚洲色图一区二区三区| 亚洲成av人片在线观看无码| 强制捆绑调教一区二区| 国模少妇一区二区三区| 成人精品电影在线观看| 91视频国产观看| 91精品国产色综合久久| 欧美精品一区二区三区很污很色的| 久久蜜桃香蕉精品一区二区三区| 国产清纯在线一区二区www| 亚洲欧美激情小说另类| 亚洲成人一二三| 久久国产精品区| 99热在这里有精品免费| 欧美色视频在线| 久久久亚洲综合| 日韩伦理电影网| 日韩国产欧美在线播放| 国产成人久久精品77777最新版本 国产成人鲁色资源国产91色综 | 久久综合久久综合久久综合| 国产精品乱码一区二三区小蝌蚪| 亚洲欧美色图小说| 日韩电影在线免费观看| 丁香六月久久综合狠狠色| 欧美亚洲图片小说| 久久久99久久| 天堂va蜜桃一区二区三区 | 亚洲精品va在线观看| 久久精品国产亚洲一区二区三区| av中文字幕一区| 91精品视频网| 136国产福利精品导航| 奇米四色…亚洲| 日本乱码高清不卡字幕| 精品99久久久久久| 亚洲成a人v欧美综合天堂下载| 高清久久久久久| 欧美一卡二卡在线| 亚洲日本在线天堂| 国产成都精品91一区二区三| 欧美福利视频导航| 亚洲欧美经典视频| 国产精品一区二区x88av| 7799精品视频| 亚洲自拍与偷拍| 成人黄色软件下载| 26uuu精品一区二区三区四区在线 26uuu精品一区二区在线观看 | 中文字幕在线免费不卡| 国产一区二区精品久久91| 欧美亚一区二区| 亚洲人成在线观看一区二区| 国产一区免费电影| 日韩欧美国产综合| 日韩黄色小视频| 欧美综合视频在线观看| 国产精品萝li| 成人污视频在线观看| 2023国产一二三区日本精品2022| 天堂午夜影视日韩欧美一区二区| 色老汉一区二区三区| 国产精品国产成人国产三级| 国产精品一二三在| 久久久久久久综合| 麻豆免费精品视频| 91麻豆精品国产91久久久久久久久| 一区二区三区精品视频在线| 91免费视频大全| 亚洲色图在线视频| 色综合久久综合网| 一区二区三区欧美| 在线亚洲一区二区| 亚洲国产精品久久不卡毛片| 欧美一a一片一级一片|