How to count exudates in retina binary image?

1 次查看(过去 30 天)
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 个评论
Valeska Pearson
Valeska Pearson 2013-8-8
[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 2013-8-8
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.

请先登录,再进行评论。

回答(1 个)

Image Analyst
Image Analyst 2013-8-9
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 个评论
Valeska Pearson
Valeska Pearson 2013-8-10
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 2013-8-10
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.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Images 的更多信息

标签

尚未输入任何标签。

Community Treasure Hunt

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

Start Hunting!

Translated by