1 | initial version |
Ok I can reproduce issue in C++. IMHO There is no problem. Why results are differents? Because in grabcut you need to estimate gaussian mixture for foreground and background. In opencv mixture are estimated using kmeans. kmeans gives a gaussian mixture using an iterative algorithm with random trials (5=GMM::componentsCount). Mixture are hence differents and grabut results too....
Good questions!