Page 1 of 2

select / delete points by color

Posted: Sat Dec 06, 2014 1:52 pm
by patman27
Hello,

is it possible to select and delete points with a specific color, e.g. if you want to erase all white points of your point cloud?

Thanks,
Patrick

Re: select / delete points by color

Posted: Sat Dec 06, 2014 7:25 pm
by daniel
You can convert RGB colors to one or several scalar fields (with Edit > Colors > Convert to SF). You can choose to export each component (R, G, or B) or the mean value ((R+G+B)/3) as a separate scalar field.

Then you'll be able to segment the points based on the SF values (Edit > Scalar fields > Filter by value). If you only want to remove white points, you can directly work with the composite SF.

Re: select / delete points by color

Posted: Sun Dec 07, 2014 10:39 am
by patman27
Ok thank you this solves my problem :)

Re: select / delete points by color

Posted: Fri Jan 16, 2015 9:06 am
by Matthieu
thank you a lot daniel,
it solves my problem :)

Re: select / delete points by color

Posted: Thu Apr 14, 2016 1:10 pm
by jochemla
Hi daniel,

What if I would like to select green points RGB = (0, 255, 0) ?
The ideal would be to allow setting a custom scalar field from RGB values. For example, I could set X = 2^16 x R + 2^8 x G + B and find points where X=000000001111111100000000 in binary.

Would that be possible ?

Thanks a lot,

Jonathan

Re: select / delete points by color

Posted: Sun Apr 24, 2016 7:11 pm
by daniel
Oups this message was lost in the moderation queue :D.

For the records: https://github.com/cloudcompare/trunk/issues/363

Re: select / delete points by color

Posted: Sun Jan 15, 2017 12:41 pm
by cosmocompare
Hi, The option Edit>Colors>Convert to Scalar Field is greyed out and not selectable, it's for a RGB scalar field that was generated using Tools>Sandbox>Distance Map...

What is missing from the RGB distance map to let it be selectable by RGB values?

Re: select / delete points by color

Posted: Sun Jan 15, 2017 1:46 pm
by daniel
Make sure the map is selected (and the original cloud, as this one remains selected after the tool has finished).

Re: select / delete points by color

Posted: Tue Jun 08, 2021 2:53 am
by LeeFluff
Edit> colours> Convert to scalar field
check boxes to enable all channels
Properties... Scalar Field Colours... scalar Fields dropdown active to select which channel

to get a specific R G B value.... you would have to first filter to the correct Red value...
Properties... SF Display Params ... Display Ranges... and use the sliders or enter number specifically

Edit> scalar fileds> filter by value, then Split

then change the scalar over to the next Green.... then filter...
and finally repeat for the last B field and filter.

This may be cumbersome... but if you actually know the RGB value in terms of 255:255:255, then you could do this.
you could probably use a tool like this to find the specific colour you intend to select for

https://www.ginifab.com/feeds/pms/color ... _image.php

Re: select / delete points by color

Posted: Tue Jun 08, 2021 5:02 pm
by WargodHernandez
We have the colorimetric segmenter for this now
colorPlugin.JPG
colorPlugin.JPG (66.49 KiB) Viewed 13119 times
colorimetricSegmenter.JPG
colorimetricSegmenter.JPG (80.98 KiB) Viewed 13119 times