1 | initial version |
That's correct. The algorithm scans the image row by row and column by column until it finds the first point of a contour. After that the contour is traced by checking the points neighbours. So I think this should be a legal way to find topmost point of the contour.