-
Notifications
You must be signed in to change notification settings - Fork 14
/
setPath.m
76 lines (68 loc) · 1.9 KB
/
setPath.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
function setPath()
%
% path = setPath()
%
% description:
% sets all necessary paths
%
% See also: initialize
includepaths = {
'/Base/Classes', ...
'/Base/ImageFormat',...
'/Base/Parameter',...
'/Base/Tags',...
'/Base/Algorithms',...
'/Base/Algorithms/Clustering',...
'/Base/Algorithms/Geometry',...
'/Base/Algorithms/Geometry/Polygons',...
'/Base/Algorithms/GraphTheory',...
'/Base/Algorithms/SignalProcessing',...
'/Base/ParallelProcessing',...
'/Base/Utils',...
...
'/ImageProcessing/', ...
'/ImageProcessing/Filtering', ...
'/ImageProcessing/Photometry', ...
'/ImageProcessing/Photometry/Vignetting', ...
'/ImageProcessing/Segmentation', ...
'/ImageProcessing/Segmentation/Propagation', ...
'/ImageProcessing/ShapeDetection', ...
'/ImageProcessing/Stitching', ...
'/ImageProcessing/Tracking',...
'/ImageProcessing/Thresholding', ...
'/ImageProcessing/Tools',...
...
'/Interface',...
'/Interface/ImageJ',...
'/Interface/Imaris',...
'/Interface/IO',...
'/Interface/MetaMorph',...
'/Interface/Movies',...
'/Interface/Python',...
'/Interface/Ilastik',...
'/Interface/Hugin',...
...
'/Test'...
...
'/Base/Utils/External',...
...
... // External Packages
'/Base/Utils/External/BM3D',...
'/Base/Utils/External/SLICSuperpixels',...
'/Base/Utils/External/image_pyramid',...
'/Base/Utils/External/str2doubleq'
};
basepath = fileparts(mfilename('fullpath'));
for p = 1:length(includepaths)
includepaths{p} = fullfile(basepath, includepaths{p});
end
addpath(includepaths{:});
% compability to matlab previous versions
v = version('-release');
if length(v) >= 4
v = v(1:4);
if strcmp(v, '2012')
addpath(fullfile(basepath, '/Base/Utils/External/Matlab2012'));
end
end
end