Force lasFileReader to read more decimal points

1 view (last 30 days)
Hello guys! Currently, I am having issues when trying to read in las point clouds, probably due to precision errors, when reading in the data using the lasFileReader. I am reading in and plotting the point clouds as follows: mytree = readPointCloud(lasFileReader('points.las')); P = mytree.Location; pcshow(P);
As can be seen in the image above, the point cloud values are binned. But when I read in the same point cloud in txt format, everything works: P = readtable('points.txt'); P = table2array(P(:,1:3)); pcshow(P);
I don't want to have every point cloud two times on my drive. How can I force Matlab to read in more decimal points to avoid these errors? And why does it work, when using point clouds in the txt format? I know that I could probably transform the coordinate system of the point clouds (they are currently in WGS84, UTM32), but I don't want to take the extra step, if possible. Edit: The las file does not seem to be the issue here. Both CloudCompare and R can load and display the point cloud from the las file correctly.
  3 Comments
Voss
Voss on 13 Jan 2022
Edited: Voss on 13 Jan 2022
Can you share a las file and corresponding txt file where you see this behavior?
Zoe Schinder
Zoe Schinder on 13 Jan 2022
Edited: Zoe Schinder on 13 Jan 2022
Thank you for your answer! I added a zip with a downsampled point cloud both in the las and the txt format. I checked that I see the behavior with this point cloud.

Sign in to comment.

Answers (0)

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!