PointCloudLibrary / PointCloudLibrary/pcl
pcl_viewer needs a camera scale option
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 11.1k
- Forks
- 4.7k
- Avg merge
- 4d 10h
- Merged PRs (30d)
- 6
Description
I have a point cloud taken from very, very close, such that the distance between points is on the order of 1E-5. Unfortunately, when I try to view it in pcl_viewer, it shows up as what appears to be a single point.
I can partially address this by changing between perspective and parallel projection and then very carefully zooming in on it. But eventually I get to a point where the camera motion is too big to properly center it for additional zooming.
It seems like the appropriate fix is to scale the vtkCamera. Unfortunately, I can't figure out where the code for events in pcl_viewer is even located (I spent an hour looking for it last week and no luck).
If someone could point me in the right direction, I may be able to add this option. Or if the option already exists, let me know so I can document it. =)
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
The issue identifies pcl_viewer and vtkCamera but no source file or test. Start by tracing pcl_viewer’s camera-event handling and checking whether an existing projection or zoom option covers this case. Done means defining and documenting a camera scale option that lets very close point clouds be centered and viewed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- cli, computer-vision
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100