First time here? Check out the FAQ!
answered 2013-08-08 03:11:18 -0600
i think that you should have a look at the floodfill, watershed and grabcut algorithms. There is also an example in this book.