Stitching two (or multiple) images with different resolutions together with Hugin

56 views
Skip to first unread message

zimon fi

unread,
Jun 28, 2019, 9:24:37 AM6/28/19
to hugin and other free panoramic software
I have two images, which has been captured with screen-capture-tool by "select area to grab"-method. They have different resolution for some reason (I cannot re-grab to ensure the same resolution anymore).

I have auto generated control-points and then removed those which are incorrect due to some repeated patterns on the original image.

However, when now creating a panorama, it does not work, as it expects to stich them in their original resolutions.

When Hugin already could know through the control points how to zoom images to fit eachothers, I assume there is a method somewhere to do that, but I haven't found it.

So is there a method to auto-change resolutions of images, so they could match each others and could be stiched?

Simple example attached; 1.png (200x210) and 2.png (30x50), which belong to the same image of a rectangle but are two grabs with different resolution.  Now control points can be found manually and set (project file "1 - 2.pto").

Or is there some other tool than Hugin, which could do this?

1.png
2.png
1 - 2.pto

Alister Ling

unread,
Feb 3, 2020, 5:14:30 PM2/3/20
to hugin and other free panoramic software
Hi, I think the problem is that *because* they are screengrabs, hugin has no information about lens, field of view (scale). [Aside, this might make a good Turing test - are these images related?!]. I think if you told hugin that the second image had a shorter focal length by the same ratio as the scale difference between the images it could do it. A human can easily tell that one picture is the same as the other except for scale and rotation, but that is trickier for a computer to do it without human help. But I also agree with you, that if you supply matching control points, the computer should look for the best rotation/scale parameters. I do not know if Hugin has this capability. There was a post about overlaying old pictures on new ones, maybe that will help.
Alister.

Gunter Königsmann

unread,
Feb 4, 2020, 12:07:03 AM2/4/20
to Alister Ling, hugin and other free panoramic software
Hugin can adjust the fov if it is told that the image with the different fov has been made using a different lens.
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
Reply all
Reply to author
Forward
0 new messages