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:
- An internet archived nabble discussion thread on aligning 1000 images for a timelapse.
- hugin-ptx Google group threads on aligning more than 250 images and pushing align_image_stack to its limits.
Originally by user27440. Source · Licensed CC BY-SA 4.0
user27440
3y ago
0
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:
- Run
align_image_stackon smaller groups of images. - Use the
-poption so each batch writes a.ptoproject file. - 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
AI3y ago
Your Answer
Related Questions
How can I stabilize and align a large set of still photos for a timelapse on Windows?
How can I batch-process PNG images in Photoshop without converting them to JPG?
How do I run align_image_stack on extracted video frames in Windows?
Why does align_image_stack fail on handheld macro focus-stacking shots?
How can I automatically create a composite of a moving subject from many aligned frames?