Fastest crude batch stitcher?

28 views
Skip to first unread message

Paul Womack

unread,
Jan 16, 2023, 3:52:48 AM1/16/23
to hugi...@googlegroups.com
I have an old lap top running Lubuntu, and have been working on a set of scans of old documents, taken using a pano head, 3x3 matrix.

I would like to "batch" the mapping and stitching. Nona can be persauded to do all the mapping for me, but I would like a low resource (AKA fast) way to do the stitching.

Since the taking circumstances are very constrained, I am no concerned about seams or blending.

At the moment, I can get the results I want be simply making a multilayer TIFF with Nona, pulling the tiff into Gimp and flattening.

Is there any command line tool or script I can use to replace Gimp, which is not readily command line scriptable?

David W. Jones

unread,
Jan 16, 2023, 4:43:40 AM1/16/23
to hugi...@googlegroups.com
Imagemagick should come with Ubuntu. Check the repository. Fully command-line driven.
--
David W. Jones
gnome...@gmail.com
exploring the landscape of god
http://dancingtreefrog.com

Sent from my Android device with F/LOSS K-9 Mail.

T. Modes

unread,
Jan 16, 2023, 12:58:21 PM1/16/23
to hugin and other free panoramic software
bugbear...@gmail.com schrieb am Montag, 16. Januar 2023 um 09:52:48 UTC+1:
I would like to "batch" the mapping and stitching. Nona can be persauded to do all the mapping for me, but I would like a low resource (AKA fast) way to do the stitching.

Since the taking circumstances are very constrained, I am no concerned about seams or blending.
Then take the internal blender, either by adding -m TIFF instead of -m TIFF_m to the command line or by setting the parameter in the pto file.
So you save also the time for saving the intermediate files to disc and then read again by a second program.

Paul Womack

unread,
Jan 23, 2023, 4:14:50 AM1/23/23
to hugi...@googlegroups.com
In my ignorance I've been using -m TIFF_m, and then trying to "solve" the problem of stitching the sub-images of the multipage tiff.

I literally didn't realise that -m TIFF would do the mapping and stitching in one hit.

Even better, adding -g (use GPU) gave a COLOSSAL benefit.

My laptop has a Intel(R) Core(TM)2 Duo CPU     T5470  @ 1.60GHz, and 4Gb of RAM (which is the most it can take).
and NVIDIA Corporation G86M [GeForce 8400M GS] (rev a1) (processor info via lscpu, lsvga)

Output stitch is 6427x5265.

Using the CPU:
Command being timed: "nona -m JPEG -o kk hugin.pto"
User time (seconds): 167.22    
Maximum resident set size (kbytes): 417236      
File system inputs: 66432
File system outputs: 15752

Using the GPU:
Command being timed: "nona -g -m JPEG -o kk hugin.pto"
User time (seconds): 24.07
Maximum resident set size (kbytes): 505380
File system inputs: 4048
File system outputs: 15920

Hell yeah!


--
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/5e96378c-07e3-4a12-bdcd-fc80912fef46n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages