Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The difference in precision between matlab and pyntcloud while reading las files #348

Open
weypro opened this issue Mar 3, 2023 · 0 comments

Comments

@weypro
Copy link

weypro commented Mar 3, 2023

The default argument xyz_dtype of the function read_las in io/las.py which is called by PyntCloud.from_file is float32 .
However, it may cause the difference in precision, because the type of data is float64 (double) in matlab if you use lasFileReader.

In order to eliminate the difference, you can write it like this.

cloud = PyntCloud.from_file(pointcloud_path,xyz_dtype="float64")

I think this issue needs to be mentioned in the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant