Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Correcting perspective from stitched panorama
#1
Photo 
[Image: imgp3485-panorama_small.jpg]
This is a stitched panorama (PTGui, 6 images). If this had been taken on film (e.g. 6x17) the facade would be rectangular. Is there any tool in GIMP that can 'rectangularize' such an image? The perspective tool doesn't really work because the falloff is curved.
Reply
#2
(Today, 12:01 AM)christinanorwood Wrote: This is a stitched panorama (PTGui, 6 images). If this had been taken on film (e.g. 6x17) the facade would be rectangular. Is there any tool in GIMP that can 'rectangularize' such an image? The perspective tool doesn't really work because the falloff is curved.

Film would have produced a distortion as well, because it comes from the technique: ff you are (relatively) close, the things at the center of the panorama are closer to the camera and therefore appear bigger. I have not used PTgui for ages, but it probably has a choice of "projections", some projection produce some kind of bend, while other don't.

Now, to fix the problem at hand, two ways, both in Filters > Distorts

Lens distortion:

   

Curve bend:

   

In both cases I eyeballed the result, you can probably get slightly better results
Reply
#3
(Today, 08:42 AM)Ofnuts Wrote:
(Today, 12:01 AM)christinanorwood Wrote: This is a stitched panorama (PTGui, 6 images). If this had been taken on film (e.g. 6x17) the facade would be rectangular. Is there any tool in GIMP that can 'rectangularize' such an image? The perspective tool doesn't really work because the falloff is curved.

Film would have produced a distortion as well, because it comes from the technique: ff you are (relatively) close, the things at the center of the panorama are closer to the camera and therefore appear bigger. I have not used PTgui for ages, but it probably has a choice of "projections", some projection produce some kind of bend, while other don't.

Now, to fix the problem at hand, two ways, both in Filters > Distorts

Lens distortion:



Curve bend:



In both cases I eyeballed the result, you can probably get slightly better results

Thanks very much, something to work with and looks promising. I think film would give a rectangular facade because although the height at the side appears less due to greater distance, it's projection onto a flat film plane would be larger (I think) because it's further from the lens (distance from lens to film plane). Certainly Nick Carver's panos taken with his Shen Hao 617 don't seem to suffer from the distortion shown in my image. Using a stitched pano the film plane is essentially a faceted cylinder by rotating the camera.
Reply
#4
Using PTGui, just load the panorama photo in PTGui, and set some horizontal and vertical control points on the building and create a new panorama from this previous made panorama. In the attached photo, I just used 3 horizontal points on the roof
   
Reply
#5
(Today, 10:50 AM)denzjos Wrote: Using PTGui, just load the panorama photo in PTGui, and set some horizontal and vertical control points on the building and create a new panorama from this previous made panorama. In the attached photo, I just used 3 horizontal points on the roof

That's an excellent result! Unfortunately my attempts to use horizontal control points don't produce nearly as good a result. Not sure what I'm doing wrong. Select a line that should be horizontal, place a point at one end in one image, and at the other end in the other image. Right? Repeat for a couple of other lines that should be horizontal. Optimize and create panorama.
Reply
#6
Change Lens settings /  Lens Type :  Cylindrical panorama

   
Reply
#7
(6 hours ago)denzjos Wrote: Change Lens settings /  Lens Type :  Cylindrical panorama
I really appreciate your help here, though I must admit I'm struggling to get as good a result. This is probably a stupid question, but I just want to clarify something which seems to contradict the advice given in the PTGui videos, where the subject of placement of horizontal control points was covered for approx 0.5 sec.
A pair of normal control points, placed on a pair of images, are meant to be placed on the same location.
A pair of vertical control points, placed on 2 copies of a single image, are meant to be placed on different locations on the same vertical line
You're suggesting that for a pair of horizontal control points they be placed on the same location of a horizontal line, and multiple pairs are placed on the same line to define the horizontality. Have I got that right? I must admit that the 'official' videos are not very helpful on this point.

As a complete aside, shooting a series of images with a shift lens for a panorama, instead of rotating the camera, should obviate these issues. I do actually have an old Hartblei 65mm shift lens with Pentax mount, but would have to upgrade to a K1 to get close to the resolution I want.
Reply


Forum Jump: