25
\$\begingroup\$

Here in Argentina, we have a very fancy street called "Lanin". All the houses and walls on that street have some kind of mosaic stuck to it, and it's very cool. It was made by a local artist who lives on that street.

Because to this piece of urban art is two blocks long, I've decided to make a panorama of it, by moving myself on an horizontal axis while taking photos. I mean, I took one photo, walked one step deeper along the street, took another photo, and so on.

When I tried to stitch it in AutoPano, the following deformed thing came out:

poorly-stitched example (High res here)

And the other side of the block:

another poorly-stitched example (High res here)

After this, I've learned about parallax error and why you have to avoid moving when making panoramas. I mean, there are a lot of connection errors on both images. Especially in the second one, the part with the corner is quite problematic to stitch because to as I moved, the perspective of the view changed a lot.

So, is there any way to stitch this kind of panorama correctly? Would this only work on plain walls?

\$\endgroup\$
2
  • 2
    \$\begingroup\$ Thanks for the editing and correction, @mattdm, my english is very rusty right now. \$\endgroup\$
    – Andres
    Aug 7, 2011 at 15:33
  • 2
    \$\begingroup\$ ¡Su Inglés es mejor que mi español! There's no problem understanding what you're saying at all — I just made it a little more smooth. \$\endgroup\$
    – mattdm
    Aug 7, 2011 at 15:51

9 Answers 9

17
\$\begingroup\$

What you are trying to construct is a parallel motion panorama. Its been on my TODO List to do so far a while but I have not done it myself yet.

Microsoft ICE supports this. It is the only software which I know of to do automatic stitching of parallel motion panoramas. You will find that option under 'Camera Motion' below and to the left of the preview window.

\$\endgroup\$
2
  • 1
    \$\begingroup\$ Do you have any links on this, the idea's intriguing but googling "parallel movement panorama" doesn't turn up anything \$\endgroup\$
    – Matt Grum
    Aug 7, 2011 at 20:29
  • 1
    \$\begingroup\$ Sorry, it should be parallel motion not movement. IIRC, this originated for creating a panorama from video in which a scene is filmed from a moving platform/vehicle and frames are assembled as a panorama. I have not been active in the CG community for years but I did see a very impressive one of an entire road several kilometers long at one of the SIGGRAPH art exhibits. \$\endgroup\$
    – Itai
    Aug 7, 2011 at 20:49
9
\$\begingroup\$

When you shoot a panorama by only rotating the camera then you're simulating the effect of a wider field of view lens (even if you use a non-standard projection).

If you move the camera then what you're trying to produce has no equivialent in reality, i.e. its not a 2D projection of a 3D scene like most photographs, it's something else all together! Because of this there's no unambiguous way to put the images together.

However I appreciate that in this situation there's no alternative to moving the camera. What I would do is photograph each building head on, the photograph all the gaps between buildings head on, and then join he images along straight vertical lines. That way the buildings will line up, but you'll still have to do some work blending the road/sky. The result will still look a little weird as what you'll produce won't correspond to any view you'd get in real life.

edit: @mattdm raises a good point I'd overlooked, what you want to do in this situation is simulate an orthographic projection, that is the projection you'd get with a an infinite focal length lens based at infinity. The best way to approximate this would be to take as many photos as possible with little horizontal separation between them, and then stitch them as a series of thin vertical slices.

\$\endgroup\$
3
  • 2
    \$\begingroup\$ I think what it simulates is a horizontal strip cropped from a photo taken with a long lens far back enough to encompass the whole scene straight-on. Impossible only because of intervening buildings and so on, and because you'd have to be quite far away to make everything so straight. It might be slightly more natural if the building in the center of the street is taken straight on, and the progressively less centered as you move away from the center house (keeping more towards the center each time). \$\endgroup\$
    – mattdm
    Aug 7, 2011 at 18:23
  • \$\begingroup\$ Ah that's a good point and reminds me of something I totally overlooked, an orthographic projection (like an architectural elevation diagram) is what you want to approximate. In an orthographic projection all the rays are parallel, which you can approximate by cropping the centre out of many images with different translations \$\endgroup\$
    – Matt Grum
    Aug 7, 2011 at 20:02
  • \$\begingroup\$ How about clamping a video camera to a vehicle in portrait orientation and then moving down the street at a slow and uniform pace? Traveling at 3 meters/second (10.8 km/h) would yield one picture every 10cm, so parallax errors between pictures would be minimized. \$\endgroup\$
    – supercat
    Nov 29, 2016 at 19:40
8
\$\begingroup\$

You can use mosaic mode in Hugin for these types of panos.

You have to be in Expert mode (Interface → Expert), but then in the preview window (GL button), under the Move/Drag tab, Drag Mode can be selected as a Mosaic mode.

If this is set, dragging horizontally and vertically changes the translation parameters X and Y, respectively i.e., lets you move the virtual camera horizontally and vertically.

\$\endgroup\$
1
  • \$\begingroup\$ this is down right amazing, if this can be done with multiple photos then, wow! \$\endgroup\$
    – cliffclof
    Nov 29, 2016 at 6:03
5
\$\begingroup\$

I'm not sure this is a perfect solution, but I'd give Hugin a try. One of the features I love about Hugin is the ability to define straight lines that extend across photos. This gives the software an extra clue about what should end up looking straight once the panorama is assembled.

I've never tried making a horizontal movement panorama like this, but the thing that sold me on Hugin was a panorama I shot with a lot of buildings and a long dock in a harbor. Everything else I used ended up warping the dock, but in Hugin, I was able to define a line that extended the length of the dock, and this let Hugin produce a very reasonable-looking output.

\$\endgroup\$
4
  • \$\begingroup\$ The first panorama was made with Autopano. The second one with Hugin due to Autopano was failing miserably linking all the images. \$\endgroup\$
    – Andres
    Aug 10, 2011 at 18:44
  • \$\begingroup\$ Hugin won't do that "straight line" trick all by itself -- did you make any attempt to find any lines that extend across several images (maybe the sidewalk)? \$\endgroup\$
    – D. Lambert
    Aug 10, 2011 at 20:13
  • \$\begingroup\$ Nope, basically I just loaded the images and let the program deal with all the issues. I think that I did 3 different panoramas (in order to avoid overflowing the app with 150 images) and the combined those 3 new panoramas. \$\endgroup\$
    – Andres
    Aug 10, 2011 at 20:23
  • \$\begingroup\$ If you feel like giving that a shot, that was the "secret sauce" that made Hugin work especially well in the case I referenced above. As long as you can find a straight line through your photos, Hugin will make sure it stays straight. \$\endgroup\$
    – D. Lambert
    Aug 10, 2011 at 20:42
4
\$\begingroup\$

Canon's PhotoStitch has two stitching modes - Panning and Parallel. It even factors in the focal length your frames were captured with. If you shoot with a Canon, you should have the software in the Canon Utilities disk.

Whatever software you use, however, try shooting with the longest focal length to eliminate geometry distortions. It becomes a tradeoff between the distortion and the number of frames you need to cover your subject.

Additionally, get a leveler and make sure your camera is horizontal when you take the shots, and as much as possible, make its height constant. This will reduce the rotation/translation problems.

\$\endgroup\$
2
  • \$\begingroup\$ Uhmmm, interesting. I'm going to try it. Usually I never install the bundled software due to normally is pure crap, but I will try with photostitch. \$\endgroup\$
    – Andres
    Aug 10, 2011 at 18:42
  • \$\begingroup\$ Photostich has serious difficulties stitching anything. Almost never got anything good out of it. \$\endgroup\$
    – Itai
    Aug 12, 2011 at 0:45
1
\$\begingroup\$

Here is one I did by overlapping images that were shot going down the street. This was with photoshop using the measure tool and "Rotate Canvas" Arbitrary to get the verticals straight and parallel. Then the images were cropped, merged and erased the non aligning overlapping parts of the images. It is time consuming and is not the software answer you want, but it works. One thing to be aware of is if there are any things like awnings or signs that are 3d, you need to be sure you have straight on images to use.

http://www.knightvisionphotography.com/FranklinMainStreet.pdf

\$\endgroup\$
-1
\$\begingroup\$

I suspect the problem is that you are not taking a Panorama. You are simply taking multiple shots that should be simply appended one to the other. I would expand the canvas in Photoshop and simply place each photo one next to the other.

The result will look like a panorama, but will actually simply be a very long photograph.

\$\endgroup\$
1
  • 2
    \$\begingroup\$ A parallel panorama is still a panorama. \$\endgroup\$
    – bogl
    Nov 22, 2016 at 20:14
-2
\$\begingroup\$

I would first try and correct your photo for lens distortions using the Lightroom camera profiles.

Then you could try to create a panorama using photoshop which has an option for merging pictures without the usual corrections.

Although normally I would advise anyone to use AutoPano pro, this time it seems Photoshop's attempt at panorama stitching might help.

\$\endgroup\$
1
  • \$\begingroup\$ I don't think that this is going to solve the perspective problem. But the Photoshop option is very insteresting. Definitely going to try it. \$\endgroup\$
    – Andres
    Aug 10, 2011 at 18:48
-2
\$\begingroup\$

I have tried several different programs that will merge photos into panoramas. The one that I use most of the time is Photoshop Elements. This is a rather cheap version of Photoshop that has most features, but not all, that Photoshop has.

You can download a 30 day trial och try out the different ways that Photoshop Elements can stitch your photos into a panorama. There is even a manual mode, though I have not tried that one, yet.

Good luck (I'm just a customer of theirs and have no interests in you buying this software)

\$\endgroup\$
1
  • \$\begingroup\$ If you're recommending downloading a trial of Elements, why not just use the trial of Photoshop? \$\endgroup\$
    – Cole Tobin
    Jan 7, 2015 at 6:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.