First time here? Check out the FAQ!
answered Jul 15 '14
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.