MATLAB: How to find the circle/ contour of the shape and the distance from the outer contour to the center of the shape

image processing

Hello, I just start to lean how to use the Image Processing Toolbox for my project. I have several image like this:
I want to first segment the small circle and the outer gold color layer, than find the center of the samll circle in the middle, as well as find the distance from the inner and outer contour to the center of the samll circle. Finally I need to plot all these data.
At this point, I kind of stucked on finding the center of the samll circle and the contour of the matel layer. The 'imfindcircles' function seems not work in my case cause the resolution of my image is extremely big.

Best Answer

Binarize image (0 and 1)
img1.png
imdilate image
img2.png
Use edge
img3.png
Maybe bwareopen to clear a bit
img4.png