lascolor - False color NIR-RED-GREEN

144 views
Skip to first unread message

Manu Jurado

unread,
Jan 14, 2021, 12:36:25 PM1/14/21
to LAStools - efficient tools for LiDAR processing
Hello, 

I would like to color my point cloud with the following band configuration: 

NIR - RED - GREEN 

Might be the case that I want it in NIR - BLUE - GREEN as well. But the question is the same. 

I am wondering if I can do it with lascolor and the following inputs: 
  • 4 BAND TIF (RGB-NIR)
  • LAS 1.2 format point cloud
Of course, in my workflow I would like to skip as many steps as possible, but maybe I need to transform my point cloud to 1.4 first (?). 

The result, should be a 3 BAND (NIR-R-G)  colorized point cloud (I do not want a 4 band RGB-NIR colorized cloud) where I suppose in R is stored the NIR band, in G the red band and in B the green band.

Does anyone know how I can do it with lastools? 

Cheers
Manuel Jurado

Martin Isenburg

unread,
Jan 14, 2021, 3:24:54 PM1/14/21
to LAStools - efficient command line tools for LIDAR processing
Hello Manuel,

can you prepare a small example and send me a link (not an attachment)? One small LiDAR file in LAZ format plus a corresponding TIF for the area?

Thank you!

Martin

--
Download LAStools at
http://lastools.org
http://rapidlasso.com
Be social with LAStools at
http://facebook.com/LAStools
http://twitter.com/LAStools
http://linkedin.com/groups/LAStools-4408378
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/42e3012b-a452-4a8b-9932-c6e83633a747n%40googlegroups.com.

Manu Jurado

unread,
Jan 15, 2021, 11:21:46 AM1/15/21
to LAStools - efficient tools for LiDAR processing
Thank you Martin, 

Find both TIF+TFW (4BAND RGB-NIR) and LAZ on this link: https://we.tl/t-m6j8g5VDk4

NIR band is a little bit dark (average low values due to camera), don't worry too much about that. 

I have tiled/croped the TIF with the same SHP as I tiled the LAZ. I have two more questions: 
  • Does the TIF necessary need to be tiled as the LAZ file? Can the TIF file be bigger in area and also >5 GB? Is there any size limit for lascolor?
  • Can the imported TIF file contain a 5th band (alpha channel) for lascolor?

Cheers
Manu

Martin Isenburg

unread,
Jan 18, 2021, 8:58:23 AM1/18/21
to LAStools - efficient command line tools for LIDAR processing
Hello,

I've added support for this to lascolor in this new version:

https://www.dropbox.com/s/ct2psumsycp9jju/lascolor.exe

It's not extensively tested (I let you do that ... (-: ... please report back) but this it how it should work:

lascolor ^
-i heli\LAZ\TEST_1.laz ^
-image heli\FOTO\FOTO_TEST_1.tif ^
-band_into_red 3 ^
-band_into_green 0 ^
-band_into_blue 1 ^
-odix _col -olaz 

The result looks cute in lasview:

lasview -i heli\LAZ\TEST_1_col.laz

Other options are

-band_into_nir 3 ^
-band_into_intensity 2 ^

Regards,

Martin

210118_lascolor_lasview.jpg

Manu Jurado

unread,
Jan 25, 2021, 12:31:50 PM1/25/21
to LAStools - efficient tools for LiDAR processing
Hi Martin, 

A couple of days ago I did try the new command and it worked. But today, while doing the same, this erros comes up: 

lascolor -cpu64 -i "E:\LAStools\bin\Prueba_LASCOLOR\LASTOOLS\LAZ\TEST_1.laz" -image "E:\LAStools\bin\Prueba_LASCOLOR\LASTOOLS\FOTO\FOTO_TEST_1.tif" -band_into_red 3 -band_into_green 0 -band_into_blue 1 -olaz
ERROR: cannot understand argument '-band_into_red'

I don't know whay I am doing badly or what it has changed. 
Cheers
Manuel


Martin Isenburg

unread,
Jan 25, 2021, 1:20:10 PM1/25/21
to LAStools - efficient command line tools for LIDAR processing
Hello,

drop the '-cpu64' from your command line which will start the lascolor64.exe that was not yet updated.

Regards,

Martin

Manu Jurado

unread,
Jan 26, 2021, 5:25:38 AM1/26/21
to LAStools - efficient tools for LiDAR processing
Thanks Martin. 

Last thing:

-band_into_red 3 -band_into_green 0 -band_into_blue 1  actually does NIR - G - R 

so I switched 0 and 1 values

-band_into_red 3 -band_into_green 1 -band_into_blue 0 and now is doing NIR - R - G which it is what I expected. Seems like "into_blue" and "into_green" are swapped

Cheers
Manu

Martin Isenburg

unread,
Jan 27, 2021, 9:32:57 AM1/27/21
to LAStools - efficient command line tools for LIDAR processing
Hello,

thanks for the bug report. This is fixed. And also added as "multi-band" options to the GUI in this version:

https://www.dropbox.com/s/ct2psumsycp9jju/lascolor.exe

Regards,

Martin

Reply all
Reply to author
Forward
0 new messages