Easy masking of RGB images

Adam Hughes hughesadam87 at gmail.com
Tue Nov 18 17:01:06 EST 2014


Hi,

I often find myself wanting to mask two overlay two color images, where the
second image will replace values on the first image rather than adding.  IE:

img1 + img 2 --> adds values
img1 U img2 --> replaces values

Essentially, overlay all the pixels that are not black.

Is there a library or set of functions somewhere that makes this easy?  I
remember a while back thinking I would have to write my own overlay/masking
utilities to get this behavior, but I hope that's not true.

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-image/attachments/20141118/5f8008f4/attachment.html>


More information about the scikit-image mailing list