Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@SomeAlphabetGuy
Copy link
Contributor

When distortion coefficients are really small but not zero, IsUndistorted() may return true, but undistorted image size may still be different from the original image size. In this situation the mismatch between the image size in the model and the actual image size causes the patch match stereo step to crash. This change skips camera undistortion when the coefficients are very small, which makes it consistent with image undistortion and fixes the crash.

When distortion coefficients are really small but not zero, IsUndistorted() may return true, but undistorted image size may still be different from the original image size. In this situation the mismatch between the image size in the model and the actual image size causes the patch match stereo step to crash. This change skips camera undistortion when the coefficients are very small, which makes it consistent with image undistortion and fixes the crash.
@ahojnnes ahojnnes merged commit 8e13af1 into colmap:dev Nov 26, 2022
@ahojnnes
Copy link
Contributor

Thanks!

@SomeAlphabetGuy SomeAlphabetGuy deleted the fix-inconsistent-undistortion branch November 27, 2022 04:17
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.

2 participants