Post Reply 

Fixing a panorama - straightening and stretching

Feb 26, 2014, 01:15 (This post was last modified: Feb 26, 2014 01:18 by Vizal.)
Post: #1
Photo Fixing a panorama - straightening and stretching
Hello there,
Here's my failed panorama.
Shot with hand with Samsung Galaxy S II Plus.
[Image: i10uu4Kq6IToS.jpg]
As it goes upwards it goes worse, imagine how I had to bent myself to shoot it all the way through ;D
I'd like to know how can I fix it using GIMP.
You can see a blue line on the bottom, being, of course, the horizon line.
I can, however fix that issue easily thanks to this plugin, by Orthoing by Path:
http://registry.gimp.org/node/26974
But the biggest issues are marked with red lines.
I want to warp the image so the bottom line hits the top line for a specific part of a image to straighten up.
Yet I want the image borders to stay at place, so it actually stretches where it has to (right side of the red line), while staying the same where it needs no intervention. You can imagine it as snapping.
And I want to repeat the process with all the segments of the image (I haven't marked them all, just a few for you to catch my drift), while keeping previous modifications at place, imagine it as putting dental braces on the image.
I guess cage distortion and/or perspective tool + paths would be needed.
I tried cage distortion (the outcome was horrid) and perspective tool (it bents entire image, and no additonal nodes can be added).
Yet I'm not very proficient with GIMP and I haven't taken up any classes for it, I only learn what I need at the moment, and it's always been going like that.
I'm not asking for the job to be done (though I won't complain Wink). I'd like you to tell me if that's even possible, and if, how to achieve my goal.
Many thanks in advance!
Find all posts by this user
Quote this message in a reply
Feb 26, 2014, 03:37 (This post was last modified: Feb 26, 2014 08:07 by iForStyle007.)
Post: #2
RE: Fixing a panorama - straightening and stretching
woah! hahaha, major sense of vertigo when you scroll from the bottom up! cool effect though

My idea off the bat,
You could try some degree of skewing the parts of the image using the Shear shear tool.

This will straighten the angles. Drag it up and down (see pic "1.")

1.
Copy part that fits on your screen, where it starts to become unaligned, but add some overlay to the copy for easier blending.

2. Then use the Scale scale tool to stretch the section back to the border.
or
after skewing the section
Layer > Layer to image size

Then click the Clone clone stamp tool & ctrl + click to pick a source from the image from the background from the top bottom of the damaged section before you move on to the next section.

Another way to fill in the empty spaces is after you finish skewing your sections (after image is flattened) is with liquid rescale:
a tutorial can be found here
http://liquidrescale.wikidot.com/forum/t-106572

I'll update you with a few screenshot examples with your image, but I have a tutorial in the buffer atm.
Visit this user's website Find all posts by this user
Quote this message in a reply
Feb 26, 2014, 08:55 (This post was last modified: Feb 26, 2014 09:02 by iForStyle007.)
Post: #3
RE: Fixing a panorama - straightening and stretching
Ok, here it is

1.     2.    
3.    

*For a more accurate shear, after shearing, drag a guideline from the top ruler to the red line that the rotate image plugin made (pic "1.") then re-shear to line up more.
http://docs.gimp.org/en/gimp-concepts-image-guides.html

*For the blurry ceiling you could use the Unsharp filter

-Duplicate the layer
Filters > Enhance > Unsharp mask (better result)
or "Filters > Enhance > Sharpen"
.
4.    

Then apply a layer mask to that layer with a bilinear gradient Blend to the mask, to just show the sharpened part of the ceiling. (^^^See pic "4.")

LAST, to fix the lens distortion, after skewing, there is some lens distortion at the top.
You can try to fix other parts of the photo by selecting the sections with Rectselect rectangle select.

Filters > Distorts > Lens distortion
-Adjust the "main" & "y shift" & maybe "edge" sliders

"In order to succeed, your desire for success should be greater than fear of failure." BC
[Image: 29uocaf.png]
iFS007 tut vids on YT ~ auto color B&W landscape tut
Visit this user's website Find all posts by this user
Quote this message in a reply
Feb 26, 2014, 09:41
Post: #4
RE: Fixing a panorama - straightening and stretching
(Feb 26, 2014 01:15)Vizal Wrote:  Here's my failed panorama.
Shot with hand with Samsung Galaxy S II Plus.

Was that taken as an all-in-one panorama? used to have an Olympus point-and-shoot that did that. Next time take individul shots.

Horribly distorted, going to be difficult to tweak.
Personally I would not spend too much time on it.

What I did, split the image up into 5, throw away the end that is wrecked.
Apply some perspective to the remaining 4
Join back together again with more perspective as needed. I used the pandora script for this, it is old but can be usefull in some circumstances.
crop the result.

This is about 5 minutes, you might get the top more in line, but it is way off originally.
   

** https://www.gimp-forum.net/ now answering questions**
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Stretching Text to fit shape? airmanskee 9 879 Sep 21, 2014 23:27
Last Post: airmanskee
  Fixing Photographs wired-circuit 9 523 Jul 5, 2014 21:16
Last Post: iForStyle007
  Help me for fixing dark photo. jeehyun 3 361 Jul 5, 2014 01:42
Last Post: jeehyun
  Straightening building on angle mockfrog 3 372 May 13, 2014 01:29
Last Post: mockfrog
  Fixing Clouds/bright sky using gimp 2.8 aliatt2 6 738 Feb 23, 2014 19:59
Last Post: aliatt2

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS