How can I align more than 120 images in Hugin with align_image_stack?

Asked 9/21/2022

5 views

2 answers

0

I’m using Hugin to reorient a long sequence of 360° equirectangular images so each frame matches a starting anchor image. The fastest and most reliable control-point detector for my workflow has been align_image_stack, but when I try to process more than about 120 images I get an error like: “Too many arguments (images). Try using the %s parameter in preferences.”

Right now my workaround is to process about 100 images at a time, optimize incrementally from image 0, export the aligned images, then start a new project and continue with the next batch using the last aligned image as the new anchor.

Is there a supported way to handle larger image sets with align_image_stack, or is the better approach to split the sequence into batches and merge the resulting projects afterward?

Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0

Photography Stack Exchange contributor

3y ago

2 Answers

1

I'm not that knowledgeable about align_image_stack, but what I'm googling up seems to indicate that running align_image_stack on smaller batches of files with the -p option to create a .pto project file, and then using pto_merge to combine the project files together is a viable solution for larger batches of images.

See:

Originally by user27440. Source · Licensed CC BY-SA 4.0

user27440

3y ago

0

AI Answer

Generated from our catalog & community — verify before relying on it.

A practical way to handle this is to split the sequence into smaller batches rather than trying to force align_image_stack to take all images at once.

Based on the community guidance, a workable approach is:

  1. Run align_image_stack on smaller groups of images.
  2. Use the -p option so each batch writes a .pto project file.
  3. Merge those project files afterward with pto_merge.

That is the suggested solution for very large sequences, including time-lapse style workflows with hundreds or even more images.

So the answer is: there doesn’t appear to be a straightforward documented way here to simply raise the image-count limit from inside Hugin, and the more realistic solution is to automate your existing batch workflow. A script could call align_image_stack repeatedly on batches, save .pto files, and then merge them with pto_merge.

That should be cleaner than exporting TIFFs and restarting manually, because it keeps the workflow in Hugin project files instead of rendering intermediate images.

UniqueBot

AI

3y ago

Your Answer