Align/orient images with a reference image

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
marie
Posts: 1
Joined: 2013-10-16T14:34:10-07:00
Authentication code: 6789

Align/orient images with a reference image

Post by marie »

Hello, I need to align some images (above 30) to average them. i have a reference image (for example a vertical line) and i would like to orient all the other images (rotated and translated line) in the same position in order to have a clear average image. Is it possible define an algorithm that aligns each image with the reference image?
thanks
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Align/orient images with a reference image

Post by fmw42 »

can you post links to the reference image and at least one other image. what is your IM version and platform?

Is the problem one of only shifts and no rotation or is rotation involved? What about scale differences?

If rotation and scale are involved, then you would need to pick 3 control points on each image and then use an affine warp. See
http://www.imagemagick.org/Usage/distorts/#affine
and
http://www.imagemagick.org/Usage/distor ... rol_points
Post Reply