mparkan / Digital-Forestry-Toolbox

A collection of digital forestry tools for Matlab/Octave
http://mparkan.github.io/Digital-Forestry-Toolbox/
GNU General Public License v3.0
46 stars 16 forks source link

Extended fields wrongly read #14

Closed Jordi-Gene-Mola closed 3 years ago

Jordi-Gene-Mola commented 3 years ago

Thank you very much for sharing this useful toolbox.

I am using the LASread.m script to read the following point cloud: point_cloud_to_test_LASread.zip. The code read all fields correctly unless the extended fields. For instance, opening the point cloud with CloudCompare the “Range” field have values from 0.85 m to 5 m. However, the “Range” values read with the LASread.m script ranges from 4.6059e+18 to 4.6173e+18. The same happen with other extended fields: “FrameIndex” and “Azimuth”. Do you have any idea how can I fix this issue?

Thank you in advance. Best regards, Jordi

mparkan commented 3 years ago

Thanks for reporting the issue. I've just updated LASread and it seems like it's reading the extra byte fields (azimuth, range, frame index) correctly now. Could you please let me know if it works as expected with your data?

Jordi-Gene-Mola commented 3 years ago

Great, it works! :)

Thank you very much for fixing this issue and for sharing this useful code :)

Jordi