How detect circle like objects from binary image
9 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Abhilash Augustine
el 20 de Oct. de 2020
Comentada: Abhilash Augustine
el 23 de Oct. de 2020
I want to detect number of objects from a binary image. As you can see below these objects are overlapped a bit with other objects. My objects are circle like objects (not excact circle).
Any help would be much appriciated.

0 comentarios
Respuestas (1)
Diego Samaniego
el 21 de Oct. de 2020
You can measure the area or the approximate number of pixels that one of the circles occupies, then you take the area of the total number of figures and divide it by the area that an object occupies.
im = imread('image.png');
u = graythresh(im);
im2 = im2bw(im,u);
circ_1 = 900; % aprox area of one circle
area_image=bwarea(im2); %area of all circles
N_circles = floor(area_image/circ_1)
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!