On Fri, 2015-04-03 at 10:03 +0200, Rui L. Pires wrote:
> Hi,
>
>
> I'm trying to use LASlib to add RGB values to a point cloud. I should
> make clear I am not using the tool lascolor, my process is not based
> on the content of an orthophoto.
>
>
> I've based myself on the open source tool las2las to write my own code
> adding the RGB information to the points. So far with limited success.
>
>
>
> If anyone can help, how should the header of the destination las file
> be configured? Particularly the variables ''point_data_format' and
> 'point_data_record_length'.
>
point_data_format will have to be set to 2 or 5 since they're the only
ones containing RGB data. For format 2 point_data_record_length should
be 26 and for format 5 it should be 63 (always assuming I've added the
bytes correctly ;-) I'm assuming that you're not using v1.4 which is
why I didn't mention formats 7, 8, and 10.
> Is there any other relevant setting that must be configured?
>
Not that I can think of but I may be mistaken.
>
> I can supply a small sample of my point cloud, if needed. Thanks in
> advance.
>
>
> Regards,
>
> Rui Pires
>
> --
> 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