Maximum gap size to fill (in pixels).

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


public int MaxGapSize { get; set; }


The property specifies maximum vertical gap between white pixels to fill. If number of black pixels between some white pixels is bigger than this value, then those black pixels are left as is; otherwise the gap is filled with white pixels.

Default value is set to 10. Minimum value is 1. Maximum value is 1000.

See Also