How to count exudates in retina binary image?

조회 수: 3 (최근 30일)
Valeska Pearson
Valeska Pearson 2013년 8월 7일
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.

댓글을 달려면 로그인하십시오.

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by