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

做电影网站侵权吗destoon 网站后台显示不出模板

做电影网站侵权吗,destoon 网站后台显示不出模板,做母婴产品的网站,wordpress 导航 代码目录 一、概述 1.1原理 1.2实现步骤 1.3应用场景 二、代码实现 2.1关键函数 2.1.1 索引空间采样 2.1.2 可视化原始点云和下采样后的点云 2.2完整代码 三、实现效果 PCL点云算法汇总及实战案例汇总的目录地址链接#xff1a; PCL点云算法与项目实战案例汇总#xf…目录 一、概述 1.1原理 1.2实现步骤 1.3应用场景 二、代码实现 2.1关键函数 2.1.1 索引空间采样 2.1.2 可视化原始点云和下采样后的点云 2.2完整代码 三、实现效果 PCL点云算法汇总及实战案例汇总的目录地址链接 PCL点云算法与项目实战案例汇总长期更新 一、概述 索引空间采样 是一种点云降采样方法通过使用点云的索引来选择特定的点进行保留。这种方法灵活且易于实现适用于需要从点云中提取特定索引点的场景。 1.1原理 索引空间采样的基本思想是使用点的索引来直接选择要保留的点。例如可以根据一定的规则如每隔 n 个点选择点或选择特定条件下的点。通过这种方式可以控制下采样的结果以达到所需的数据量。 常见的索引方法 基于法线或曲率的条件可以根据法线的方向、曲率等属性选择点。例如只选择那些法线曲率大于某个阈值的点以保留重要的几何特征。根据空间位置可以选择在特定区域内的点。例如只选择在某个坐标范围内的点或者选择在特定高度以上或以下的点。随机选择可以随机选择点的索引从而确保样本的多样性。这种方法适用于需要快速采样且不需要特定规则的场景。基于点的属性根据点的颜色、强度或其他属性选择点。例如选择强度高于某个值的点以提取出特定特征。自定义采样规则根据应用的具体需求自定义采样逻辑。例如可以根据点与某个参考点的距离进行采样只选择距离较近的点。 1.2实现步骤 读取点云数据。根据索引选择要保留的点。可视化原始点云和下采样后的点云。 1.3应用场景 点云简化在不影响整体形状的情况下减少点的数量。特征提取提取特定区域或特征的点。数据分析根据索引条件选择样本点进行分析。 二、代码实现 2.1关键函数 2.1.1 索引空间采样 通过使用点云的索引进行降采样。 #include pcl/io/pcd_io.h #include pcl/point_types.h// 设置采样步长 int step_size 10; // 每隔十个点采样一个点// 创建新的点云以存储下采样后的结果 pcl::PointCloudpcl::PointXYZ::Ptr sampled_cloud(new pcl::PointCloudpcl::PointXYZ);// 索引空间采样 for (size_t i 0; i cloud-size(); i step_size) {sampled_cloud-points.push_back(cloud-points[i]); // 添加采样点 } sampled_cloud-width sampled_cloud-points.size(); sampled_cloud-height 1; sampled_cloud-is_dense true; // 确保点云是密集的2.1.2 可视化原始点云和下采样后的点云 使用 PCLVisualizer 可视化原始点云和下采样后的点云设置背景为白色。 #include pcl/visualization/pcl_visualizer.h// 可视化原始点云和下采样后的点云 void visualizePointClouds(pcl::PointCloudpcl::PointXYZ::Ptr cloud, // 原始点云pcl::PointCloudpcl::PointXYZ::Ptr sampled_cloud) // 下采样后的点云 {pcl::visualization::PCLVisualizer::Ptr viewer(new pcl::visualization::PCLVisualizer(Index Space Sample Viewer));// 设置视口1显示原始点云int vp_1;viewer-createViewPort(0.0, 0.0, 0.5, 1.0, vp_1); // 左侧窗口viewer-setBackgroundColor(1.0, 1.0, 1.0, vp_1); // 白色背景viewer-addText(Original PointCloud, 10, 10, vp1_text, vp_1); // 标题pcl::visualization::PointCloudColorHandlerCustompcl::PointXYZ cloud_color_handler(cloud, 0, 255, 0); // 绿色viewer-addPointCloud(cloud, cloud_color_handler, original_cloud, vp_1);// 设置视口2显示下采样后的点云int vp_2;viewer-createViewPort(0.5, 0.0, 1.0, 1.0, vp_2); // 右侧窗口viewer-setBackgroundColor(1.0, 1.0, 1.0, vp_2); // 白色背景viewer-addText(Sampled PointCloud, 10, 10, vp2_text, vp_2); // 标题pcl::visualization::PointCloudColorHandlerCustompcl::PointXYZ sampled_color_handler(sampled_cloud, 255, 0, 0); // 红色viewer-addPointCloud(sampled_cloud, sampled_color_handler, sampled_cloud, vp_2);// 设置点的大小viewer-setPointCloudRenderingProperties(pcl::visualization::PCL_VISUALIZER_POINT_SIZE, 2, original_cloud, vp_1);viewer-setPointCloudRenderingProperties(pcl::visualization::PCL_VISUALIZER_POINT_SIZE, 4, sampled_cloud, vp_2);viewer-addCoordinateSystem(1.0);viewer-initCameraParameters();while (!viewer-wasStopped()){viewer-spinOnce(100);} }2.2完整代码 #include iostream #include pcl/io/pcd_io.h #include pcl/point_types.h #include pcl/visualization/pcl_visualizer.h// 可视化原始点云和下采样后的点云 void visualizePointClouds(pcl::PointCloudpcl::PointXYZ::Ptr cloud, // 原始点云pcl::PointCloudpcl::PointXYZ::Ptr sampled_cloud) // 下采样后的点云 {pcl::visualization::PCLVisualizer::Ptr viewer(new pcl::visualization::PCLVisualizer(Index Space Sample Viewer));// 设置视口1显示原始点云int vp_1;viewer-createViewPort(0.0, 0.0, 0.5, 1.0, vp_1); // 左侧窗口viewer-setBackgroundColor(1.0, 1.0, 1.0, vp_1); // 白色背景viewer-addText(Original PointCloud, 10, 10, vp1_text, vp_1); // 标题pcl::visualization::PointCloudColorHandlerCustompcl::PointXYZ cloud_color_handler(cloud, 0, 255, 0); // 绿色viewer-addPointCloud(cloud, cloud_color_handler, original_cloud, vp_1);// 设置视口2显示下采样后的点云int vp_2;viewer-createViewPort(0.5, 0.0, 1.0, 1.0, vp_2); // 右侧窗口viewer-setBackgroundColor(1.0, 1.0, 1.0, vp_2); // 白色背景viewer-addText(Sampled PointCloud, 10, 10, vp2_text, vp_2); // 标题pcl::visualization::PointCloudColorHandlerCustompcl::PointXYZ sampled_color_handler(sampled_cloud, 255, 0, 0); // 红色viewer-addPointCloud(sampled_cloud, sampled_color_handler, sampled_cloud, vp_2);// 设置点的大小viewer-setPointCloudRenderingProperties(pcl::visualization::PCL_VISUALIZER_POINT_SIZE, 2, original_cloud, vp_1);viewer-setPointCloudRenderingProperties(pcl::visualization::PCL_VISUALIZER_POINT_SIZE, 4, sampled_cloud, vp_2);/*viewer-addCoordinateSystem(1.0);viewer-initCameraParameters();*/while (!viewer-wasStopped()){viewer-spinOnce(100);} }int main(int argc, char** argv) {// -----------------------------读取点云数据---------------------------------pcl::PointCloudpcl::PointXYZ::Ptr cloud(new pcl::PointCloudpcl::PointXYZ);if (pcl::io::loadPCDFilepcl::PointXYZ(China dragon.pcd, *cloud) -1){PCL_ERROR(Couldnt read the PCD file!\n);return -1;}// -----------------------------索引空间采样---------------------------------pcl::PointCloudpcl::PointXYZ::Ptr sampled_cloud(new pcl::PointCloudpcl::PointXYZ); // 存储下采样后的点云// 设置采样步长int step_size 20; // 每隔十个点采样一个点// 索引空间采样for (size_t i 0; i cloud-size(); i step_size){sampled_cloud-points.push_back(cloud-points[i]); // 添加采样点}sampled_cloud-width sampled_cloud-points.size();sampled_cloud-height 1;sampled_cloud-is_dense true; // 确保点云是密集的// -----------------------------可视化原始点云和下采样后的点云---------------------------------visualizePointClouds(cloud, sampled_cloud);return 0; }三、实现效果
http://www.w-s-a.com/news/302937/

相关文章:

  • 获得网站所有关键字北京网站建设116net
  • 铜陵电子商务网站建设做龙之向导网站有用吗
  • 购物网站制作费用沧州新华区
  • 信宜网站设计公司在线购物商城系统
  • 网站维护是什么样如何制作网站教程视频讲解
  • 网站建设网络推广代理公司wordpress图片防盗链
  • 网站备案关站沈阳男科医院哪家好点
  • 王者荣耀网站建设的步骤网站页面用什么软件做
  • 典型网站开发的流程房屋装修效果图三室一厅
  • 制作微网站多少钱阿里巴巴做网站的电话号码
  • 风铃建站模板安卓手机软件开发外包
  • 深圳市住房和建设局门户网站域名转移影响网站访问吗
  • 做母婴网站赚钱汕头百姓网
  • 那个网站建设好动漫制作技术升本可以升什么专业
  • 网站建设企业响应式网站模板广西建设部投诉网站
  • app营销的特点wordpress优化方案
  • 静安网站建设公司如何编辑wordpress
  • 做网站的职位叫什么问题常州金坛网站建设
  • 保健品网站模板用jsp做的网站前后端交互
  • 网站带后台品牌网页设计图片
  • 保定清苑住房和城乡建设局网站分类信息网站程序
  • 可以做视频推广的网站选择大连网站建设
  • 在线网站开发网站在哪里
  • 建站的步骤上海快速优化排名
  • 招聘网站做一下要多少钱网站设计公司 国际
  • 巩义专业网站建设公司首选seo研究院
  • 大流量网站解决访问量友情链接如何添加
  • 教育网站建设网永康市住房和城乡建设局网站
  • 阿里巴巴官网网站django 做网站的代码
  • 网站建设 军报wordpress 订餐模板