![]()
Flood Fill filtersAForge.NET framework provides two pointed flood filter for now – filters Below is the list of implemented flood fill algorithms and the result of Source image Pointed Color Flood Fill // create filter PointedColorFloodFill filter = new PointedColorFloodFill( ); // configure the filter filter.Tolerance = Color.FromArgb( 150, 92, 92 ); filter.FillColor = Color.FromArgb( 255, 255, 255 ); filter.StartingPoint = new Point( 150, 100 ); // apply the filter filter.ApplyInPlace( image );
Pointed Mean Flood Fill // create filter PointedMeanFloodFill filter = new PointedMeanFloodFill( ); // configre the filter filter.Tolerance = Color.FromArgb( 150, 92, 92 ); filter.StartingPoint = new Point( 150, 100 ); // apply the filter filter.ApplyInPlace( image );
|
|||||||