How to count exudates in retina binary image?

2 vues (au cours des 30 derniers jours)
Valeska Pearson
Valeska Pearson le 7 Août 2013
I 've got the following retina images, after implementing LAB and applying segmentation, I've got a binary image. The white is the exudates and I need to count each of them. Can you help me with code to count them accurately without including the borders and extra pixels.
  3 commentaires
Valeska Pearson
Valeska Pearson le 8 Août 2013
[X Y]=ginput(1);
x=round(X);
y=round(Y);
template=double(imageIN(y ,x,:));
filterimage = ColourFilter3(imageIN,template);
subplot(2,2,1),imshow(filterimage), title 'Lab colour filtered image';
a=im2bw(filterimage,230./255);
figure,imshow(a),'title binary image';
Colourfilter3 is my code to that converts image to lab colour space, and then if you click with mouse, the template is the reference of that colour you clicked on. Exudates are the yellow spots on the retina... From the binary image attached here, how must I count them?
Valeska Pearson
Valeska Pearson le 8 Août 2013
See the link above to get the image that is the output of this code.
Colourfilter3 function is called here above. I have its code here, but it is not necessary for the question.

Connectez-vous pour commenter.

Réponses (1)

Image Analyst
Image Analyst le 9 Août 2013
I think you need to call imfill() to make them solid - it looks like all you have are the edge outlines. Then call regionprops(). See my image segmentation tutorial in my File Exchange if you want an example.
  3 commentaires
Valeska Pearson
Valeska Pearson le 10 Août 2013
See kasa circle fitting on matlab central for the function's coding Here is an example: http://imgur.com/PIgeATD LAB colourspace image
After filter and threshold image will look like this http://imgur.com/ziU7IxL
Image Analyst
Image Analyst le 10 Août 2013
I never heard of kasa, and the link just shows an image and a histogram. regionprops() will give you the EquivDiameter and the Centroid which is all you need if you want to get the circle fit. Then just use rectangle() or plot() to put up the circle in the overlay over your image.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Images dans Help Center et File Exchange

Tags

Aucun tag saisi pour le moment.

Community Treasure Hunt

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

Start Hunting!

Translated by