Page 1 of 1

Calculating transluency from two image sample?

Posted: 2018-06-19T18:29:59-07:00
by manpaint
ImageMagick version: ImageMagick-7.0.6-Q16)
Operating System: Windows 7 (64 bits)

Apparently, comparing two image with a different background colors allow you to get the main element, including transluency, exemple:

Image

I was told the method could be automated with tools (that I don't have access to). Assuming ImageMagick is able to do this, does anyone know wich command can execute such task?

Re: Calculating transluency from two image sample?

Posted: 2018-06-19T19:45:03-07:00
by fmw42
This is the only reference in ImageMagick that I know. http://www.imagemagick.org/Usage/maskin ... background

Re: Calculating transluency from two image sample?

Posted: 2018-06-20T12:57:45-07:00
by manpaint
Thanks I found the command I was looking for!

The command for those who may stumble onto this thread in the future:

Code: Select all

convert a.png b.png -compose difference -separate match_alpha.png