Comments (4)
One way could be to load the file as a pcl::PCLPointCloud2
instead, check its fields
attribute, then convert to pcl::PointCloud<pcl::PointXYZ>
. See:
https://github.com/PointCloudLibrary/pcl/blob/master/io/include/pcl/io/pcd_io.h#L279
https://pointclouds.org/documentation/structpcl_1_1_p_c_l_point_cloud2.html
from pcl.
I think that the memory structures of PointCloud2 and PointXYZ are different, and the conversion will cause unnecessary time consumption. It may be better to provide an additional tool function.
from pcl.
The conversion happens anyway. If you load the file into a pcl::PointCloud<pcl::PointXYZ
, the conversion just happens internally in PCDReader
(see the first link I provided). What I described does not cause any additional time consumption, it only gives you access to the intermediate pcl::PCLPointCloud2
.
from pcl.
get
from pcl.
Related Issues (20)
- Remove deprecated code for the 1.15.0 release HOT 3
- [icp] pcl::IterativeClosestPoint crash when encountering an invalid point in debug mode HOT 5
- [CorrespondenceEstimation] There may be something wrong with the annotation HOT 2
- [compile error] undefined reference to boost::filesystem HOT 3
- [pcl::normal] Why pcl::normal is designed to use 32 bytes? HOT 3
- [features] Fix ShapeContext3DEstimation
- [filters] Make `UniformSampling` inherit from `FilterIndices` instead of `Filter` HOT 1
- [compile with cuda] cmake cannot find cuda HOT 5
- [gpu::NormalEstimation] Error:out of memory HOT 6
- Within a new project, this compile process has a bug in two header files (type_traits.h and point_struct_traits.h). HOT 4
- [registration] icp with TransformationEstimationPointToPlane can not give right result. HOT 7
- [Registration] "Add new rigid & non-rigid registration algorithms" HOT 8
- [FPCSInitialAlignment] The output aligned point cloud is unstable HOT 10
- [registration] It might be better to reorganize the inheritance relationship. HOT 3
- The implementation of the 'computePairFeatures' function in pfh_tools.h was not found. HOT 2
- Docker Build Failing HOT 2
- Some of the PCL DLLs cannot be integrated into the project's final DLL. HOT 2
- I would like to understand the role of the parameter 'row' in the function computePointSPFHSignature() HOT 1
- This piece of code seems to be ineffective. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pcl.