pcl-三维点云库
pcl-三維點云庫
pcl::PointCloud的一些屬性值
- width(int)
two meanings:
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:
- points(std::vector)
Contains the data array where all the points of type PointT are stored.
- 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()
參考
http://www.pointclouds.org/documentation/tutorials/basic_structures.php#basic-structures
如何使用pcl庫
- CMakeLists.txt
We are requesting to find the PCL package at minimum version 1.3. We also says that it is REQUIRED meaning that cmake will fail gracefully if it can’t be found. As PCL is modular one can request:
only one component: find_package(PCL 1.3 REQUIRED COMPONENTS io) several: find_package(PCL 1.3 REQUIRED COMPONENTS io common) all existing: find_package(PCL 1.3 REQUIRED)注:為了方便,用的是全部模塊
find_package(PCL 1.7 REQUIRED)When PCL is found, several related variables are set:
PCL_FOUND: set to 1 if PCL is found, otherwise unset PCL_INCLUDE_DIRS: set to the paths to PCL installed headers and the dependency headers PCL_LIBRARIES: set to the file names of the built and installed PCL libraries PCL_LIBRARY_DIRS: set to the paths to where PCL libraries and 3rd party dependencies reside PCL_VERSION: the version of the found PCL PCL_COMPONENTS: lists all available components PCL_DEFINITIONS: lists the needed preprocessor definitions and compiler flags- Weird installations
CMake has a list of default searchable paths where it seeks for FindXXX.cmake or XXXConfig.cmake. If you happen to install in some non obvious repository (let us say in Documents for evils) then you can help cmake find PCLConfig.cmake adding this line:
before this one:
find_package(PCL 1.3 REQUIRED COMPONENTS common io)...參考
http://www.pointclouds.org/documentation/tutorials/using_pcl_pcl_config.php#using-pcl-pcl-config
轉載于:https://www.cnblogs.com/ChrisCoder/p/10083766.html
總結
- 上一篇: VUE引入阿里icon
- 下一篇: 12、OpenCV Python 图像梯