-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.m
33 lines (21 loc) · 796 Bytes
/
test.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
%% Reading Images All ROI extracted images
cd 'C:\Users\Parnian\breast cancer\Images' % go to images folder to get input images
Img_list=dir; % take a list from the current diroctory
cd .. % come back to before dir
Featurestest=zeros(222,13);
ep=zeros(100,1);
counter=1;
%% Reading ROI extracted Images Step By Step and Calculate WEE Each One
for i=100:322
close all
fullname = Img_list(i+2).name;
cd 'C:\Users\Parnian\breast cancer\Images' % go to images folder to get input images
MainImg=imread(fullname); % read the image
% cd ..
cd 'C:\Users\Parnian\breast cancer\final code'
[Ea,Eh,Ev,Ed] = wenergy2(C,S);
% Features(counter)=entropy(E);
Featurestest(counter,:)=[Ea,Eh,Ev,Ed];
% ep(counter)=entropy(Features(counter,:));
counter=counter+1;
end