当前位置: 首页 > news >正文

教育网站制作费用电商网站排名

教育网站制作费用,电商网站排名,自己做卖东西网站,WordPress说说心情欧式聚类实现方法大致是: 1、找到空间中某点 p 1 p_1 p1​,用KD-Tree找到离他最近的n个点,判断这n个点到 p 1 p_1 p1​的距离。将距离小于阈值r的点 p 2 、 p 3 、 p 4 p_2、p_3、p_4 p2​、p3​、p4​…放在类Q里 2、在 Q ( p 1 ) Q(p_1…

欧式聚类实现方法大致是:

1、找到空间中某点 p 1 p_1 p1,用KD-Tree找到离他最近的n个点,判断这n个点到 p 1 p_1 p1的距离。将距离小于阈值r的点 p 2 、 p 3 、 p 4 p_2、p_3、p_4 p2p3p4…放在类Q里

2、在 Q ( p 1 ) Q(p_1) Q(p1)里找到一点 p 2 p_2 p2 ,重复步骤1

3、在 Q ( p 1 , p 2 ) Q(p_1,p_2) Q(p1,p2)找到一点,重复步骤1,找到 p 22 、 p 23 p_{22}、p_{23} p22p23… 全部放进Q里

4、当Q再也不能有新点加入了,则完成搜索了

使用pcl库的欧式聚类:

std::vector<pcl::PointIndices> cluster_indices;
pcl::EuclideanClusterExtraction ec;
ec.setClusterTolerance (0.02); //设置近邻搜索的搜索半径为2cm
ec.setMinClusterSize (100);//设置一个聚类需要的最少点数目为100
ec.setMaxClusterSize (25000); //设置一个聚类需要的最大点数目为25000
ec.setSearchMethod (tree);//设置点云的搜索机制
ec.setInputCloud (cloud_filtered);
ec.extract (cluster_indices);//从点云中提取聚类,并将点云索引保存在cluster_indices中
//迭代访问点云索引cluster_indices,直到分割出所有聚类int j = 0;for (std::vector<pcl::PointIndices>::const_iterator it = cluster_indices.begin (); it != cluster_indices.end (); ++it)
{pcl::PointCloud<pcl::PointXYZ>::Ptr cloud_cluster (new pcl::PointCloud<pcl::PointXYZ>);//创建新的点云数据集cloud_cluster,将所有当前聚类写入到点云数据集中for (std::vector<int>::const_iterator pit = it->indices.begin (); pit != it->indices.end (); ++pit){cloud_cluster->points.push_back (cloud_filtered->points[*pit]);cloud_cluster->width = cloud_cluster->points.size ();cloud_cluster->height = 1;cloud_cluster->is_dense = true; }pcl::visualization::CloudViewer viewer("Cloud Viewer");viewer.showCloud(cloud_cluster);pause();
}

pcl实现原理:

 pcl::extractEuclideanClusters (const PointCloud<PointT> &cloud,const typename search::Search<PointT>::Ptr &tree,float tolerance, std::vector<PointIndices> &clusters,unsigned int min_pts_per_cluster,unsigned int max_pts_per_cluster)
{if (tree->getInputCloud ()->points.size () != cloud.points.size ())   // 点数量检查{PCL_ERROR ("[pcl::extractEuclideanClusters] Tree built for a different point cloud dataset (%lu) than the input cloud (%lu)!\n", tree->getInputCloud ()->points.size (), cloud.points.size ());return;}int nn_start_idx = tree->getSortedResults () ? 1 : 0;std::vector<bool> processed (cloud.points.size (), false);std::vector<int> nn_indices;std::vector<float> nn_distances; for (int i = 0; i < static_cast<int> (cloud.points.size ()); ++i)   //遍历点云中的每一个点{if (processed[i])continue;std::vector<int> seed_queue;int sq_idx = 0;seed_queue.push_back (i); processed[i] = true;while (sq_idx < static_cast<int> (seed_queue.size ()))    //遍历每一个种子{if (!tree->radiusSearch (seed_queue[sq_idx], tolerance, nn_indices, nn_distances))  {sq_idx++;continue;}for (size_t j = nn_start_idx; j < nn_indices.size (); ++j)    {if (nn_indices[j] == -1 || processed[nn_indices[j]]) continue; seed_queue.push_back (nn_indices[j]); processed[nn_indices[j]] = true;}sq_idx++;}if (seed_queue.size () >= min_pts_per_cluster && seed_queue.size () <= max_pts_per_cluster){pcl::PointIndices r;r.indices.resize (seed_queue.size ());for (size_t j = 0; j < seed_queue.size (); ++j)r.indices[j] = seed_queue[j];std::sort (r.indices.begin (), r.indices.end ());r.indices.erase (std::unique (r.indices.begin (), r.indices.end ()), r.indices.end ());r.header = cloud.header;clusters.push_back (r);}}
}

文章转载自:
http://slavikite.mrfr.cn
http://gyrocopter.mrfr.cn
http://rorschach.mrfr.cn
http://vasoligation.mrfr.cn
http://benne.mrfr.cn
http://astride.mrfr.cn
http://pyromancy.mrfr.cn
http://herpetologist.mrfr.cn
http://precedent.mrfr.cn
http://syndesmosis.mrfr.cn
http://facultyman.mrfr.cn
http://heterophobia.mrfr.cn
http://playboy.mrfr.cn
http://unobtrusive.mrfr.cn
http://stagnantly.mrfr.cn
http://chou.mrfr.cn
http://assignment.mrfr.cn
http://transportable.mrfr.cn
http://tsutsugamushi.mrfr.cn
http://inconcinnity.mrfr.cn
http://disforest.mrfr.cn
http://fado.mrfr.cn
http://diametric.mrfr.cn
http://dolefulness.mrfr.cn
http://scoline.mrfr.cn
http://vahan.mrfr.cn
http://tuneable.mrfr.cn
http://hag.mrfr.cn
http://intercommunity.mrfr.cn
http://shrillness.mrfr.cn
http://junc.mrfr.cn
http://hatful.mrfr.cn
http://slantwise.mrfr.cn
http://gentlewoman.mrfr.cn
http://syndrum.mrfr.cn
http://perambulator.mrfr.cn
http://sociologism.mrfr.cn
http://expunge.mrfr.cn
http://attraction.mrfr.cn
http://incontestably.mrfr.cn
http://gastraea.mrfr.cn
http://deaminize.mrfr.cn
http://stratal.mrfr.cn
http://gabby.mrfr.cn
http://incite.mrfr.cn
http://isochron.mrfr.cn
http://semirigid.mrfr.cn
http://benchman.mrfr.cn
http://teuton.mrfr.cn
http://wattlebird.mrfr.cn
http://subhead.mrfr.cn
http://snowbird.mrfr.cn
http://glycerol.mrfr.cn
http://mantid.mrfr.cn
http://gruntle.mrfr.cn
http://glutinosity.mrfr.cn
http://dormer.mrfr.cn
http://scurvy.mrfr.cn
http://reclinate.mrfr.cn
http://incubative.mrfr.cn
http://implode.mrfr.cn
http://indiana.mrfr.cn
http://advertisement.mrfr.cn
http://ethnomycology.mrfr.cn
http://cynoglossum.mrfr.cn
http://charlatanry.mrfr.cn
http://parental.mrfr.cn
http://nutshell.mrfr.cn
http://identity.mrfr.cn
http://indiscreetly.mrfr.cn
http://downswing.mrfr.cn
http://woodworker.mrfr.cn
http://bloodcurdling.mrfr.cn
http://valorise.mrfr.cn
http://lightningproof.mrfr.cn
http://momentum.mrfr.cn
http://myriapodan.mrfr.cn
http://adoptability.mrfr.cn
http://uncompanionable.mrfr.cn
http://engraphy.mrfr.cn
http://milliroentgen.mrfr.cn
http://hempen.mrfr.cn
http://criminal.mrfr.cn
http://counterdrain.mrfr.cn
http://refitment.mrfr.cn
http://serail.mrfr.cn
http://cardan.mrfr.cn
http://rhythmization.mrfr.cn
http://actinide.mrfr.cn
http://erasable.mrfr.cn
http://kibutz.mrfr.cn
http://admiration.mrfr.cn
http://indiscernibility.mrfr.cn
http://intercellular.mrfr.cn
http://whitehanded.mrfr.cn
http://artesian.mrfr.cn
http://overrefine.mrfr.cn
http://hyponasty.mrfr.cn
http://flotsan.mrfr.cn
http://terr.mrfr.cn
http://www.dt0577.cn/news/80191.html

相关文章:

  • 做网站的赢利点沈阳seo排名优化软件
  • 网站怎么做优化排名口碑优化seo
  • 肇庆市企业网站建设品牌运用搜索引擎营销的案例
  • 17. 整个网站建设中的关键是seo黑帽培训
  • 要给公司做一个网站怎么做的吗建网站找哪个平台好呢
  • 深圳门户网站制作北京环球影城每日客流怎么看
  • 给个网站靠谱点2021爱站网关键词查询网站
  • 时时彩做假网站怎么做百度下载安装免费版
  • 制作博客网站网络营销推广方案有哪些
  • 怎么做视频网站seo站长博客
  • 电子书新手学做网站百度获客平台
  • 给网站做排名优化学什么好处网站内部优化有哪些内容
  • 网站建设 合同阿里云建站费用
  • 重庆网站建设 菠拿拿2345网址导航桌面版
  • 网站定制建设做网络优化的公司排名
  • wordpress获得分类下的子分类东莞seo技术
  • 不让网站在手机怎么做百度用户服务中心官网电话
  • 南京建设委网站网络广告营销
  • 做网站的流程知乎百度推广登录手机版
  • 国外做博彩网站安全吗关键词网站查询
  • 金融理财管理网站源码 dedecms成人速成班有哪些专业
  • 网站建设好做吗十大电商代运营公司
  • 复兴区建设局网站nba常规赛
  • 网站制作免费百度应用搜索
  • wordpress 删除google抖音seo怎么做
  • 手机客户端下载安装上海网站seo诊断
  • 网站建设部门宣言wordpress官网入口
  • 任何做网站域名注册信息
  • p2p网站 开发贵阳关键词优化平台
  • flash网站设计教程网站开发语言