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.
Arithmetic compare to find darkest pixels from 2 images?
Re: Arithmetic compare to find darkest pixels from 2 images?
I figured it out myself:
Code: Select all
composite -compose darken 1.bmp 2.bmp out.bmp
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: Arithmetic compare to find darkest pixels from 2 images?
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.
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.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
Re: Arithmetic compare to find darkest pixels from 2 images?
I compare 100 snapshots of a tv-series with that, to get one picture where only the TV-Logo stays visible.anthony wrote:I would be interested to know what you use this for!
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?
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: Arithmetic compare to find darkest pixels from 2 images?
Darken and Lighen are listed together in IM examples
http://imagemagick.org/Usage/compose/#lighten
http://imagemagick.org/Usage/compose/#darken
http://imagemagick.org/Usage/compose/#lighten
http://imagemagick.org/Usage/compose/#darken
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/