-
Notifications
You must be signed in to change notification settings - Fork 419
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
Option --intrinsics-from-views does not work #555
Comments
Sorry for the late response. This is odd. I have to take a closer look this issue if it is still relevant. Unfortunately, I won't get to it in the next couple days. If you manage to resolve this issue, or are able to take a look at this yourself, please let me know. |
Thank you for your response. I agree that it is odd - as if the argument has no effect. Yes it is absolutely still relevant. I tried to look at the source code but did not manage to locate where the bug is, so it would be very much appreciated if you have to possibility to look at it. |
Again, sorry for the late response, but I cannot reproduce this. Here is what I did.
Now I can see in the console:
So it really used the focal length from
So indeed, except for some floating point inaccuracies, it did not change the focal length. Would you mind describing your process in more detail so we can find out what the problem is? Also, maybe try dropping a debug log in |
Hello again Simon and this time I am sorry for the late response. I notice one difference between what you do and what I do. This is the steps you follow:
Those are the steps that I follow:
Thus, I don't run sfmrecon first one time and then a second time. Here is some example output before and after. As you can see, both principal point and focal length are changed. |
Ah maybe this is a red herring, but why does your output say |
I originally installed MVE using "snap install mve". After your last comment, I was thinking that maybe the snap version of MVE was not updated, and I therefore installed from source. However, the same thing as before still happen, i.e. focal length and principal point change. The output is however a little different. It no longer say "PBA", only "BA": |
I really only ran Can you provide me with your dataset and all |
I have now uploaded a folder with images and corresponding metafiles as you asked for. The folder contains three copies of the scene-folder. The first after running makescene, the second after also adding intrinsic info (including a test variable “hello”) and the third after running sfmrecon. The files look as follows (the file view_000.mve is used as example). First after running Same file after I added some predefined data: And finally the same file again after running |
From all I can see, both Here is the focal length from your original scene:
After running
What we see here is that MVE assigns a focal length of 0 to a few views, in particular those views that it couldn't reconstruct. It's not super surprising it didn't reconstruct these views, because they are essentially black frames. Further, the numbers have changed slightly, e.g., from I hope this clears things up. |
Thank you for your quick response. Even if the differences in focal lengths are in the range of floating point accuracy, that does not apply to the principal points. Here are some of the initial principal points from my original scene:
After running
As regards the funny colors I will try to save the images as color images instead. |
That is a good point you make. This is something that may actually not be supported. While our bundle adjustment can certainly not optimize the principal point, I don't see a reason why it can't use the principal point from the intrinsics in |
@flanggut I believe in |
I need to use known camera intrinsics when running Structure From Motion with the command mve.sfmrecon. I therefore add known intrinsics to the meta.ini-files and then run mve.sfmrecon with the option --intrinsics-from-views. But this does not work and mve still finds its own intrinsics and changes the meta.ini-files. I develop this further below.
I start with
mve.makescene -i input_dir output_dir
. This creates folders with meta.ini-files, one for each image.The content of the meta.ini-files at this points looks like this:
I then run a script to add my own intrinsics. I also add a variable
test
just for testing purposes. After running my script the meta.ini-files looks like this:Next, I run the sfm pointcloud reconstruction with
mve.sfmrecon scene_x/ --intrinsics-from-views --fixed-intrinsics
. This overwrites the intrinsics that I added to the meta.ini-files, as you can see here:Thus, the flag
--intrinsics-from-views
does not work since both focal length and principal point are changed.The text was updated successfully, but these errors were encountered: