Page 1 of 1
Arithmetic compare to find darkest pixels from 2 images?
Posted: 2008-02-16T19:22:44-07:00
by form
Hi.
I try to do an arithmetic comparisation of two images, to write the darkest pixel of every image to an output image.
(like the function "arithmetic/darkest" in PaintShop Pro).
Is that possible with ImageMagick?
Please help me out.
Re: Arithmetic compare to find darkest pixels from 2 images?
Posted: 2008-02-16T20:27:21-07:00
by form
I figured it out myself:
Code: Select all
composite -compose darken 1.bmp 2.bmp out.bmp
Re: Arithmetic compare to find darkest pixels from 2 images?
Posted: 2008-02-19T23:15:43-07:00
by anthony
I would be interested to know what you use this for!
Basically I breifly documented the operation in IM examples, But never knew why you want to do this.
The same goes for a number of other operations.
WARNING: some programs only restrict the draken/lighen test to just the individual channels of the two images and not the pixels overall grayscale color. Caution is advised.
Re: Arithmetic compare to find darkest pixels from 2 images?
Posted: 2008-02-20T05:33:58-07:00
by form
anthony wrote:I would be interested to know what you use this for!
I compare 100 snapshots of a tv-series with that, to get one picture where only the TV-Logo stays visible.
Then it can be used for a de-logo filter, which blends that logo out.
Btw, i cant find that "darken" function in your IM Examples. Under which category did you described it?
Re: Arithmetic compare to find darkest pixels from 2 images?
Posted: 2008-02-20T18:29:35-07:00
by anthony