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

Fix radial distortion in Cam format exporter #1196

Merged
merged 2 commits into from Apr 8, 2021
Merged

Fix radial distortion in Cam format exporter #1196

merged 2 commits into from Apr 8, 2021

Conversation

drkoller
Copy link
Contributor

@drkoller drkoller commented Apr 5, 2021

The radial distortion parameters exported by the *.cam file format exporter are currently not computed properly. This PR fixes the Reconstruction::ExportCam() exporter so that the radial distortion parameters in *.cam files will accurately reflect the same distortion as in COLMAP.

If both of the two exported radial distortion parameters in a *.cam file are non-zero, then they are used in a distortion model very similar to the COLMAP and Bundler distortion models. However, if only the second parameter is non-zero, then a different camera model (similar to VisualSFM) is assumed for *.cam files.

@ahojnnes ahojnnes enabled auto-merge (squash) April 8, 2021 11:55
@ahojnnes ahojnnes merged commit 513fef3 into colmap:dev Apr 8, 2021
lucasthahn pushed a commit to TNE-ai/colmap that referenced this pull request Aug 17, 2022
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