PointCloudLibrary / PointCloudLibrary/pcl

pcl_viewer needs a camera scale option

Open
#801 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status: stale
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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.