The grab cut algorithm for segmentation

Namespace:  Emgu.CV
Assembly:  Emgu.CV (in Emgu.CV.dll) Version: 2.1.0.649 (2.1.0.649)

Syntax

         
 C#  Visual Basic  Visual C++ 
public static void CvGrabCut(
	IntPtr img,
	IntPtr mask,
	Rectangle rect,
	IntPtr bgdModel,
	IntPtr fgdModel,
	int iterCount,
	GRABCUT_INIT_TYPE type
)
Public Shared Sub CvGrabCut ( _
	img As IntPtr, _
	mask As IntPtr, _
	rect As Rectangle, _
	bgdModel As IntPtr, _
	fgdModel As IntPtr, _
	iterCount As Integer, _
	type As GRABCUT_INIT_TYPE _
)
public:
static void CvGrabCut(
	IntPtr img, 
	IntPtr mask, 
	Rectangle rect, 
	IntPtr bgdModel, 
	IntPtr fgdModel, 
	int iterCount, 
	GRABCUT_INIT_TYPE type
)

Parameters

img
IntPtr
The image to be segmented
mask
IntPtr
The mask to initialize segmentation
rect
Rectangle
The rectangle to initialize the segmentation
bgdModel
IntPtr
The background model
fgdModel
IntPtr
The forground model
iterCount
Int32
The number of iternations
type
GRABCUT_INIT_TYPE
The initilization type

See Also