PointCloudLibrary / PointCloudLibrary/pcl
PLYReader::readHeader reads whole point cloud
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 11.1k
- Forks
- 4.7k
- Avg merge
- 4d 10h
- Merged PRs (30d)
- 6
Description
Hi all,
I noticed that PLYReader::readHeader() reads the whole point cloud, instead of reading only the header.
First of all, PLYReader::readHeader() basically calls PLYReader::parse().
If you look into PLYReader::parse() (ply_io.cpp line 520), you will notice, that all callbacks are set, leading to loading all elements and properties of the .ply file.
I think PLYReader::readHeader() should only read the header and not all the points.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in ply_io.cpp around line 520 and inspect PLYReader::readHeader(), which calls PLYReader::parse(). Trace the callbacks configured by parse() and confirm which ones load elements and properties. Done means readHeader() processes only the PLY header without reading the point cloud; no test file is mentioned in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- computer-vision
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 42/100