-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgeraCenSur.m
32 lines (15 loc) · 856 Bytes
/
geraCenSur.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
function pt = geraCenSur(imvec,N,delta,epsilon,region,type)
censtar = geraRepeatVectorConst('censtar',imvec,N,delta,epsilon,region);
fprintf(' Gerou censtar \n');
censtar = censtar./max(censtar);
save(strcat(int2str(N),int2str(delta),int2str(epsilon),type,'centers'),'censtar');
cenpoly = geraRepeatVectorConst('cenpoly',imvec,N,delta,epsilon,region);
fprintf(' Gerou CenPoly \n');
cenpoly = cenpoly./max(cenpoly);
save(strcat(int2str(N),int2str(delta),int2str(epsilon),type,'centers'),'-append','cenpoly');
cenhes = geraRepeatVectorConst('cenhes',imvec,N,delta,epsilon,region);
fprintf(' Gerou cenhes \n');
cenhes = cenhes./max(cenhes);
save(strcat(int2str(N),int2str(delta),int2str(epsilon),type,'centers'),'-append','cenhes');
pt=1;
%save(strcat(int2str(N),int2str(delta),int2str(epsilon),type,'Vcenters'),'cenpoly','censtar','cenhes');