u/mspong

Hugin is now good at stitching scans

This is for people who scan large format things like posters and newspapers. If you're like me you've tried to use Hugin before to stitch flat scans together, usually with poor results. I have used it many times for making photo panoramas, the original purpose for this software, usually with good results. The thing is, photo panoramas are by design distorted, which you don't want in flat scans of documents. Recently I was challenged to scan some music papers and gave it another try. After reading the usual complicated instruction sets, which involved manually setting control points and so on, I looked at the Simple interface, and noticed there were several settings in the Align pulldown just for stitching flat scans. They all work. I have noticed that the "Scanned images" scripts sometimes cause colour problems when you have 3 or more scans, but "Align stacked images" solves that, as long as the scans are clean and good. The output has good detail, even halftone textures in newspaper illustrations are matched and preserved.

A few tips:

  • When you load the scans set HFOV (horizontal field of view) to 5
  • In the preferences, look for "Downscale final pano" which by default is set to 75% and set it to 100% so it doesn't downscale the results. Unless you want it to.
  • The output in my case is set to 150dpi even though I feed it 300dpi scans, and I can't find a setting to change that. This can cause problems if you go on to process the results in ScanTailor. You'll need to change it somehow. I use the following ImageMagick script:

mogrify -units PixelsPerInch -density 300 *.png

https://preview.redd.it/a36yjou8zr9h1.png?width=1344&format=png&auto=webp&s=f45fd53a630c251e5e181b70c6cfc72eaab85a6f

reddit.com
u/mspong — 2 months ago