Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

try this:

Mat blend = (1-alpha)*back+alpha*fore;
blend.copyTo(back, mask);

try this:

Mat blend = (1-alpha)*back+alpha*fore;
(1-alpha)*back+alpha*fore; // same as addWeighted()
blend.copyTo(back, mask);