Ask Your Question

Revision history [back]

Use copyTo :

overlappedIm = im1.clone();
im2.copyTo(im1,mask);

Use copyTo :

overlappedIm = im1.clone();
im2.copyTo(im1,mask);
im2.copyTo(overlappedIm ,mask);