How to read/pre-process too large las file?

8 views (last 30 days)
Siegmund
Siegmund on 5 May 2023
Commented: Siegmund on 8 May 2023
Hi everyone,
I have a las file of 50GB and I want to read/load it in MATLAB ( I have the lidar toolbox available).
I have a Mac from 2017 and it's just not able to handle such a file.
Is there a way to pre-process the las and/or reduce the size by selecting a subset of the area?
filename = '/LiDAR/lidars/terra_las/cloud_merged.las';
lasReader = lasFileReader(filename);
ptCloud = readPointCloud(lasReader);
Thanks a lot for your tip/suggestions.

Answers (1)

Venkat Siddarth
Venkat Siddarth on 5 May 2023
I understand you are looking for ways to pre-process and reduce its size by selecting a subset of the area .Here is a suggestion:
  • You can use a software like LAStools to extract a subset of the point cloud data that you're interested in.Firstly,Using laszip function we can reduce the size of the LAS file. Then using a function called lasclip you can clip the file to a specific area.
To know more about these tools,follow the below link:
I hope these suggestions help! Let me know if you have any further questions.
Regards,
Venkat Siddarth V
  1 Comment
Siegmund
Siegmund on 8 May 2023
Thanks for your reply Venkat.
So there is no direct way of doing it in Matlab itself?

Sign in to comment.

Products


Release

R2023a

Community Treasure Hunt

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

Start Hunting!