Merging / overlapping several images

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
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Merging / overlapping several images

Post by anthony »

Assuming by 'collage' you mean generating a panorama like image from multiple images.
You are not exactly clear....

Oh it is posible. However in this sort of thing each image will be slightly distorted in different ways and also have slight color changes. This means you need to
1/ find common points bettween images, a process known as image registration
2/ perspective distort images so teh common points will fit together
3/ adjust colors of images in overlap areas so the bland smoothly together.
4/ overlay them into a larger image.

All steps have there problems. IM can do steps 2 and 4, and we are slowly working to improve things for multiple registration points beyond the minimal 4 points needed.
Other things will also be looked at in due course.

In Summary... IM is working toward this, slowly but surely!

For lots of info look at the online course notes of a Computation Photography
This explains the process quite well by looking at the assignments and examples they given there students.
http://graphics.cs.cmu.edu/courses/15-4 ... l/463.html

You may also be interest in this video...
http://www.ted.com/index.php/talks/view/id/129
Last edited by anthony on 2007-09-04T18:26:52-07:00, edited 1 time in total.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: Merging / overlapping several images

Post by Bonzo »

I have been looking at something similar using php - http://www.rubblewebs.co.uk/imagemagick ... mbined.jpg

You could probably modify the code to what you want. I am making my images look missaligned on purpose !

I am still working on the code for automaticaly aligning the images.

You can use a comand in ImageMagick called Mosaic which may do what you want, I have a couple of examples on my site.

I suppose it would be good if you can post an example of what you want.

Finished code/example - http://www.rubblewebs.co.uk/imagemagick ... mbined.jpg
Post Reply