lascolor assigning 255/65535 to both min and max RGB values

106 views
Skip to first unread message

Michael Hodge

unread,
Sep 21, 2017, 8:50:20 AM9/21/17
to LAStools - efficient tools for LiDAR processing
Hi there,

I've been trying to assign RGB values to a las point cloud using lascolor; however, I keep on getting RGB values of 255/65535 (depending on if I use -dont_scale_rgb_up).

I am using the following code through wine (as I am using MacOS):

wine lascolor -i input.las -image input.tif -o /output.las -dont_scale_rgb_up

The input.las and input.tif are georeferenced correctly (UTM).

Running this I get the following warnings:

WARNING: image has 4 bands

WARNING (SRreader_tif): r_count is 0 but nrows (14651) * ncols (9419) is 137997769

WARNING: unlicensed. over 3 million points. output slightly distorted.

         tiny xyz noise. points permuted. intensity, gps_time, user_data

         and point_source_ID zeroed.


Running lasinfo:


wine las2txt -parse xyzticRGB -i /Users/michaelhodge/Downloads/test_color.las -stdout


I get:


669034.43 8403239.99 608.87 0.000000 0 0 255 255 255

669041.32 8403239.01 610.13 0.000000 0 0 255 255 255

669043.70 8403237.01 609.26 0.000000 0 0 255 255 255...

Any help would be appreciated. I have searched for answers but cannot find a solution.


Regards


Michael

Mark Levitski

unread,
Sep 21, 2017, 9:09:40 AM9/21/17
to last...@googlegroups.com
Michael, we had trouble with a 4-band image. The 4th band was transparency, and we had to convert it to straight RGB if I remember correctly. We used Global Mapper for that. Image came out of Pix4D.

Martin Isenburg

unread,
Sep 21, 2017, 9:12:58 AM9/21/17
to LAStools - efficient command line tools for LIDAR processing
Hi Michael,

Are you using the latest version of LAStools? There was a fix for a certain kind of 4 band TIF image made in July:


To find out your version run

lascolor -version

Regards,

Martin @rapidlasso



--

Michael Hodge

unread,
Sep 21, 2017, 10:15:33 AM9/21/17
to LAStools - efficient tools for LiDAR processing
Thanks Martin,

Works a charm now I've updated LAStools! Something I definitely should have checked first. 

Great to have LAStools for my research work, thanks for updating it.

Michael
Reply all
Reply to author
Forward
0 new messages