1 | initial version |
Hi,
I think a clever combination of morphological operations and connected components could enhance the inner ring.
I have tried the following:
1) Dilate the image
2) find connected components and remove blobs with small area
3) take the inner ring and erode the image
4) again find connected components and remove small blobs
5) based on this you can do the ellipse fitting