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

广州市住房住建局网站wordpress 邮箱插件

广州市住房住建局网站,wordpress 邮箱插件,互联网网站建设,江苏网站推广最近研究了下用pcl读取点云数据#xff0c;又做了个C#的dll#xff0c;方便读取#xff0c;同样这个dll基于pcl 最新版本1.13.1版本开发。 上次做的需要先得到点云长度#xff0c;再获取数据。这次这个定义了一个PointCloudXYZ类来存数据。将下面的dll拷贝到可执行目录下又做了个C#的dll方便读取同样这个dll基于pcl 最新版本1.13.1版本开发。 上次做的需要先得到点云长度再获取数据。这次这个定义了一个PointCloudXYZ类来存数据。将下面的dll拷贝到可执行目录下引用Q_PclSharp.dll使用 Dll下载链接 链接https://pan.baidu.com/s/1H7ig8YXJDTscprVDydjuJA  提取码6xha 具体使用方法 1. 引用Q_PclSharp.dll 并使用命名空间 using Q_PclSharp; 2. PointCloudXYZ cloudXYZ new PointCloudXYZ(); 3.  IO.loadPlyFile(filePath, cloud.PointCloudXYZPointer); 装个VTK把读到的数据显示出来 测试效果 测试代码 using Kitware.VTK; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using Q_PclSharp;namespace TestCSdll {public partial class Form1 : Form{PointCloudXYZ cloud new PointCloudXYZ();public Form1(){InitializeComponent();}private void button1_Click(object sender, EventArgs e){OpenFileDialog ofd new OpenFileDialog();if (ofd.ShowDialog() DialogResult.OK){ cloud.Clear();IO.loadPlyFile(ofd.FileName, cloud.PointCloudXYZPointer);vtkPoints points vtkPoints.New();for (int i 0; i cloud.Size; i){points.InsertNextPoint(cloud.GetX(i), cloud.GetY(i), cloud.GetZ(i));}vtkUnsignedCharArray colors_rgb GetRGB(cloud);vtkPolyData polydata vtkPolyData.New();polydata.SetPoints(points);polydata.GetPointData().SetScalars(colors_rgb);vtkVertexGlyphFilter glyphFilter vtkVertexGlyphFilter.New();glyphFilter.SetInputConnection(polydata.GetProducerPort());vtkPolyDataMapper mapper vtkPolyDataMapper.New();mapper.SetInputConnection(glyphFilter.GetOutputPort());vtkActor actor vtkActor.New();actor.SetMapper(mapper);vtkRenderer render renderWindowControl1.RenderWindow.GetRenderers().GetFirstRenderer();for (int i 0; i render.GetActors().GetNumberOfItems(); i){var item render.GetActors().GetItemAsObject(i);render.RemoveActor((vtkActor)item);item.Dispose();}render.AddActor(actor);render.ResetCamera();this.Refresh();}}vtkUnsignedCharArray GetRGB(PointCloudXYZ cloud){vtkUnsignedCharArray colors_rgb vtkUnsignedCharArray.New();double[] minmax new double[6];cloud.GetMinMaxXYZ(minmax);double z minmax[5] - minmax[4];double z_median z / 2;colors_rgb.SetNumberOfComponents(3);double r 0, g 0, b 0;for (int i 0; i cloud.Size; i){ if ((cloud.GetZ(i) - minmax[4]) z_median){ r (255 * ((cloud.GetZ(i) - minmax[4] - z_median) / z_median)); ;g (255 * (1 - ((cloud.GetZ(i) - minmax[4] - z_median) / z_median)));b 0;colors_rgb.InsertNextTuple3(r, g, b);}else{r 0;g (255 * ((cloud.GetZ(i) - minmax[4]) / z_median));b (255 * (1 - ((cloud.GetZ(i) - minmax[4]) / z_median)));colors_rgb.InsertNextTuple3(r, g, b);}}return colors_rgb;}} }
http://www.hkea.cn/news/14334517/

相关文章:

  • 海南微信网站制作平台c 做网站网站
  • 网站轮换图网页网站公司如何做备份
  • 健身网站设计模板下载微课做动画的网站
  • 做网站用什么浏览器好做网站制作挣钱吗
  • 网站建设实训心得做网站买什么品牌笔记本好
  • 网站开发外包杭州的服装网站建设
  • 网站在线配色wordpress环境搭建
  • 云服务器建设网站海尔集团网站建设
  • wap手机网站建设物流公司电话
  • 西安网站设计哪家公司好有没有做网站的
  • 网站建设临沂免费创建网站教程
  • 公司对网站排名如何做绩效知名网站建设公司电话
  • 网站上传该怎么做wordpress做大型网站
  • wordpress网站被拒登找人做仿网站
  • 能看的网站图片站 wordpress
  • 长沙网站开发推荐佛山市企业网站seo联系方式
  • 做网站公司(深圳信科)郑州商城网站开发
  • 网站需要服务器网站类型定位分析
  • 时间管理系统 网站开发工程公司有哪些
  • 做网站月入1000网站背景图
  • 重庆建网站方法建设网站对公司起什么作用是什么
  • 天津建设网官方网站视频编辑sdk
  • 知名排版网站app推广策略
  • 3g版网站制作搭建wordpress需要php环境吗
  • 网站建设服务器百度云免费制作图片带字软件
  • 网站建设公司海报网站后台为什么传不上图片
  • 收到短信说备案被退回但工信部网站上正常啊怎么做服务器网站
  • 深圳蕾奥规划设计公司网站网页版梦幻西游好玩吗
  • 湖南网站建设欧黎明wordpress微信登录调用
  • 网站原型设计和版式设计沈阳网站建设活动方案