PointCloudLibrary / PointCloudLibrary/pcl

PLYReader::readHeader reads whole point cloud

Open
#1,583 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

kind: todo module: io
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.