I attach my image. The red circle annotates the white line I need to trace. The endpoints of this white line are annotated with small red circles as you may be able to see. I need an algorithm to automatically trace first and last white pixels of this small line/contour and create a convex hull.
Any help please?