Gentoo Archives: gentoo-user

From: Michael Mol <mikemol@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] merging or fitting images together
Date: Sun, 20 May 2012 21:50:35
Message-Id: CA+czFiA40bvVxtOmTEcWW78jHPa74FowUxO_p5UxngovcRx36Q@mail.gmail.com
In Reply to: Re: [gentoo-user] merging or fitting images together by Stroller
1 On Sat, May 19, 2012 at 10:01 PM, Stroller
2 <stroller@××××××××××××××××××.uk> wrote:
3 >
4 > On 19 May 2012, at 20:28, Michael Mol wrote:
5 >> …
6 >> Worse, if the photographer was not using a prime lens[1], and was
7 >> instead using a lens with variable zoom, you can't easily know what
8 >> the real focal length was, as this will change depending on how far
9 >> the photographer has zoomed in.
10 >
11 > Throughout everything else you said I was thinking something like this.
12 >
13 > Zoom lenses were much less common even 2 or 3 decades ago.
14
15 Ah. Excellent point!
16
17 >
18 > For a long time, a 50mm prime was the common kit lens, rather than the 18-105mm zoom which is sold today.
19
20 18-105? I'm used to seeing 18-55.
21
22 >
23 > This was because, on a camera using 35mm film, a 50mm focal length gives a field of view very close to that seen naturally by the human eye.
24 >
25 > Wikipedia states that "the first modern film zoom lens was designed around 1950 by Roger Cuvillier" and Canon's official website (the "Canon Camera Museum" pages) states that "The history of Canon's zoom lens goes back to 1954."
26 >
27 > Since the photos are stated go have been taken in 1953 it seems highly unlikely that the photographer was using a highly expensive and cutting-edge zoom lens. I doubt many people would have been able to afford these zoom lenses when they were first released.
28 >
29 > It seems to me safer to assume that the lens is a 50mm.
30
31 Probably generally true. (Though as Philip later remarked, it turns
32 out the lens was likely a 75mm prime)
33
34 >
35 > I guess focal length may change fractionally during focussing (as lenses are moved back and forth during as the focus ring is turned), however it may also be that a camera manufacturer designs a lens with a 48mm focal length (because that's easier to construct for some reason, or produces better images) and decides to sell it as 50mm because a 2mm difference in focal length makes no difference to the photographer.
36 >
37 > Or it may be that the distortion is caused by lens distortion - perhaps Hugin is trying to compensate for that, and straightening up lines.
38
39 I don't think the 'Align' button in the wizard tries to optimize for
40 lens distortion...adjusting for lens distortion tends to take a fair
41 amount of time in terms of CPU, and far longer in terms of finding the
42 right sequence of control point optimizers, where an errant point
43 won't send the algorithm into mathematically weird territories.
44
45 >
46 > In any case, I might try re-doing the stitch a few times, each time telling Hugin the lens is 47mm, 48mm, 49mm, … 51mm, … 53mm. Perhaps you may find that one of those is perfectly spot on.
47
48 I tried it again, this time using 342 control points generated by
49 hugin-cpfinder and autopano-sift-c. (Several runs of the latter, with
50 100 points each, produces a good set of points). There wasn't anything
51 for celeste to pick up, so I used the "fine-tune all points" tool,
52 and then cleared the thirteen or so points which didn't have good
53 correlation.
54
55 Following that, I ran the control point optimizer in "anchored,
56 positional mode", checked the preview, and then ran the "everything
57 without translation" control point optimizer. Checking the preview
58 again, the panorama was way off-center, so I dragged it back into
59 place using the fast preview window.
60
61 Following that, I ran the exposure optimizer's "low dynamic range"
62 preset. In the preview, things looked OK. The leftmost portion will
63 never look all that great, as he captured the sun setting behind a
64 building (or maybe that's a water spot); that narrowed the usable area
65 of the dynamic range of the frame, and it's going to look kinda
66 grayish. If these source JPG files are scans of paper photos, I could
67 do a lot more with a new scan set using 16bpp TIFF or OpenEXR, and at
68 perhaps 600 or 1200 dpi instead of 72 or so. Might be able to recover
69 more detail out out of that leftmost section.
70
71 Anyway, the final Hugin pto file is here: http://pastebin.com/gudxvAEa
72
73 And the final stitch is here:
74 http://img407.imageshack.us/img407/2030/brum3068brum30702.jpg
75
76 Interesting exercise! The image is still a bit smaller than my first
77 pass (704x407 vs 785x413), but it's not cropped as tightly, the lines
78 on the tram are much straighter, and most of the nasty noise on the
79 leftmost portion has been dealt with. There's likely something that
80 can be done to blow the image up a bit more.
81
82 --
83 :wq

Replies

Subject Author
Re: [gentoo-user] merging or fitting images together Philip Webb <purslow@××××××××.net>