Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pcl_viewer lookup table does not display correct colors when using random or label field. #1158

Open
mschoeler opened this issue Feb 20, 2015 · 4 comments

Comments

@mschoeler
Copy link
Contributor

Using a random color for the pointcloud display or the label field together with display lookup table (pressing u in the viewer) gives a colorbar, which has meaningless colors for the label field. It would be very nice if the colorbar shows the right color per label. I tried to work on that, but I'm not familiar with the pcl_visualizer and pcl_viewer code. So I just could not find the place which needs to be changed.
However the numbers displayed on the bottom are the ones which are returned for minmax in the function call scalars->GetRange (minmax) pcl_visualizer.cpp line 2640
Attached is a screenshot showing this for a labeled pointcloud (labels 0-3).
lookup_label_field

@taketwo taketwo added the changelog: enhancement Meta-information for changelog generation label Feb 25, 2015
@taketwo
Copy link
Member

taketwo commented Feb 25, 2015

I think this would be a nice enhancement of the viewer. Although I'm also not very familiar with the code base, so can't help on this.

@VictorLamoine
Copy link
Contributor

Can you give an example code of a point cloud with labels? I don't know what these are.
pcd and/or cpp

@mschoeler
Copy link
Contributor Author

Sure, I uploaded two pcd-files from the COSEG segmetation benchmark, were I sampled points on the faces of the polygonal model.
Here's the link:
https://www.dropbox.com/sh/eo32sqh11z4rk2p/AAAQl86Q1COrSdHO2LNUy95ta?dl=0
Let me know if you need more or different files.
Cheers,
Markus

@taketwo taketwo removed the changelog: enhancement Meta-information for changelog generation label Feb 22, 2020
@stale
Copy link

stale bot commented May 19, 2020

Marking this as stale due to 30 days of inactivity. It will be closed in 7 days if no further activity occurs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants