How to count exudates in retina binary image?
Show older comments
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 Comments
Ashish Uthama
on 8 Aug 2013
What is an exudate in the image? Is each pixel considered an exudate? What do you consider as a 'border or extra pixel'? More detail might help you get a useful answer.
Valeska Pearson
on 8 Aug 2013
Valeska Pearson
on 8 Aug 2013
Answers (1)
Image Analyst
on 9 Aug 2013
0 votes
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 Comments
Valeska Pearson
on 10 Aug 2013
Valeska Pearson
on 10 Aug 2013
Image Analyst
on 10 Aug 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.
Categories
Find more on Pattern Recognition in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!