Algorithmix.Preprocessing.Preprocessing.LabelConnectedComponents C# (CSharp) Метод

LabelConnectedComponents() публичный статический Метод

Lable Connected Components of the scan, Identify unique objects
public static LabelConnectedComponents ( Bitmap &image ) : int
image System.Drawing.Bitmap The mask
Результат int
        public static int LabelConnectedComponents(ref Bitmap image)
        {
            AForge.Imaging.Filters.ConnectedComponentsLabeling filter = new AForge.Imaging.Filters.ConnectedComponentsLabeling();
            //and apply!
            image = filter.Apply(image);
            //return object count
            return filter.ObjectCount;
        }