I have done some preprocessing on image to get some features.Now i have to classify the image as normal if those features are not seen and abnormal if the features are seen by using svm. How do i classify, i am new to svm and matlab.
1 view (last 30 days)
Show older comments
a=imread('im1.png'); b = imresize(a, [576 720]); [x,y,z]=size(b); G=b(:,:,1); GS=rgb2gray(b); G=imadjust(GS,[0.2 0.8],[]); f0=edge(G,'canny'); er = imerode(f0, ones(3)); di = imdilate(f0, ones(3)); f1=di-er; f2=edge(f1,'canny'); f3=f2-f0; f4 = imfill(f3,'holes'); h= imsubtract(f4,f3); i= bwareaopen(h,1000); k=im2bw(G,0.2); l=and(i,k); area2 = sum(f3(:))
subplot(1,2,1),imshow(f3,[]);title('Microaneurysms Image');
0 Comments
Answers (0)
See Also
Categories
Find more on Install Products in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!