-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall_SpineS.m
59 lines (38 loc) · 1.35 KB
/
install_SpineS.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
% Compile .c and .cpp files using mex function
% You should have a compiles installed in order for mex to run
% If you are using a Mac Computer, Install XCode from Apple website, it is
% free. If you are using Windows machine, you can download MinGW.
% Or Better Read This: https://www.mathworks.com/support/requirements/supported-compilers.html
% email me if you need help: [email protected]
% Put This Line on the Subject Line Only: SpineS Install Problem
% This mex compiler part has nothing to do with SpineS, so any IT knowing person
% with some experience with Matlab can help you.
% For Support From Different Microscopes, Check: https://github.com/ome/bio-formats-matlab
% Ali Ozgur Argunsah, November 11, 2019.
% Zurich, Switzerland.
current_dir = pwd;
cd(fullfile(pwd,'fastMarch','functions'));
clear msfm2d
mex -compatibleArrayDims msfm2d.c;
clear msfm3d
mex -compatibleArrayDims msfm3d.c;
cd('..');
cd('..');
cd(fullfile(pwd,'fastMarch','shortestpath'));
clear rk4
mex -compatibleArrayDims rk4.c;
cd('..');
cd('..');
cd(fullfile(pwd,'JermanFilt'));
clear eig3volume
mex -compatibleArrayDims eig3volume.c;
cd('..');
cd(fullfile(pwd,'Skeleton'));
clear analskel
mex -compatibleArrayDims anaskel.cpp;
clear skeleton
mex -compatibleArrayDims skeleton.cpp;
clear skeleton
mex -compatibleArrayDims skeletonSpineS.cpp;
cd('..');
addpath(genpath(pwd));