Ask Your Question

Revision history [back]

Ok, it seems like the solution was simply to resize the input image. It was a high resolution image and shrinking made it reasonable input for grabcut.

resize(src, dst, Size(src.cols / 5, src.rows / 5), 0, 0, CV_INTER_AREA);