Info

This question is closed. Reopen it to edit or answer.

I want to classify 6 test images in two classes..For this purpose how i will training and testing images using ANN with RBF in matlab code???

1 view (last 30 days)
str1 = 'image';str3 = '.mat'; c1=6; F=TT; for i = 1:c1 name = strcat(str1,num2str(i)); P =F; save(name,'P'); end Tc=[1 1 1 1 2 2]; SPREAD=1; T=ind2vec(Tc); net=newrbe(P,T,SPREAD); A = sim(net,P); ANNresult = vec2ind(A); %ANNresult = vec2ind(aa); c=im2bw((img2(:,:,1))); cc=imcomplement(c); Eqdist=sum(sum(cc)); result=ANNresult(:,1)*Eqdist;
HERE P IS THE TRAINING INPUT AND T IS THE CLASS VECTOR....BUT HOW I WILL GIVE TESTING INPUT.....???IF THIS CODE IS INCORRECT, THEN PLEASE HELP ME TO REACH IN CORRECT ONE...

Answers (0)

Tags

No tags entered yet.

Community Treasure Hunt

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

Start Hunting!