How to change point cloud data

Hello everyone,

I have created a point cloud dataset from a forest canopy, saved as a LAS file. I am trying to analyze it using the lidR package on Rstudio, to segmentate individual tree crowns. The package was created for Lidar data, but it should also work with LAS files from orthography.
After running the package using my LAS files created by WEBODM, I get several errors.
Warning message:
Invalid data: RGB colors are recorded on 8 bits instead of 16 bits.
Error in plot.window(…) : need finite ‘ylim’ values
In addition: Warning messages:
1: In xy.coords(x, y, xlabel, ylabel, log) : NAs introduced by coercion
2: In min(x) : no non-missing arguments to min; returning Inf
3: In max(x) : no non-missing arguments to max; returning -Inf

Does anyone know how to change the RGB colors to 16 bit? Or is there a way to remove colors, to only create point clouds without color data?
Thank you very much, please let me know if I didn’t properly describe my problem.

Best regards,
Matis

1 Like

Interesting problem. Looking at the ASPRS spec, we are not compliant:
image

So, I would categorize this as a bug to be documented at Issues · OpenDroneMap/ODM · GitHub (please open an issue there).

In the meantime, you can use PDAL to do the scaling for you (read into PDAL, scale the value, then write out again as LAZ). If you do this and add that process / command to the issue on github, then we can quickly patch this.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.