I want to extract the inner circle like structure from this preprocessed image:
This is my best result so far (Green = Fitted Ellipse):
For the result above i used:
dilate
-> findContours
-> only keeping the second largest minAreaRect
-> fitEllipse
For my needs the fitted ellipse is not precise enough. What i tryed already:
approxPolyDP
: Either way it fails to detect part of the inner "circle" or it includes a lot of the defectsHoughCircles
: The structure Iam looking for is just round but not a real circle, so it's way to unpreciseconvexHull
: Deforms the "circle" way to muchcontourArea
: Tryed to remove some of the blobs due to their small size but since lines have a small area aswell it didn't work
The perfect result (created by the) the green part:
Any ideas how to get closer to this result?