Edge detection on C#
问题 I have a black and white image like this (color overlays are mine, and can be removed): I need to figure out the edge of the hand shown, how can I do that? My current algorithm: List<Point> edgePoints = new List<Point>(); for (int x = 0; x < largest.Rectangle.Width && edgePoints.Count == 0; x++) { //top for (int y = 0; y < largest.Rectangle.Height - 3 && edgePoints.Count == 0; y++) { if (colorGrid[x, y].ToArgb() == Color.White.ToArgb() && colorGrid[x, y + 1].ToArgb() == Color.White.ToArgb() &