First time here? Check out the FAQ!
answered 2013-01-12 09:43:26 -0600
In the final when you compute then background mask use cvNot then inverse the background mask to get the foreground mask.