median of a sequence of images operating pixel-by-pixel

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?".
jmaroza

Re: median of a sequence of images operating pixel-by-pixel

Post by jmaroza »

magick wrote:Ok, we'll need to build ImageMagick 6.6.6-1 for Windows and release it. We'll need a few days.
Ok magick, thanks for your prompt response, I was going crazy.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: median of a sequence of images operating pixel-by-pixel

Post by anthony »

What is the -list option to see the methods available for evaluate-sequence?
I can not see anything in -list list that seems to match, and no list item is mentioned in the offical options page. http://imagemagick.org/script/command-l ... e-sequence

Also while 'add' seems to work the methods 'multiply' and 'divide' doesn't though they are accepted!

It is all very very strange.

I am writing this up in
http://www.imagemagick.org/Usage/layers ... e-sequence
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: median of a sequence of images operating pixel-by-pixel

Post by anthony »

median is working.
http://www.imagemagick.org/Usage/layers ... seq_median

It will take all the pixels at some location from each image, and sort them by intensity.
It will then select the 'middle' pixel from the sorted list.

NOTE that unlike 'max' or 'min' (whcih is equivelent to compose 'lighten' and 'darken') it will select the whole of the pixel, not just the individual red, green, blue components. that is the resulting image will never contain a new color that was not found in at least one of the images given.

See Lighten and Darken about how it can generate 'mixed' colors.
http://www.imagemagick.org/Usage/compose/#lighten
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
jmaroza

Re: median of a sequence of images operating pixel-by-pixel

Post by jmaroza »

OK, -evaluate-sequence is working! Thanks a lot to the team and congratulations for a great work!
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: median of a sequence of images operating pixel-by-pixel

Post by anthony »

Necro-post split into new topic viewtopic.php?f=1&t=33163
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply