Hello, I have to do a image processing and analysis of X-ray Diffraction Image of metal sample.
As you may see, I made it to binarizing the Image with command from 'image processing toolbox' provided by Matlab.
However, I have to find out the percentage of black area inside the circle for 20 photos that has same frames.
Therefore, I think I have to crop the circlular center of the image and calculate the pixel using bwarea function. But having trouble cropping the center part.
Is there any way to crop the same circular area automatically and calculate the ratio of black and white area?
Best Answer