Merging 1000 images into one

Discuss digital image processing techniques and algorithms. We encourage its application to ImageMagick but you can discuss any software solutions here.
Post Reply
wolas
Posts: 4
Joined: 2011-09-15T05:22:12-07:00
Authentication code: 8675308

Merging 1000 images into one

Post by wolas »

I want to do something like this http://feministphilosophers.wordpress.c ... the-world/ just not with faces :)
so what would be best way to merge at very least 1000 images into one image? Is IM usable in this task. As last resort I would write program which would analyze image by image and add little % from all images to RGB "numbers" and then make those numbers into image.

With IM I think its possible to merge two images into one then merge another two, then merge of those twos into one... Just like tree, but this would require count/2 of images for good results so... But still good way I think.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Merging 1000 images into one

Post by fmw42 »

User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Merging 1000 images into one

Post by anthony »

That particular image probably also had some distortion to scale and position the eyes and perhaps mouth in just the right place.
Otherwise it would have been a lot more blurry.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Merging 1000 images into one

Post by fmw42 »

Are you asking about how to average a bunch of images into one image or how to take a bunch of images and append/montage them so that all the images are side-by-side. If the latter, then the links above should do. If the former, then you need to write a script to perform a running average of the images one-at-time. Alternately, if the images are all small, then you could put the filenames into a text file and read the text file as input to -evaluate-sequence mean (formerly -average), so long as your OS does not have restriction on the number of characters in the command line.

see
http://www.imagemagick.org/script/comma ... e-sequence
http://www.imagemagick.org/Usage/layers/#average
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Merging 1000 images into one

Post by anthony »

There was another topic on actual averaging of lots of images. basically the answer was to do them in equal sized groups, then average those group results.

That should avoid quantum rounding effects from both integers or even floating point values (which also has quantum rounding but scaled to the magnitude of the data)
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Merging 1000 images into one

Post by fmw42 »

Here is the reference to the post that Anthony mentioned.

viewtopic.php?f=1&t=21279
Post Reply