Stitching scanned images

64 views
Skip to first unread message

Chris H

unread,
Nov 7, 2019, 5:53:42 PM11/7/19
to hugin and other free panoramic software
Hi,

My first post here so hello to all!
I have a question regarding stitching scanned images.
So I am scanning a book that is slightly wider than A4 so I end up with two scans for every page, the left and the right scans that need to be stitched.
I came across this tutorial http://hugin.sourceforge.net/tutorials/scans/en.shtml and am almost there, the only problem is Hugin by default seems to be overlapping those two images, so as a result if the right edge of the left scan has some imperfections resulting from for example that scan not being firmly pressed into the scanner along that edge, they will be reflected in the resulting panorama image, obviously same thing happens if there are some imperfections with the left edge of the right scan.
But more importantly what I am scanning is a book so the written sentences from both left and right image are also stitched with some kind of overlapping, but after that's done the edges of the letters on the resulting panorama are far from being as smooth as they are if you look at each image separately.

So the question... Is there a way to configure the stitcher so that everything to the left of the "stitching line" would come from the left image only and similarly everything to the right of the stitching line from the right image only?

Thanks in advance for any suggestions!
Chris

AKS-Gmail-IMAP

unread,
Nov 7, 2019, 8:02:23 PM11/7/19
to hugi...@googlegroups.com
Yes, use masks. On image A you mask off the part of image B you do not want to come from image A. On image B you mask off the part of image A you do not want to come from image B. By the way, if you had multiple image As and image Bs where each is a stack of the same image at different exposures then you would need to use the exact same mask for the As and the exact same mask for the Bs. That is when the mask copy paste ability comes in handy.

Regarding the sentence, depending on how many of these you need to do and also how well produced the finished product needs to look, I would add in the sentence with another application. The sentence text can be added with an opaque background so that the new text covers up the poorly stitched sentence.

--
A list of frequently asked questions is available at: http://wiki.panotools.org/Hugin_FAQ
---
You received this message because you are subscribed to the Google Groups "hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hugin-ptx+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hugin-ptx/86994b19-d5d6-46b9-8598-9923015f7617%40googlegroups.com.

Terry Duell

unread,
Nov 7, 2019, 8:11:48 PM11/7/19
to hugi...@googlegroups.com
Hello Chris,

On Fri, 08 Nov 2019 09:44:56 +1100, 'Chris H' via hugin and other free
panoramic software <hugi...@googlegroups.com> wrote:

[snip]

> So the question... Is there a way to configure the stitcher so that
> everything to the left of the "stitching line" would come from the left
> image only and similarly everything to the right of the stitching line
> from the right image only?
>

This is only a guess, not having seen your project, and hoping I've
correctly understood the problem.
I would first try stitching each page separately.

Cheers,
--
Regards,
Terry Duell

Chris H

unread,
Nov 8, 2019, 7:09:28 AM11/8/19
to hugin and other free panoramic software
aks,

Masking worked like a charm! Thanks a lot!
To unsubscribe from this group and stop receiving emails from it, send an email to hugi...@googlegroups.com.

Abrimaal

unread,
Nov 8, 2019, 1:10:24 PM11/8/19
to hugin and other free panoramic software
It's simpler to use Include masks.
Include the whole text of the left page on the left image
and the whole text of the right page on the right image.

| [ text text text  ] | [part of
| [ include mask    ] | [right page
| [ on whole text   ] | [no need to
| [ of  left page   ] | [exclude

No need to exclude mask on the right side, because the right page is included on the 2nd image.


To unsubscribe from this group and stop receiving emails from it, send an email to hugi...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages