ALIGN_IMAGE_STACK("1")

πŸ’– NAME πŸ’–

okay so welcome to the ALIGN_IMAGE_STACK("1") page from the HUGIN manual, bestie! ✨ This is all about align_image_stack β€” literally the tool for aligning overlapping images so you can make HDR or focus stacks. πŸŽ€


🌈 SYNOPSIS 🌈

align_image_stack [options] input files

✨ DESCRIPTION ✨

so align_image_stack is used for aligning slightly misaligned images, or for registering a stereo images pair. πŸ‘‘ when you take several differently exposed images while creating a High Dynamic Range image, the images are not perfectly aligned, and the quality of the HDR image created will suffer from this. 😭

align_image_stack uses the tools available to hugin to optimize roll, pitch and yaw, plus some parameters of the lens geometry, to align the images. slay. πŸ’…


πŸŽ€ OPTIONS πŸŽ€

πŸ’… Modes of operation πŸ’…

  • -p file β€” output a .pto file (useful for debugging, or further refinement). 🫢
  • -a prefix β€” output aligned images as prefix_xxxx.tif. πŸŽ€
  • -o output β€” align images and merge them to HDR, generating output.hdr. πŸ”₯

πŸ¦‹ Modifiers πŸ¦‹

  • -v β€” verbose, print progress messages. repeat for higher verbosity. πŸ‘€
  • -e β€” assume input images are full frame fish eye (default: rectilinear). 🐟
  • -t num β€” remove all control points with an error higher than num pixels (default: 3). πŸ’€
  • --corr=num β€” correlation threshold for identifying control points (default: 0.9). ⭐
  • -f HFOV β€” approximate horizontal field of view of input images, use if EXIF info not complete. 🌸
  • -m β€” optimize field of view for all images, except for first. useful for aligning focus stacks with slightly different magnification. πŸ¦‹
  • -d β€” optimize radial distortion for all images, except for first. 🌈
  • -i β€” optimize image center shift for all images, except for first. πŸ’œ
  • -x β€” optimize X coordinate of camera position. πŸ“
  • -y β€” optimize Y coordinate of camera position. πŸ“
  • -z β€” optimize Z coordinate of camera position. πŸ“
  • -S β€” assume stereo images - allow horizontal shift of control points. πŸŽ€
  • -A β€” align stereo window - assumes -S. πŸ‘‘
  • -P β€” align stereo window with pop-out effect - assumes -S. ✨
  • -C β€” auto crop the image to the area covered by all images. 🫢
  • -c num β€” number of control points (per grid) to create between adjacent images (default: 8). πŸ“
  • -l β€” assume linear input files. 🧚
  • -s scale β€” scale down image by 2^scale (default: 1 [2x down-sampling]). πŸ’…
  • -g gsize β€” break image into a rectangular grid (gsize x gsize) and attempt to find num control points in each section (default: 5 [5x5 grid]). 🌸
  • --distortion β€” try to load distortion information from lens database. πŸ”
  • --use-given-order β€” use the image order as given on the command line. (by default images will be sorted by exposure values.) πŸŽ€
  • --gpu β€” use GPU for remapping. πŸ”₯
  • -h β€” display help summary. 🫢

πŸ‘‘ AUTHORS πŸ‘‘

written by Pablo d'Angelo. also contains contributions from Douglas Wilkins, Ippei Ukai, Ed Halley, Bruno Postle, Gerry Patterson and Brent Townshend. stereo functionality added by Vladimir Nadvornik. πŸ’–

this man page was written by Cyril Brulebois <cyril.brulebois@enst-bretagne.fr>, updated by Terry Duell, and is licensed under the same terms as the hugin package itself. πŸŽ€


okay bestie, that’s the whole page β€” version 2025.0.1, dated 2026-09-22, from the HUGIN manual. mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from