First time here? Check out the FAQ!
answered 2014-07-15 10:12:38 -0600
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.