Color\Convert to scalar field

If you are allergic to bug trackers, you can post here any remarks, issues and potential bugs you encounter
Post Reply
Haowyr
Posts: 48
Joined: Wed Feb 11, 2015 11:01 am

Color\Convert to scalar field

Post by Haowyr »

Hello Daniel and others :)

I have issues with the function Color\Convert to scalar field.
I have a colored point cloud with RGB values, which can be seen in CC normally, then when I use the function to filter points based on their color, the generated SFs are "empty" in the properties window (all set at 0), YET when I use the tool to pick a point, Both RGB and the scalar fields are not empty and give normal values. Is there anything wrong here or just anything I didn't get about the function?

Thanks in advance ;)
daniel
Site Admin
Posts: 7713
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Color\Convert to scalar field

Post by daniel »

Oh it's a bug from the 2.6.2 version I believe. Have you tried the 2.6.3 beta?
Daniel, CloudCompare admin
Haowyr
Posts: 48
Joined: Wed Feb 11, 2015 11:01 am

Re: Color\Convert to scalar field

Post by Haowyr »

Now I have, it works perfectly ;)
duff138
Posts: 1
Joined: Fri Apr 22, 2016 12:27 pm

Re: Color\Convert to scalar field

Post by duff138 »

downloaded beta version.

Anyone have a set by step tutorial on how to extract by RGB. I am trying to isolate the Green, but after following a few of the posts here I still can not seem to get it to do what I want.
daniel
Site Admin
Posts: 7713
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Color\Convert to scalar field

Post by daniel »

It depends on your data but it should look like this:
- convert the RGB colors to scalar fields (R, G and B)
- activate the G(reen) scalar field
- use the interactive SF editor (in the properties dialog) to find the right threshold value
- then use the 'Edit > SF > Filter by value' to keep the points with (green) values above this threshold (I bet something like [150 ; 255])
- then switch to the resulting cloud and activate the R(ed) scalar field
- remove the points that have too much red
- and same thing with the B(lue) scalar field

It should be possible to do this in one shot but let's start slowly ;)
Daniel, CloudCompare admin
Post Reply