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

Accessing rgb color for point clouds #15

Open
abaldacci opened this issue Jan 3, 2022 · 6 comments
Open

Accessing rgb color for point clouds #15

abaldacci opened this issue Jan 3, 2022 · 6 comments

Comments

@abaldacci
Copy link

Hi,

is it possible to access and modify the vertex colors stored in a point cloud file through the python API? I cant see a method to do it.

Thanks

Andrea

@prascle
Copy link
Collaborator

prascle commented Jan 3, 2022

Hello,
I haven't put anything in the interface to process colors yet. I can add some functions, can you specify what you want (what functions of the CloudCompare GUI do you use?). You probably need the functions in the edit/colors menu, but you may be using other functions that I can't think of, or don't know about!
I will try to add what is missing in the next version.
Regards,
Paul

@lmweidner
Copy link

Hi Paul, I'm also interested in being able to process colors. The main reason is, I want to access them in nearest neighbor calculations (along with other scalar fields) to calculate the mean/stdev of color channels (or a scalar field) within a radius. This is something that the main CloudCompare GUI currently doesn't do as far as I know. So a function to convert colors to scalar fields would be useful for one.

I'm still trying to figure out a way to access scalar field values associated with nearest neighbor outputs (not just the point coordinates), but hopefully this is possible.

@abaldacci
Copy link
Author

Hi,

for my use case would be enough to be able to access the colors and modify them possibily by converting them from/to numpy arrays like it is implemented now for coordinates.

Best,

Andrea

@prascle
Copy link
Collaborator

prascle commented Jan 5, 2022

Hi,
I started to look at the color implementation in CloudCompare, there is a huge amount of functions, I will add some of them in CloudComPy and look at the conversions between colors, scalar fields and Numpy arrays. Hopefully I'll have something for you in the next release (next week?).
Paul

@abaldacci
Copy link
Author

Thanks!

@prascle
Copy link
Collaborator

prascle commented Jan 18, 2022

I have published a new release, see https://www.simulation.openfields.fr/
Paul

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

No branches or pull requests

3 participants