Colouring point cloud

110 views
Skip to first unread message

Susana Gonzalez

unread,
Nov 16, 2021, 3:39:48 AM11/16/21
to last...@googlegroups.com

Hi there,

 

I would like to colour point clouds using only one line of code…. It’s not a major thing but it would make my processing faster.

 

At the moment I am running these two lines:

 

C:\LAStools\bin\las2las.exe -i V:\Project\Trees\Plot1_0000001.laz -set_version 1.3 -set_point_type 3 -o V:\Project\Trees_v1_3\Plot1_0000001.laz

C:\LAStools\bin\las2las.exe -i V:\Project\Trees_v1_3\Plot1_0000001.laz  -drop_class 1 7 -set_RGB 205 92 92 -o V:\Project\Coloured_Tree\Plot1_0000001.laz

 

And I would like to run:

C:\LAStools\bin\las2las.exe -i V:\Project\Trees\Plot1_0000001.laz -set_version 1.3 -set_point_type 3 -drop_class 1 7 -set_RGB 205 92 92 -o V:\Project\Coloured_Tree\Plot1_0000001.laz

 

Thanks

Susana

 

Susana Gonzalez - Forest Engineer, LiDAR Science

 

Interpine Group Ltd

Mobile:      021 026 49733   DDI:  +64 7 350 3209 or Australia +61 2 80113645
Skype:        sugonar

Address:   99 Sala Street, PO Box 1209, Rotorua 3010, New Zealand
Website:  
www.interpine.co.nz

 

Interpine Innovation is Shaping Today’s Forests with the Technology of Tomorrow

He rangahau tenei ra he hangarau apopo

 

Support at rapidlasso

unread,
Nov 18, 2021, 8:46:55 AM11/18/21
to LAStools - efficient tools for LiDAR processing
Hi Susana,
thanks for your suggestion to improve the LAStools.
The problem in this case is:
If you load a file in a LAS point format that does not contain RGB values the point transformer "set_RGB" is triggered, but when we copy this point to the target format the RGB value will not be copied - because the format does not support RGB.
Therfore you need actual 2 steps:
First push the points to a RGB level, then assign the color.

I could handle this as a bug - and shift the point to a RGB level as soon, as a RGB value is assigned to a point.
But this change could have 2 side effects:
First, the performance will (very slightly) decrease.
Second, there is a theoretically incompatibility with current workflows.

Therefore I just add is as new, optional feature.
The switch
-force_RGB
will force the RGB assignment, even if there is no RGB in the current point format.

In your case the call would be:
las2las -i V:\Project\Trees\Plot1_0000001.laz -set_version 1.3 -set_point_type 3 -drop_class 1 7 -set_RGB 205 92 92 -force_RGB -o V:\Project\Coloured_Tree\Plot1_0000001.laz

I place a beta version of this at

Please check if this solution works as expected.
If you confirm I will commit this to the official repo and to the next version.

Other beta testers are also welcome to check this and give a comment.

Best regards,

Jochen

Susana Gonzalez

unread,
Nov 19, 2021, 1:09:07 AM11/19/21
to LAStools - efficient tools for LiDAR processing
Hi Jochen,

It works great, thanks a lot.

Regards
Susana


From: last...@googlegroups.com <last...@googlegroups.com> on behalf of Support at rapidlasso <sup...@rapidlasso.de>
Sent: Friday, 19 November 2021 2:46 am
To: LAStools - efficient tools for LiDAR processing <last...@googlegroups.com>
Subject: [LAStools] Re: Colouring point cloud
 

[EXTERNAL]

--
Download LAStools at
http://lastools.org
https://rapidlasso.de
Manage your settings at
http://groups.google.com/group/lastools/subscribe
---
You received this message because you are subscribed to the Google Groups "LAStools - efficient tools for LiDAR processing" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lastools+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lastools/cd530e40-520c-4864-8ea6-430280022f73n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages