public static Bitmap SegmentImage(int colors, Bitmap image, int iterations, int minAlpha) { Color[,] map = kmeans.KMeansAlgorithm(image, colors, iterations, minAlpha); return(kmeans.ConvertColorMapToImage(map)); }
public static Bitmap SegmentImage(int colors, Bitmap image, int iterations, int minAlpha) { Color[,] map = kmeans.KMeansAlgorithm(image, colors, iterations, minAlpha); return(kmeans.ConvertColorMapToImage(map)); }