how to measure the size of black spots(dimples) of various sizes using regionprops?

2 visualizaciones (últimos 30 días)
I have a fractography image. It consists of many black spots.. Black spots are of different shapes and sizes . I want to count the number of black spots and to get the histogram plot of shape and size distribution of the dimples in the image.
The following code is written
gray_image=imread('3.bmp');
[T, sm]=graythresh(gray_image);
bw_image=im2bw(gray_image,T );
[L, hole_counts]=bwlabel(~bw_image );
fprintf('The Black holes counts: %d',hole_counts-1 );
BW=imread('text.png');
s=regionprops(BW,'centroid');
Please anyone suggest the code/command for this.. Any help is much appreciated..
Please find the attachment.

Respuestas (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by