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

怎样自建网站seo教程技术整站优化

怎样自建网站,seo教程技术整站优化,粉色的网站,学做网站论坛会员账号最近研究了下用pcl读取点云数据,又做了个C#的dll,方便读取,同样这个dll基于pcl 最新版本1.13.1版本开发。 上次做的需要先得到点云长度,再获取数据。这次这个定义了一个PointCloudXYZ类来存数据。将下面的dll拷贝到可执行目录下&a…

        最近研究了下用pcl读取点云数据,又做了个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.tj-hxxt.cn/news/111861.html

相关文章:

  • 南昌市建设工程质量监督网站百度关键词是怎么排名靠前
  • h5case是什么网站百度网络推广营销
  • 真人性做爰网站百度推广登录后台登录入口
  • 没有网站怎么推广站内seo的技巧
  • 国内视差网站佛山网站建设模板
  • 门户网站宣传方案seo排名赚能赚钱吗
  • 福州做网站的公司成年学校培训班
  • app制作网站制作完b站推广
  • 网站建设工作经历如何让自己的网站快速被百度收录
  • 网站开发论文题目审核表指数基金
  • 如何在网上推广农产品文明seo
  • wordpress域名网站搬家电商网络销售是做什么
  • 网站运营一般做那些分析网站换了域名怎么查
  • 网站建设平台一般多少钱网络推广工作
  • 货代去什么网站开发客户什么网站可以免费推广
  • 网站建设中的网页布局主要内容简单制作html静态网页
  • 一个域名一个ip做多个网站网站建设哪家好
  • 做婚纱摄影网站价格网站怎么打开
  • 创世网站建设公司今日头条军事新闻
  • 网站上线倒计时html5模板个人网站推广
  • 个人网站免费制作江苏企业seo推广
  • 哈尔滨网络科技公司哪家好百度seo排名优化软件分类
  • 做护肤的网站有哪些2022拉人头最暴利的app
  • 学做网站学什么语言app下载
  • 免费注册企业网站站外推广
  • 网站建设劳务合同seo知识是什么意思
  • 无锡网站建设推广seo 论坛
  • 做哪些网站不受法律保护重庆seo顾问
  • 公司想做一个网站首页怎么做网络营销做的比较好的企业
  • 哪种语言的网站 做seo更好网络营销模式