Page 2 of 2
Re: Script to average images
Posted: 2012-07-15T18:31:39-07:00
by anthony
Woody wrote:ahhh thank you!
OK, follow on question: can ImageMagick weight the images i.e. the highest numbered contributes say 50%, then the next 25%, then 12.5%, and then 2 lots of 6.25% (i.e. to give 100%) ?
You are taking about weighted avergeing, which is also 'blending'.
http://www.imagemagick.org/Usage/compose/#blend
Re: Script to average images
Posted: 2012-07-15T18:49:43-07:00
by fmw42
anthony wrote:Woody wrote:ahhh thank you!
OK, follow on question: can ImageMagick weight the images i.e. the highest numbered contributes say 50%, then the next 25%, then 12.5%, and then 2 lots of 6.25% (i.e. to give 100%) ?
You are taking about weighted avergeing, which is also 'blending'.
http://www.imagemagick.org/Usage/compose/#blend
But you are limited to two images at a time for blending. Is that not correct? There is no arbitrary number of images with weights function.
Re: Script to average images
Posted: 2012-07-15T18:51:13-07:00
by anthony
fmw42 wrote:But you are limited to two images at a time for blending. Is that not correct? There is no arbitrary number of images with weights function.
True, but when you come down to it, any method can be de-composed to a sequence of two values at a time!
Re: Script to average images
Posted: 2012-07-15T18:54:35-07:00
by fmw42
anthony wrote:fmw42 wrote:But you are limited to two images at a time for blending. Is that not correct? There is no arbitrary number of images with weights function.
True, but when you come down to it, any method can be de-composed to a sequence of two values at a time!
True, but then you need to do some calculations to do running averaging rather than average all images at once. I posted a script earlier in this topic to show how to do the running average without weights, when you have too many images to do all at once. I have not tried to do that with weights yet.
Re: Script to average images
Posted: 2012-07-29T16:38:20-07:00
by Woody
So, the work is done!
Basically I've been playing around with TimeLapse movie on my Android phone, which with ICS is really easy.
Thing is that there's no ability to "drag" the shutter, so I thought maybe I could use ImageMagick to average some frames, and give a similar effect.
Turns out, you can get some nice results, and a handy side benefit is that you can separate the "drag" duration from your framerate ie you can average 3 seconds of frames, and have 1 frame per second in your movie.
Here's a howto:
http://www.hutsby.net/2012/07/making-ti ... gging.html
and some sample movies with different drags and timelapse:
http://www.youtube.com/watch?v=fPVumZ3z72Q
http://www.youtube.com/watch?v=FMgPPp81gOA
http://www.youtube.com/watch?v=nSRcs2jeWLs
Many thanks to the assistance I got!
Re: Script to average images
Posted: 2012-07-29T16:55:24-07:00
by fmw42
Very nice! Thanks for sharing.