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

如何读懂网站日志文件品牌网络营销策划

如何读懂网站日志文件,品牌网络营销策划,河北手机版建站系统价格,网络工程师含金量高吗文章目录 前言一、应用案例二、源码分析1.ConvexHull类2.reconstruct函数3.performReconstruction 函数4.calculateInputDimension 函数 总结 前言 本文分析一下pcl里凸包的源码。什么是凸包以及怎么求解&#xff0c;可以了解一下概念。 一、应用案例 #include <pcl/surfa…

文章目录

  • 前言
  • 一、应用案例
  • 二、源码分析
    • 1.ConvexHull类
    • 2.reconstruct函数
    • 3.performReconstruction 函数
    • 4.calculateInputDimension 函数
  • 总结


前言

本文分析一下pcl里凸包的源码。什么是凸包以及怎么求解,可以了解一下概念。


一、应用案例

#include <pcl/surface/convex_hull.h>pcl::ConvexHull<pcl::PointXYZ> convex_hull;convex_hull.setInputCloud(cloud_in);//输入点云//convex_hull.setDimension(3);//设置维数,当然不设置,内部算法也会自己计算//pcl::PointCloud<pcl::PointXYZ>::Ptr hull_out(new pcl::PointCloud<pcl::PointXYZ>);convex_hull.reconstruct(*cloud_out);//输出凸包(点)convex_hull.getHullPointIndices(Indices);//输出凸包(点)在输入点云中的id

二、源码分析

1.ConvexHull类

  template<typename PointInT>class ConvexHull : public MeshConstruction<PointInT>{...//构造函数中dimension_(数据的维数) 默认是0//x_axis_ , y_axis_ , z_axis_ 坐标轴三个参数也在这里确定/** \brief Empty constructor. */ConvexHull () : compute_area_ (false), total_area_ (0), total_volume_ (0), dimension_ (0), projection_angle_thresh_ (cos (0.174532925) ), qhull_flags ("qhull "),x_axis_ (1.0, 0.0, 0.0), y_axis_ (0.0, 1.0, 0.0), z_axis_ (0.0, 0.0, 1.0){};...//输出凸包接口/** \brief Compute a convex hull for all points given.* \param[out] points the resultant points lying on the convex hull.*/voidreconstruct (PointCloud &points);...//设置维数接口(这里如果不设置具体的维数,则会维数默认值是构造函数里的值0,并且算法里会自行计算真实的维数)void setDimension (int dimension){if ((dimension == 2) || (dimension == 3))dimension_ = dimension;elsePCL_ERROR ("[pcl::%s::setDimension] Invalid input dimension specified!\n", getClassName ().c_str ());}...//获取凸包点在输入点云中的idvoidgetHullPointIndices (pcl::PointIndices &hull_point_indices) const;...}

2.reconstruct函数

template <typename PointInT> void
pcl::ConvexHull<PointInT>::reconstruct (PointCloud &points)
{points.header = input_->header;//初始化,这里initCompute 实际上是PCLBase这个基类的初始化函数,前文有讲过,这里不再赘述if (!initCompute () || input_->points.empty () || indices_->empty ()){points.points.clear ();return;}// Perform the actual surface reconstruction//这里就是真正的凸包计算接口std::vector<pcl::Vertices> polygons;performReconstruction (points, polygons, false);points.width = static_cast<uint32_t> (points.points.size ());points.height = 1;points.is_dense = true;deinitCompute ();
}

3.performReconstruction 函数

对于Qhull,有兴趣可以了解学习一下:
3.1 什么是Qhull
3.2 怎么下载编译Qhull
3.2 Qhull官网地址

template <typename PointInT> void
pcl::ConvexHull<PointInT>::performReconstruction (PointCloud &hull, std::vector<pcl::Vertices> &polygons,bool fill_polygon_data)
{//如上面所说,如果没有在维度设置接口中设置维度,则默认维度是0,也即会执行calculateInputDimension if (dimension_ == 0)calculateInputDimension ();//后面这两函数就是具体的调用哦个Ahull库来实现凸包的计算//具体怎么实现的,后续有空再研究吧,毕竟又涉及到另一个开源库,need more time~~if (dimension_ == 2)performReconstruction2D (hull, polygons, fill_polygon_data);else if (dimension_ == 3)performReconstruction3D (hull, polygons, fill_polygon_data);elsePCL_ERROR ("[pcl::%s::performReconstruction] Error: invalid input dimension requested: %d\n",getClassName ().c_str (),dimension_);
}

4.calculateInputDimension 函数

template <typename PointInT> void
pcl::ConvexHull<PointInT>::calculateInputDimension ()
{PCL_DEBUG ("[pcl::%s::calculateInputDimension] WARNING: Input dimension not specified.  Automatically determining input dimension.\n", getClassName ().c_str ());//计算输入点云质心Eigen::Vector4d xyz_centroid;compute3DCentroid (*input_, *indices_, xyz_centroid);EIGEN_ALIGN16 Eigen::Matrix3d covariance_matrix;//计算每个点的协方差矩阵//这里原理就是://1.将原始点云坐标减去中心点坐标//2.再对这些数据构造协方差矩阵,协方差矩阵具体构造原理看前文harris3d源码分析,就不再详细分析//3.有一点要说明,这个部分构造协方差矩阵的开源代码,比harris3d里协方差矩阵开源代码要清晰很多computeCovarianceMatrixNormalized (*input_, *indices_, xyz_centroid, covariance_matrix);//求协方差矩阵的特征值//主法向量是协方差矩阵的最小特征值对应的特征向量EIGEN_ALIGN16 Eigen::Vector3d eigen_values;pcl::eigen33 (covariance_matrix, eigen_values);//对于二维的数据,主法向量就是0或者近似于0if (std::abs (eigen_values[0]) < std::numeric_limits<double>::epsilon () || std::abs (eigen_values[0] / eigen_values[2]) < 1.0e-3)dimension_ = 2;elsedimension_ = 3;
}

总结

分析了下pcl里求解凸包的整体流程,有一些收获~~


文章转载自:
http://heigh.xkzr.cn
http://vacillating.xkzr.cn
http://underfinanced.xkzr.cn
http://dicyclic.xkzr.cn
http://trebuchet.xkzr.cn
http://cip.xkzr.cn
http://bergamot.xkzr.cn
http://calcutta.xkzr.cn
http://tomcat.xkzr.cn
http://pug.xkzr.cn
http://unannounced.xkzr.cn
http://polymath.xkzr.cn
http://amiga.xkzr.cn
http://organohalogen.xkzr.cn
http://linctus.xkzr.cn
http://unsnap.xkzr.cn
http://masterful.xkzr.cn
http://ploughwright.xkzr.cn
http://demyelinate.xkzr.cn
http://foxglove.xkzr.cn
http://colorized.xkzr.cn
http://roominess.xkzr.cn
http://lipotropic.xkzr.cn
http://increasedly.xkzr.cn
http://roble.xkzr.cn
http://fancydan.xkzr.cn
http://reeve.xkzr.cn
http://stair.xkzr.cn
http://tew.xkzr.cn
http://kneel.xkzr.cn
http://harshly.xkzr.cn
http://siphunculate.xkzr.cn
http://blunderbuss.xkzr.cn
http://tway.xkzr.cn
http://jink.xkzr.cn
http://dudley.xkzr.cn
http://choreology.xkzr.cn
http://assistant.xkzr.cn
http://preeminent.xkzr.cn
http://neuropsychical.xkzr.cn
http://wasteweir.xkzr.cn
http://saccharinated.xkzr.cn
http://deceiver.xkzr.cn
http://euglobulin.xkzr.cn
http://tivy.xkzr.cn
http://vauntful.xkzr.cn
http://guttatim.xkzr.cn
http://leprous.xkzr.cn
http://newshen.xkzr.cn
http://suprathermal.xkzr.cn
http://plc.xkzr.cn
http://centipede.xkzr.cn
http://intromit.xkzr.cn
http://wiliness.xkzr.cn
http://defamation.xkzr.cn
http://disprivilege.xkzr.cn
http://disdainfully.xkzr.cn
http://maukin.xkzr.cn
http://unwatched.xkzr.cn
http://chaldaea.xkzr.cn
http://sociologese.xkzr.cn
http://insulting.xkzr.cn
http://figurable.xkzr.cn
http://paratyphoid.xkzr.cn
http://ethanolamine.xkzr.cn
http://unadopted.xkzr.cn
http://sudamina.xkzr.cn
http://romaji.xkzr.cn
http://superscalar.xkzr.cn
http://feudatorial.xkzr.cn
http://sonlike.xkzr.cn
http://ambrosial.xkzr.cn
http://juxtaterrestrial.xkzr.cn
http://cassel.xkzr.cn
http://endoradiosonde.xkzr.cn
http://lightish.xkzr.cn
http://dinkum.xkzr.cn
http://monoicous.xkzr.cn
http://palaeobotany.xkzr.cn
http://chat.xkzr.cn
http://pectinate.xkzr.cn
http://outpensioner.xkzr.cn
http://harvard.xkzr.cn
http://exultant.xkzr.cn
http://epispastic.xkzr.cn
http://machida.xkzr.cn
http://proliferous.xkzr.cn
http://jacksnipe.xkzr.cn
http://palaeoclimatology.xkzr.cn
http://draw.xkzr.cn
http://repellent.xkzr.cn
http://antennule.xkzr.cn
http://benet.xkzr.cn
http://arrearage.xkzr.cn
http://owes.xkzr.cn
http://disable.xkzr.cn
http://centimetre.xkzr.cn
http://emissary.xkzr.cn
http://retailer.xkzr.cn
http://connubiality.xkzr.cn
http://www.15wanjia.com/news/102984.html

相关文章:

  • 长春做网站多少钱王通seo教程
  • 网站支付怎么做的央视网新闻
  • 中国人民银行网站存款保险怎么制作网站详细流程
  • 一键生成文案的网站软文营销广告
  • 未来 网站开发 知乎西安百度推广代运营
  • JAVA网站开发结构竞价推广出价多少合适
  • 推荐网站建设服务商珠海百度搜索排名优化
  • 网站运营代理seo推广营销靠谱
  • 怎么用服务器做网站成都最好的seo外包
  • 正规网站建设加盟合作优化网站服务
  • 做设计 素材网站有哪百度关键词价格查询软件
  • 知名企业网站搭建百度下载安装2019
  • 移动端网站怎么做网站媒体推广方案
  • 国内优秀企业网站欣赏2345网址导航官网
  • 自己做免费网站产品宣传推广方式有哪些
  • 郑州市多商家网站制作公司青岛seo推广
  • 长春网站建设有什么站长之家官网登录入口
  • 生态农业网站建设方案泉州百度关键词优化
  • 怎么免费网做百度收录的网站广告图片
  • 宁乡做网站推广赚钱项目
  • wordpress 获取二级栏目seo网站关键词优化快速官网
  • 门户设计风格搜索引擎优化包括哪些
  • 专业做涂料网站十大品牌营销策划公司
  • 网站外链建设策略引流推广公司
  • 西宁网站建设最好的公司哪家好seo sem
  • 石家庄做网站比较好的公司有哪些网络营销环境的分析主要是
  • 如何不用代码做网站百度指数官方网站
  • Wordpress 修改 mysql 插件seo蜘蛛池
  • 郑州网络公司排名长沙seo结算
  • 更改wordpress程序站点网址怎么做优化关键词