1 | initial version |
Hi @densvr!
If you want to mask only a part of one image into another image, you can do that by this method.
Mat Source = imread("S1.jpg", 1);
Mat mMask = imread("Smask.bmp",0); This is your Create mask output.
Mat Destination;
Source.copyTo(Destination,mMask);
imshow("Destination",Destination);
In your code you are displaying some other Mat(mFrame which is not altered) in the Window. Please read This wiki then this http://answers.opencv.org/faq/