MATLAB File Help: cv.grabCut Index
cv.grabCut

Runs the GrabCut algorithm

mask = cv.grabCut(img, rect);
mask = cv.grabCut(img, mask);
[mask, bgdmodel, fgdmodel] = cv.grabCut(...);
[...] = cv.grabCut(..., 'OptionName', optionValue, ...);

Input

Output

Options

The function implements the GrabCut image segmentation algorithm. http://en.wikipedia.org/wiki/GrabCut

See also