CvFloodFill Method (CvArr, CvPoint, CvScalar, CvScalar, CvScalar, CvConnectedComp, FloodFillFlag, CvArr) OpenCvSharp Class Library
Fills a connected component with given color.

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public static void FloodFill(
	CvArr image,
	CvPoint seedPoint,
	CvScalar newVal,
	CvScalar loDiff,
	CvScalar upDiff,
	out CvConnectedComp comp,
	FloodFillFlag flags,
	CvArr mask
)

Parameters

image
Type: OpenCvSharpCvArr
Input 1- or 3-channel, 8-bit or floating-point image. It is modified by the function unless CV_FLOODFILL_MASK_ONLY flag is set.
seedPoint
Type: OpenCvSharpCvPoint
The starting point.
newVal
Type: OpenCvSharpCvScalar
New value of repainted domain pixels.
loDiff
Type: OpenCvSharpCvScalar
Maximal lower brightness/color difference between the currently observed pixel and one of its neighbor belong to the component or seed pixel to add the pixel to component. In case of 8-bit color images it is packed value.
upDiff
Type: OpenCvSharpCvScalar
Maximal upper brightness/color difference between the currently observed pixel and one of its neighbor belong to the component or seed pixel to add the pixel to component. In case of 8-bit color images it is packed value.
comp
Type: OpenCvSharpCvConnectedComp
Pointer to structure the function fills with the information about the repainted domain.
flags
Type: OpenCvSharpFloodFillFlag
The operation flags. Lower bits contain connectivity value, 4 (by default) or 8, used within the function. Connectivity determines which neighbors of a pixel are considered. Upper bits can be 0 or combination of the flags
mask
Type: OpenCvSharpCvArr
Operation mask
See Also

Reference