-
Notifications
You must be signed in to change notification settings - Fork 165
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
Question about the image undistortion #94
Comments
hi, i tried to download the MegaDepth_SfM_v1.tar.xz, but failed. |
I encountered the same problem. I check the camera width in cameras.txt and the image dimension of the corresponding image, and I found that they are actually the same. It is weird that after reading into memory, the dimensions became mismatched. Have you figured out how to get around with it? |
Hello. I remember that some scenes used the default COLMAP parameters (notably the Alternatively, you can directly download the undistorted data from https://cvg-data.inf.ethz.ch/megadepth/ |
Another reason why the image sizes might be mismatched is due to EXIF information (notably image rotation) > maybe at some point they were ignored but now they are taken into account. |
Thanks a lot for the prompt reply and the download link. I look into the source code in colmap/src/colmap/image/undistortion.cc, and found that the error occur in the first line of the function UndistortImage() -- basically the program just done some I/O, not started the undistortion procedure yet. So my feeling is that there should be some bug in the image reading I/O of colmap. |
Do you by any chance have one such image where the undistortion fails at hand? I can try to look into it and submit a fix upstream if I figure it out. |
Thanks for your great work!
I am using your undistort_reconstructions.py to undistort megadepth images, but some problems have happened.
There are 195 scenes in megadepth at all, but only 163 scenes are undistorted successfully.
And for those failed cases, they fail to be checked with the image sizes as follows (happened in scene 0001):
The text was updated successfully, but these errors were encountered: