Related to: https://de.mathworks.com/matlabcentral/answers/875268-lasfilereader-loose-accuracy-when-reading-the-point-clouds?s_tid=answers_rc1-1_p1_MLT and https://de.mathworks.com/matlabcentral/answers/766331-strange-distortion-appearing-when-displaying-las-point-cloud-with-pcshow?s_tid=answers_rc1-2_p2_MLT
Force lasFileReader to read more decimal points
1 view (last 30 days)
Show older comments
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
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!