Flood fill tolerance.

Namespace:  AForge.Imaging.Filters
Assembly:  AForge.Imaging (in AForge.Imaging.dll) Version: 2.2.5.0 (2.2.5.0)

Syntax

C#
public Color Tolerance { get; set; }

Remarks

The tolerance value determines the level of similarity between colors to fill and the pointed color. If the value is set to zero, then the filter does nothing, since the filling area contains only one color and its filling with mean is meaningless.

The tolerance value is specified as Color, where each component (R, G and B) represents tolerance for the corresponding component of color. This allows to set different tolerances for red, green and blue components.

Default value is set to (16, 16, 16).

See Also