How to obtain the correct data points to fit circle for optic disk detection

2 ビュー (過去 30 日間)
Valeska Pearson
Valeska Pearson 2013 年 8 月 10 日
コメント済み: gojiya 2014 年 4 月 10 日
Please help, I am struggling to get this right:
I have obtained a thresholded image, which is in binary image format. My problem is from this image I want to locate the round optic disk by means of the kasa method. Optic disk is the biggest and the lightest circle in the retina image. I want to illuminate this, because this is normal for every eye. I know about bw label and region props. But Please in exact coding, how must I get the the xy datapoints to give to the function of KASA to draw circle. The circle must be drawn around where the most ones (maximumx) in the binary image are present. I want a circle be drawn effectively around the optic disk for every retina image.
Here is my MATLAB code and a image.
figure,imshow(a),'title binary image';
[L,num]=bwlabel(a);
[y x] = find(a);
XY=[y x] ;
figure,imshow(a),'title binary image';
hold on
Par = CircleFitByKasa(XY)
r=Par(3);
x=Par(2);
y=Par(1);
th = 0:pi/50:2*pi;
xunit = r * cos(th) + x;
yunit = r * sin(th) + y;
h = plot(xunit, yunit);
hold off
% [L,num]=bwlabel(a);
% blobMeasurements = regionprops(L, 'all')
% [r, c,v] = find(L);
% rbar=mean(r);
% cbar=mean(c);
% datapoints=[r,c,v];
% s = regionprops(L,'area');
% CC = bwconncomp(a)
  3 件のコメント
Image Analyst
Image Analyst 2013 年 8 月 10 日
Which cluster of dots is the optic disc? Does it have a solid contiguous outline, or is it broken?
gojiya
gojiya 2014 年 4 月 10 日
plz i want to find optical disc .... help me

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeOptics についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by