4
\$\begingroup\$

I want to align aseveral images that contain the progress of assembling an electronic circuit [sample images here: https://i.sstatic.net/6XWXv.jpg, https://i.sstatic.net/lFJZE.jpg, https://i.sstatic.net/FiUUe.jpg]

On Windows 10, I open them in Hugin (version 2019.2.0.b690aa0334b5), select "Align image stack" under settings, chose "positions (y, p, r)" under geometric optimization as well as the default "low dynamic range" under photometric optimization:

enter image description here

I then click on "Create control points" it gives me the error message "align_image_stack.exe failed with error code: 1" as you can see here:

enter image description here

Okay, so I tried the same in command line and tried a command line call via align_image_stack -a al -t 3 -c 20 img1.jpg img2.jpg img3.jpg, but to no avail:

enter image description here

It tells me "No Feature Points" and "Bad Params." The debug.pto file has this content here: https://www.heypasteit.com/clip/0IUF3V

What can I do?

\$\endgroup\$
2
  • \$\begingroup\$ It is possible that Hugin looks mostly along the borders of the image, and since your image has very wide margins, it cannot find anything intresting there. Try with a much tighter crop around the circuit board. Or IIRC you can set interest points yourself, in which case the 4 corners of the board would be good candidates. \$\endgroup\$
    – xenoid
    Feb 25, 2020 at 8:08
  • \$\begingroup\$ Thanks! Do you have any reference on how to set the interest points via command line? \$\endgroup\$
    – Jens
    Feb 26, 2020 at 16:40

1 Answer 1

1
\$\begingroup\$

Do not use an image stack (this is meant for images with the same content but different exposures). Instead just do a regular alignment, I just tried with your 3 example images (on a Mac), this works fine.

\$\endgroup\$
3
  • \$\begingroup\$ Will give this a try! I had given up hope on this altogether, and have been using Photoshop so far, for $9.99 a month, sigh. Thank you! \$\endgroup\$
    – Jens
    Sep 20, 2022 at 7:17
  • \$\begingroup\$ I cannot find this "regular alignment" option, could you tell me how to activate it? \$\endgroup\$
    – Jens
    Oct 30, 2022 at 21:37
  • \$\begingroup\$ Leave the default setting (Hugin's CPFind) and do not use an image stack. Just click on 'Create control points' (and then Optimize -> Geometric -> Calculate). If you find the alignment to be inaccurate, you may need to manually remove some. \$\endgroup\$
    – vaifrax
    Oct 31, 2022 at 12:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.