1 | initial version |
Since you have the contours that you want, I think that the solution is pretty much simple. You need to call the minEnclosingCircle() function over the detected contours and then you have what you want. Have a look at this example, in order to see how to do it.
Cheers tt.