I have got the below Image after running the below code.
file=\'grayscale.png\'; I=imread(file); bw = im2bw(I); bw = bwareaopen(bw,870); imwrite(bw,\'n
The convexhull of the white pixels will give you a fairly good approximation of the circle. You can find the center as the centroid of the area of the hull and the radius as the average distance from the center to the hull vertices.