Page 1 of 1

Blending/merging N images with more weight for brighter areas in ImageMagick

Posted: 2018-05-02T12:30:27-07:00
by sm535
Hello All,

Need to merge/blend two images in ImageMagick such that brighter parts of each image will get more weight towards the final blended result. For example, if there are two images with a light spot in position A and B respectively, the darker parts of the second image in the position A will be given, say 10%, weight while the brighter part from the second image would get 90% of the weight during final merging. I have tried the following in ImageMagick without success:

convert -luminize
convert -evaluate-sequence mean
composite -dissolve P

Re: Blending/merging N images with more weight for brighter areas in ImageMagick

Posted: 2018-05-02T12:43:38-07:00
by fmw42
Please, always provide your IM version and platform when asking questions, since syntax may differ. Also provide your exact command line and if possible your images.

See the top-most post in this forum "IMPORTANT: Please Read This FIRST Before Posting" at http://www.imagemagick.org/discourse-se ... f=1&t=9620

For novices, see

http://www.imagemagick.org/discourse-se ... f=1&t=9620
http://www.imagemagick.org/script/comma ... essing.php
http://www.imagemagick.org/Usage/reference.html
http://www.imagemagick.org/Usage/
https://github.com/ImageMagick/usage-markdown

Create a mask for each image with it lighter where you want to emphasize one image and darker where you want to emphasize the other image. The do a 3 image composite with the mask as the third image. See https://www.imagemagick.org/Usage/compose/#compose