Command line: how to rebuild RGB from scalar fields after filtering?
Posted: Fri Jan 30, 2026 8:08 am
Hi all again :-),
I’m following up on this thread about the new -FILTER -RGB -SF ... command introduced in CloudCompare v2.14 beta (thanks again for pointing me to it). I’m trying to build a fully automated pipeline.
My goal:
I want to reproduce this workflow from the GUI in a command-line pipeline:
1.Take a colored point cloud and convert RGB to scalar fields (R, G, B)
2.Apply Bilateral filter on each channel separately (R, then G, then B) as scalar fields
3. After filtering, rebuild RGB from the filtered scalar fields
4. Equivalent to GUI: Edit → Colors → From scalar fields (map filtered R/G/B back into RGB)
What I can do from CMD (works)
With v2.14 beta I can do these steps from the command line:
Load LAZ
-RGB_CONVERT_TO_SF
-SET_ACTIVE_SF ...
-FILTER -SF -BILATERAL ... (per channel)
So the filtering part is available now, which is great.
Where I hit limits / what seems missing
I’m currently stuck on the “SF → RGB” part (step 3–4 above), i.e. the CLI equivalent of: (Edit → Colors → From scalar fields)...
So i want to ask...
Is there currently any CLI command that replicates “Colors → From scalar fields”?
(Map 3 scalar fields back into RGB, optionally with clamping/scaling.)
If not, is this functionality planned to be exposed in the CLI (since the GUI feature exists)?
Any guidance on the best way to implement this pipeline would be really appreciated.
Thanks a lot!
Radim
I’m following up on this thread about the new -FILTER -RGB -SF ... command introduced in CloudCompare v2.14 beta (thanks again for pointing me to it). I’m trying to build a fully automated pipeline.
My goal:
I want to reproduce this workflow from the GUI in a command-line pipeline:
1.Take a colored point cloud and convert RGB to scalar fields (R, G, B)
2.Apply Bilateral filter on each channel separately (R, then G, then B) as scalar fields
3. After filtering, rebuild RGB from the filtered scalar fields
4. Equivalent to GUI: Edit → Colors → From scalar fields (map filtered R/G/B back into RGB)
What I can do from CMD (works)
With v2.14 beta I can do these steps from the command line:
Load LAZ
-RGB_CONVERT_TO_SF
-SET_ACTIVE_SF ...
-FILTER -SF -BILATERAL ... (per channel)
So the filtering part is available now, which is great.
Where I hit limits / what seems missing
I’m currently stuck on the “SF → RGB” part (step 3–4 above), i.e. the CLI equivalent of: (Edit → Colors → From scalar fields)...
So i want to ask...
Is there currently any CLI command that replicates “Colors → From scalar fields”?
(Map 3 scalar fields back into RGB, optionally with clamping/scaling.)
If not, is this functionality planned to be exposed in the CLI (since the GUI feature exists)?
Any guidance on the best way to implement this pipeline would be really appreciated.
Thanks a lot!
Radim