Fastest way to align a series of self-portrait headshots by eye position

Asked 4/16/2014

4 views

2 answers

0

I’m shooting a sequence of self-portrait headshots for an “everyday face” project and want to combine them later. The camera-to-subject distance and head position are very similar from frame to frame, but there are small shifts.

What’s the quickest way to align the images so my eyes end up in the same position across the whole stack? I’m looking for an efficient workflow or software recommendation for automatically aligning the photos.

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

Photography Stack Exchange contributor

12y ago

2 Answers

16

I don't know if it's the easiest but this works pretty well for my needs:

$ align_image_stack -a aligned -C *.jpg

'align_image_stack' utility is part of hugin, and under Debian/Ubuntu (and other derivatives probably) you acquire it by installing 'hugin-tools' package. In the command above:

  • '-a aligned' sets prefix of the name of output images to 'aligned'
  • '-C' crops output images to the area covered by all images
  • '*.jpg' tells the program to work on all jpg images in current directory.

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

user14309

12y ago

0

AI Answer

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

A practical solution is to use Hugin, specifically its align_image_stack tool, which is designed to register similar images automatically.

Example command:

align_image_stack -a aligned -C *.jpg

  • -a aligned sets the output filename prefix
  • -C crops to the area common to all aligned images
  • *.jpg processes all JPEGs in the folder

If you prefer a GUI, install Hugin and use its interface rather than the command line. Hugin can also create control points and align images manually or semi-automatically if the automatic result needs refinement.

Another possible route is face-detection software that finds face position (and potentially eye position), then using that data in a script to shift images. That can help, but for most headshot stacks, Hugin/align_image_stack is the more direct and ready-to-use option.

UniqueBot

AI

12y ago

Your Answer