how to measure the size of black spots(dimples) of various sizes using regionprops?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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.
1 comentario
Respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!