how to count big cell only?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Moon Shadow
el 10 de Mzo. de 2014
Respondida: Image Analyst
el 25 de Mzo. de 2014
I have image with different cell size but I want Count the number of big cells only!!
I try this code:
A = imread ('cell.png');
level=graythresh(A);
I=im2bw(A,level);
[labeled,numObjects]=bwlabel(I,4)
numObjects = 26
0 comentarios
Respuesta aceptada
Dishant Arora
el 10 de Mzo. de 2014
Editada: Dishant Arora
el 10 de Mzo. de 2014
use bwareaopen to remove objects smaller than certain number of pixels.
BW2 = bwareaopen(BW, thresh);
[~, numObjects] = bwlabel(BW2,4);
2 comentarios
Dishant Arora
el 25 de Mzo. de 2014
Check out for 8-connectivity when using bwlabel or attach your image.
Más respuestas (1)
Image Analyst
el 25 de Mzo. de 2014
See my code to extract the largest blob, attached below in blue. In there, there is a general purpose function I wrote that can take the N largest or smallest blobs in a binary image.
0 comentarios
Ver también
Categorías
Más información sobre File Operations en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!