Line | |
---|
1 | function a = readchicken(norm,cost,dirname)
|
---|
2 | if nargin < 3
|
---|
3 | dirname = ['/data/pr/projects/dissim/data/chickenpieces/chickenpieces_norm' num2str(norm) '.0'];
|
---|
4 | if ispc
|
---|
5 | dirname = ['s:\root' dirname];
|
---|
6 | end
|
---|
7 | end
|
---|
8 | if nargin < 2
|
---|
9 | dir(dirname)
|
---|
10 | a = [];
|
---|
11 | return
|
---|
12 | end
|
---|
13 | name = ['chickenpieces_norm' num2str(norm) '.0_AngleCostFunction' num2str(cost) '.0.dm'];
|
---|
14 | a = prtbunke(fullfile(dirname,name));
|
---|
15 | if length(a)==1 & a==-1
|
---|
16 | return
|
---|
17 | end
|
---|
18 | a = setprior(a,getprior(a,0));
|
---|
19 | %a = min(a,a'); % starting from exp4
|
---|
20 | a = (a + a')/2;
|
---|
Note: See
TracBrowser
for help on using the repository browser.