title: How to generate foreground-only image given the foreground silhouette in OpenCV?
body: <p>I did the background substraction part for my foreground extraction task. Now that i have silhouette representing foreground in white and background in black, I dont know how to make a foreground image containing only the pixels values (from the original frame). I am using Opencv 2.3 and i am using Mat for storing images. Any ideas?
  Thanks in advance..</p>