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

Keep precision in the process of storing in text. #1363

Merged
merged 5 commits into from Jan 3, 2022

Conversation

whuaegeanse
Copy link
Contributor

When writing variables to std::ostringstream, we will loose precision of double variables if output manipulators were not applied.

@ahojnnes
Copy link
Contributor

ahojnnes commented Jan 2, 2022

Thanks for the fix. However, I don’t think we need the std::fixed and can save us some bytes on disk. Also, I suggest to use the full 17 digits precision for the 2D points to ensure identical results to the binary format. Thanks!

@ahojnnes ahojnnes merged commit 5f03cfc into colmap:dev Jan 3, 2022
@ahojnnes
Copy link
Contributor

ahojnnes commented Jan 3, 2022

Thanks!

@whuaegeanse whuaegeanse deleted the Reconstruction branch May 17, 2022 02:39
lucasthahn pushed a commit to TNE-ai/colmap that referenced this pull request Aug 17, 2022
* Keep precision in the process of storing in text.

* Remove std::fix and use the full 17 digits precision for all double varaibles.
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

Successfully merging this pull request may close these issues.

None yet

2 participants