Re: [Gimp-user] How to flatten images of book page

2013-03-21 Thread Steve Kinney
On 03/21/2013 12:17 PM, Rob Antonishen wrote:
 I wrote a plugin to correct such distortion by drawing two paths: 
 http://registry.gimp.org/node/19214
 
 Here is a sample I ran on the page you provided:
 http://www.majhost.com/gallery/ffaat/gimp/more2/corrected.jpg
 
 I had to use it twice, once to correct the horizontal page bending,
 and once to correct the camera barreling after rotating the image.

Very nice!

In similar cases I have used the Perspective Tool in Corrective
(Backward) mode to square up warped photos-of-photos and documents,
sometimes followed by running Filters  Distorts  Lens Distortion
against all or part of the image.

The Distortion Correction Between Paths plugin adds another useful
tool to the bent document correction arsenal; my initial
experiments seem to indicate it will be especially effective with
photos of pages in books and similar geometries.

:o)

Steve



___
gimp-user-list mailing list
gimp-user-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gimp-user-list


Re: [Gimp-user] How to flatten images of book page

2013-03-21 Thread Liam R E Quin
On Thu, 2013-03-21 at 16:35 +0100, Mario Valle wrote:
 The new cage tool is fantastic to solve the following problem, but I 
 need suggestions how to be more effective.
 
 I take a photo with the smartphone of a book page. I need two hands for 
 this.

Don't forget that you probably also have feet...

Liam

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org freenode/#xml

___
gimp-user-list mailing list
gimp-user-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gimp-user-list


Re: [Gimp-user] How to flatten images of book page

2013-03-21 Thread Mario Valle

Fantastic! Thanks
The only addition is to run perspective tool afterwards to correct side 
parallelism.

Thanks again!
mario

On 21-Mar-13 17:17, Rob Antonishen wrote:

I wrote a plugin to correct such distortion by drawing two paths:
http://registry.gimp.org/node/19214

Here is a sample I ran on the page you provided:
http://www.majhost.com/gallery/ffaat/gimp/more2/corrected.jpg

I had to use it twice, once to correct the horizontal page bending, and
once to correct the camera barreling after rotating the image.


-Rob A




On Thu, Mar 21, 2013 at 11:35 AM, Mario Valle mva...@cscs.ch
mailto:mva...@cscs.ch wrote:

The new cage tool is fantastic to solve the following problem, but I
need suggestions how to be more effective.

I take a photo with the smartphone of a book page. I need two hands
for this. The page does not lies flat (see
https://dl.dropbox.com/u/__2571325/before.jpg
https://dl.dropbox.com/u/2571325/before.jpg) because no more hands
available to keep the page flat (and no glass sheet at hand...).
Using the cage tool with 3 nodes above and 3 below the text produces
an acceptable result (see
https://dl.dropbox.com/u/__2571325/after.jpg
https://dl.dropbox.com/u/2571325/after.jpg).

Question: Is there any better method? Any GIMP plugin or even
Android app to solve this problem?

I can trace the deformed rectangle that enclose the page text, but
then I don't know how to pass this info to the cage tool and ask to
make it a real rectangle.

Thanks for your help!
 mario

--
Ing. Mario Valle
Swiss National Supercomputing Centre (CSCS) | http://mariovalle.name/
v. Trevano 131, 6900 Lugano, Switzerland| Tel: +41 (91)
610.82.60 tel:%2B41%20%2891%29%20610.82.60
_
gimp-user-list mailing list
gimp-user-list@gnome.org mailto:gimp-user-list@gnome.org
https://mail.gnome.org/__mailman/listinfo/gimp-user-__list
https://mail.gnome.org/mailman/listinfo/gimp-user-list




--
Ing. Mario Valle
Swiss National Supercomputing Centre (CSCS) | http://mariovalle.name/
v. Trevano 131, 6900 Lugano, Switzerland| Tel: +41 (91) 610.82.60
___
gimp-user-list mailing list
gimp-user-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gimp-user-list