![]() | 1 | initial version |
try this:
Mat blend = (1-alpha)*back+alpha*fore;
blend.copyTo(back, mask);
![]() | 2 | No.2 Revision |
try this:
Mat blend = (1-alpha)*back+alpha*fore;
(1-alpha)*back+alpha*fore; // same as addWeighted()
blend.copyTo(back, mask);