How can find these two circles?


picture 1

picture 2

Can anyone give me some suggestions for in the picture 1 find circles like the picture 2 automatically.
In factor it like this:

inscribed circles?

apply a distance transform with L2 norm (euclidean distance)