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

Can I save a pointcloud as double precision #234

Closed
yaseryacoob opened this issue Jan 23, 2019 · 2 comments
Closed

Can I save a pointcloud as double precision #234

yaseryacoob opened this issue Jan 23, 2019 · 2 comments

Comments

@yaseryacoob
Copy link

Is your feature request related to a problem? Please describe.
Need to save a cloud as double instead of single (in ascii), not clear how to do it, doesn't seem part of the library?

@Nicholas-Autio-Mitchell
Copy link
Contributor

You could access the underlying points from the xyz attribute of a PyntCloud object, which is a numpy array - then convert it to type np.float64 and save it to disk.
Converting from float32 to float64 isn't actually going to give you any extra precision (how would numpy know what the actual extra decimal points should be?)

If your original data is in double precision, I would suggest just feeding a copy into PyntCloud, as to not lose that original precision

@yaseryacoob
Copy link
Author

yaseryacoob commented Feb 5, 2019 via email

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

No branches or pull requests

3 participants