ImageTColor, TDepthGrabCut Method |
http://www.emgu.com
Use grabcut to perform background foreground segmentation.
Namespace:
Emgu.CV
Assembly:
Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.1.1.3497 (4.1.1.3497)
Syntaxpublic Image<Gray, byte> GrabCut(
Rectangle rect,
int iteration
)
Public Function GrabCut (
rect As Rectangle,
iteration As Integer
) As Image(Of Gray, Byte)
public:
Image<Gray, unsigned char>^ GrabCut(
Rectangle rect,
int iteration
)
member GrabCut :
rect : Rectangle *
iteration : int -> Image<Gray, byte>
Parameters
- rect
- Type: System.DrawingRectangle
The initial rectangle region for the foreground - iteration
- Type: SystemInt32
The number of iterations to run GrabCut
Return Value
Type:
ImageGray,
ByteThe background foreground mask where 2 indicates background and 3 indicates foreground
See Also