Ask Your Question

Revision history [back]

What you need to do is to AND the binary image by the original image.

cv::bitwise_and(src, dst, bk);

bk is the output image.