| MatFloodFill Method (Point, Scalar, Rect, NullableScalar, NullableScalar, FloodFillFlags) |
Fills a connected component with the given color.
Input/output 1- or 3-channel, 8-bit, or floating-point image.
It is modified by the function unless the FLOODFILL_MASK_ONLY flag is set in the
second variant of the function. See the details below.
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public int FloodFill(
Point seedPoint,
Scalar newVal,
out Rect rect,
Nullable<Scalar> loDiff = null,
Nullable<Scalar> upDiff = null,
FloodFillFlags flags = FloodFillFlags.Link4
)
Public Function FloodFill (
seedPoint As Point,
newVal As Scalar,
<OutAttribute> ByRef rect As Rect,
Optional loDiff As Nullable(Of Scalar) = Nothing,
Optional upDiff As Nullable(Of Scalar) = Nothing,
Optional flags As FloodFillFlags = FloodFillFlags.Link4
) As Integer
public:
int FloodFill(
Point seedPoint,
Scalar newVal,
[OutAttribute] Rect% rect,
Nullable<Scalar> loDiff = nullptr,
Nullable<Scalar> upDiff = nullptr,
FloodFillFlags flags = FloodFillFlags::Link4
)
member FloodFill :
seedPoint : Point *
newVal : Scalar *
rect : Rect byref *
?loDiff : Nullable<Scalar> *
?upDiff : Nullable<Scalar> *
?flags : FloodFillFlags
(* Defaults:
let _loDiff = defaultArg loDiff null
let _upDiff = defaultArg upDiff null
let _flags = defaultArg flags FloodFillFlags.Link4
*)
-> int
Parameters
- seedPoint
- Type: OpenCvSharpPoint
Starting point. - newVal
- Type: OpenCvSharpScalar
New value of the repainted domain pixels. - rect
- Type: OpenCvSharpRect
Optional output parameter set by the function to the
minimum bounding rectangle of the repainted domain. - loDiff (Optional)
- Type: SystemNullableScalar
Maximal lower brightness/color difference between the currently
observed pixel and one of its neighbors belonging to the component, or a seed pixel
being added to the component. - upDiff (Optional)
- Type: SystemNullableScalar
Maximal upper brightness/color difference between the currently
observed pixel and one of its neighbors belonging to the component, or a seed pixel
being added to the component. - flags (Optional)
- Type: OpenCvSharpFloodFillFlags
Operation flags. Lower bits contain a connectivity value,
4 (default) or 8, used within the function. Connectivity determines which
neighbors of a pixel are considered.
Return Value
Type:
Int32[Missing <returns> documentation for "M:OpenCvSharp.Mat.FloodFill(OpenCvSharp.Point,OpenCvSharp.Scalar,OpenCvSharp.Rect@,System.Nullable{OpenCvSharp.Scalar},System.Nullable{OpenCvSharp.Scalar},OpenCvSharp.FloodFillFlags)"]
See Also