I'm occasionally seeing bad results from Verdandi in which parts of the panorama are discolored:
This looks similar to an issue previously reported and fixed in 2019: https://groups.google.com/g/hugin-ptx/c/mpnWNfJZ4b8/m/LMFVNMdbBQAJ
In testing, I found that 2023.0.0 and mercurial tip are affected, while 2022.0.0 results are good.
Weirdly, it seems that the nona output is nondeterministic for the same images and PTO file. The nona output itself looks fine, and the artifacts are introduced by verdandi. The severity and coloring of these artifacts varies between different sets of remapped images from running nona multiple times, but does not seem to change between different runs of verdandi on the same remapped TIFs.
There are only a few commits touching verdandi between 2022.0.0 and 2023.0.0, but 8556:17d25b5ae116 stands out. It re-adds a call to Multigrid that had been commented out with the note "this results in artefacts, maybe there is still a small error in other lines" in a 2019 change that I think was the bugfix from the thread linked above. I tested commenting out that line again and the results look better.
I don't understand the algorithm enough to know how this helps, what other problem it might be working around, or what the proper fix would be, but I'm hoping someone can take another look at it.
Here are two sets of remapped images that exhibit the problem:
https://test-bucket.stscn.net/pano/verdandi-color-bug/1_remapped.zip
https://test-bucket.stscn.net/pano/verdandi-color-bug/2_remapped.zip
Let me know if I can help with more details, testing, or anything else.
Thanks,
Kevin
Thanks! This indeed fixes it for the two I sent, but another panorama from the same drone is still affected and made slightly worse by this change:
I'm writing on this thread because I'm seeing, maybe, the same problem. I'm using Hugin compiled from hg repository. When using Verdandi with "blend" seam I'm getting results like this in many panorama:
Can you please test with the pto and a couple of images in this zip?
I get black/white patch in the final panorama for the top image both in Ubuntu with Hugin compiled from hg and in Hugin 2024 beta1 under win11
The green color appears when blending part0027 into a partially-merged panorama:
Blending images 26 and 27 alone also produces artifacts in the same area, but of different colors (black and orange):
I encountered another instance of this still happening with latest hg tip 8819:280e83b57064.