Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

copy part of a image Mat to another one


Using the source code from this link ( I have a CV_8UC3 mat with which contain a black background and the contour of my image (I've filled the contour using CV_FILLED parameter).

I would like to know it is it possible to copy/insert only the contour from my CV_8UC3 mat to the original image? (both image have the same size).

I've searched on the internet and tried function like copyTo(), ROI but without success.

I really thank you for your help