pcl之basic usage

pcl之basic usage

  • width(int)
    two meanings:
  1. it can specify the total number of points in the cloud for unorganized point cloud datasets;
  2. it can specify the width (total number of points in a row) of an organized point cloud dataset.

    The advantages of an organized dataset is that by knowing the relationship between adjacent points (e.g. pixels), nearest neighbor operations are much more efficient, thus speeding up the computation and lowering the costs of certain algorithms in PCL.

cloud.width = 640; // there are 640 points per line
  • height(int)
    two meanings:
  1. it can specify the height (total number of rows) of an organized point cloud dataset;
  2. it is set to 1 for unorganized datasets (thus used to check whether a dataset is organized or not).
cloud1.width = 640; // Image-like organized structure, with 480 rows and 640 columns,
cloud1.height = 480; // thus 640*480=307200 points total in the dataset

cloud2.width = 307200;
cloud2.height = 1; // unorganized point cloud dataset with 307200 points
  • points(std::vector)
    Contains the data array where all the points of type PointT are stored.
pcl::PointCloud<pcl::PointXYZ> cloud;
std::vector<pcl::PointXYZ> data = cloud.points;  
  • is_dense(bool)
    Specifies if all the data in points is finite (true), or whether the XYZ values of certain points might contain Inf/NaN values (false).
  • isOrganized()
if (!cloud.isOrganized ())
// do something

参考

http://www.pointclouds.org/documentation/tutorials/basic_structures.php#basic-structures

原文地址:https://www.cnblogs.com/ChrisCoder/p/9986357.html

时间: 2024-10-14 16:04:47

pcl之basic usage的相关文章

github basic usage

1. create a new accout, create orginazation, create repo 2. install git in your local pc Note: you can create ssh key to avoid username/password input for github operation https://help.github.com/articles/generating-ssh-keys https://help.github.com/a

something about basic usage of vector,queue

1.for a two dimension vector, we must assign at least the first dimension of the vector 2.each dimension of an inner vector can be different 3.if you don't want to set a volume for vector<vector<int> > for uncertainness, you can just use a met

STATES TUTORIAL, PART 1 - BASIC USAGE(第二部分)

STATES TUTORIAL, PART 1 - BASIC USAGE(第二部分) SETTING UP THE SALT STATE TREE在master设置file_roots 示例: 1 file_roots: 2 base: 3 - /srv/salt 重启master pkill salt-master salt-master -d PREPARING THE TOP FILE 配置top入口文件 1 base: 2 '*': 3 - webserver 说明:top文件可以起到

3.0 Basic Usage of Class

Well, this week I tried to use some class things. Following are parts of my exercising codes. Definig my class named Time //note that cnt is a static member of this class to count the number of //instances created. Constructors & Overloading //as you

lua basic usage

#pragma comment (lib, "lua5.1.lib") #include <conio.h> extern "C"{ #include "lua.h" #include "lualib.h" #include "lauxlib.h" } int main() { // Create and start our environment lua_State *EnvOne = lua

Basic Tutorials of Redis(6) - List

Redis's List is different from C#'s List,but similar with C#'s LinkedList.Sometimes I confuse with them.I expect that you won't mix them and have a clear mind of them. There are 17 commands we can use in List. Push and pop are the base opreation of t

YTKNetwork Basic Guide YTKNetwork基本指导 及用法

YTKNetwork Basic Guide  :YTKNetwork基本指导 In the article, we will introduce the basic usage of YTKNetwork.  在这篇文章中,我们将介绍YTKNetwork的基本用法. YTKNetwork's basic composition   YTKNetwork的基本组成 YTKNetwork mainly contains the following classes:  YTKNetwork主要包含以

五分钟上手Git

团队开发中.遵循一个合理.清晰的Git使用流程.是非常重要的.否则,每一个人都提交一堆杂乱无章的commit,项目非常快就会变得难以协调和维护.以下是ThoughtBot 的Git使用规范流程.我从中学到了非常多,推荐你也这样使用Git. 第一步:新建分支 首先,每次开发新功能,都应该新建一个单独的分支(这方面能够參考<Git分支管理策略>). # 获取主干最新代码 $ git checkout master $ git pull # 新建一个开发分支myfeature $ git check

【狂人小白】轻量级验证框架 Validation.FO 的入门与使用

Validation.FO 使用指南 框架说明 这是一个验证框架,并且是一个 独立的验证框架 ,不依赖与其他已有的框架: 可以自由的嵌入到其他框架,比如Spring.Struts等流行框架,但实质来说他是独立的,所以无所谓嵌入到哪里,如果需要在GUI桌面应用中,也是完美的: 配置简单,可自由扩展验证器,实际只要实现IValidator接口,以及在rules.fo.xml中添加相关的配置即可: 支持Spring接口 使用过程中,你会感觉好像只用了 IValidateService.validate