当前位置:网站首页>PCL common operations
PCL common operations
2022-07-27 13:52:00 【AICVer】
Copy point cloud
- Add points to the new point cloud
cloud->push_back(point); - Add by index
template <typename PointT> void copyPoints(const pcl::PointCloud<PointT> &cloud_in, const std::vector<int> &indices, pcl::PointCloud<PointT> &cloud_out) { if (indices.size() == cloud_in.points.size()) { cloud_out = cloud_in; return; } cloud_out.points.resize(indices.size()); cloud_out.header = cloud_in.header; cloud_out.width = static_cast<uint32_t>(indices.size()); cloud_out.height = 1; cloud_out.is_dense = cloud_in.is_dense; cloud_out.sensor_orientation_ = cloud_in.sensor_orientation_; cloud_out.sensor_origin_ = cloud_in.sensor_origin_; for (size_t i = 0; i < indices.size(); ++i) { cloud_out[i] = cloud_in[indices[i]]; } }
边栏推荐
猜你喜欢

字节跳动 AI Lab 总监李航:语言模型的过去、现在和未来

NoSQL —— NoSQL 三大理论基石 —— CAP —— BASE—— 最终一致性

【实习经验】Date工具类中添加自己实现的方法

leetcode——83,24; Machine learning - neural networks

Data enhancement in image processing

The finished product of wechat campus laundry applet graduation design (1) development outline

腾讯云联合中国工联院发布工业AI质检标准化研究成果加速制造业智能化转型

Figure 8 shows you how to configure SNMP

Intranet penetration based on FRP -- SSH Remote connection to intranet server with the help of public server

小程序毕设作品之微信校园洗衣小程序毕业设计成品(2)小程序功能
随机推荐
Egg swagger doc graphic verification code solution
Gray histogram
剑指Offer 07 重建二叉树 -- 从中序与后序遍历序列构造二叉树
小程序毕设作品之微信校园洗衣小程序毕业设计成品(8)毕业设计论文模板
English grammar_ Personal pronoun
redis集群搭建-使用docker快速搭建一个测试redis集群
Leetcode Tencent selected exercises 50 questions -059. Spiral matrix II
Meshlab farthest point sampling (FPS)
Gains and losses of desensitization project
Evconnlistener of libevent_ new_ bind
Tencent cloud and the China Federation of industry released the research results of industrial AI quality inspection standardization to accelerate the intelligent transformation of manufacturing indus
Redis cluster setup - use docker to quickly build a test redis cluster
English grammar_ Definite article the_ Small details
【C进阶】指针数组 VS 数组指针
Leetcode Tencent selected exercises 50 questions -054. spiral matrix
将目标检测大尺寸图片裁剪成固定尺寸图片
【LeetCode】592. 分数加减运算
The most complete collection of strategies! Super AI painting tool midjourney open beta! Come and build your fantasy metauniverse
【C语言入门】ZZULIOJ 1021-1025
[C Advanced] pointer array vs array pointer