how to get an edge from the unconnected points?
I want to get the edge from this image, but there are some noise and the edge points are separated.
How can I connect them to get a connected edge and contour?
code ? origonal image ?
I did a bilateral filter and then thresholding. The original image is attached.