-
Notifications
You must be signed in to change notification settings - Fork 18
/
installPottslab.m
39 lines (36 loc) · 999 Bytes
/
installPottslab.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
34
35
36
37
38
39
% try to show license
try
disp('----------')
lic = importdata('License.txt');
for i = 1:numel(lic)
disp(lic{i});
end
disp('----------')
catch e
end
%%sets all necessary paths
% set path
disp('Setting Matlab path...');
folder = fileparts(which(mfilename));
addpath(...
fullfile(folder, ''),...
fullfile(folder, 'Auxiliary'),...
fullfile(folder, 'Auxiliary/Operators'),...
fullfile(folder, 'Data'),...
fullfile(folder, 'Demos'),...
fullfile(folder, 'Demos', '1D'),...
fullfile(folder, 'Demos', '2D'),...
fullfile(folder, 'Java', 'bin', 'pottslab'),...
fullfile(folder, 'Potts'),...
fullfile(folder, 'Potts', 'PottsCore'),...
fullfile(folder, 'Potts2D'),...
fullfile(folder, 'Potts2D', 'Core'),...
fullfile(folder, 'Sparsity'),...
fullfile(folder, 'Sparsity', 'SparsityCore'),...
fullfile(folder, 'Tikhonov')...
);
% set java path
disp('Setting Java path...');
setPLJavaPath(true);
% save pathdef
savepath;