lasFileReader loose accuracy when reading the point clouds.

2 views (last 30 days)
Hi all,
I'm having a quite strange issue with the lasFileReader function that "quantizes" the point cloud coordinates (most of the times only the Y cooridnate) in the loading of the data. I tried using both my data and the demo data provided by MATLAB and the Y coordiantes are always quantized at 0.5 or 0.25 m steps. The original data have a 1 cm resolution or even higher so all this information is lost.
This is clearly visible looking at the Y coordinates value or at the plotted point cloud which has clearly visible stripes due to quantization
The code I'm using is quite straightforward as there are no specific options for such type of problem.
path = fullfile(toolboxdir('lidar'),'lidardata','las','aerialLidarData2.las');
lasHandle = lasFileReader(path);
pc = lasHandle.readPointCloud;
At first I thought it was an issue with my las file header (e.g., wrong las version) so I tried different tests with the las2las function of lastools trying to update the header. However since the same issue appears with the "official MATLAB demo data" I assume there is something I'm missing.
Do you have any idea about what is happening?
Thank you.

Answers (0)

Products


Release

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!