diff options
Diffstat (limited to 'SD-VBS/benchmarks/sift/src/matlab/sift_compile.m')
-rw-r--r-- | SD-VBS/benchmarks/sift/src/matlab/sift_compile.m | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/SD-VBS/benchmarks/sift/src/matlab/sift_compile.m b/SD-VBS/benchmarks/sift/src/matlab/sift_compile.m deleted file mode 100644 index 78c0034..0000000 --- a/SD-VBS/benchmarks/sift/src/matlab/sift_compile.m +++ /dev/null | |||
@@ -1,60 +0,0 @@ | |||
1 | function sift_compile(type) | ||
2 | % SIFT_COMPILE Compile MEX files | ||
3 | % Compiling under Windows requires at least Visual C 6 or LCC. You | ||
4 | % might try other compilers, but most likely you will need to edit | ||
5 | % this file. | ||
6 | |||
7 | siftroot = fileparts(which('siftcompile')) ; | ||
8 | opts = { '-O', '-I.' } ; | ||
9 | %opts = { opts{:}, '-v' } ; | ||
10 | |||
11 | if nargin < 1 | ||
12 | type = 'visualc' ; | ||
13 | end | ||
14 | |||
15 | switch computer | ||
16 | case 'PCWIN' | ||
17 | warning('NOTE: compiling has been tested only with Visual C 6-7 and LCC') ; | ||
18 | switch type | ||
19 | case 'visualc' | ||
20 | lib{1}=[matlabroot '\extern\lib\win32\microsoft\libmwlapack.lib'] ; | ||
21 | lib{2}=[matlabroot '\extern\lib\win32\microsoft\msvc60\libmwlapack.lib']; | ||
22 | lib{3}=[matlabroot '\extern\lib\win32\microsoft\msvc71\libmwlapack.lib']; | ||
23 | case 'lcc' | ||
24 | lib{1}=[matlabroot '\extern\lib\win32\lcc\libmwlapack.lib'] ; | ||
25 | end | ||
26 | found=0; | ||
27 | for k=1:length(lib) | ||
28 | fprintf('Trying LAPACK lib ''%s''\n',lib{k}) ; | ||
29 | found=exist(lib{k}) ; | ||
30 | if found ~= 0 | ||
31 | break ; | ||
32 | end | ||
33 | end | ||
34 | if found == 0 | ||
35 | error('Could not find LAPACK library. Please edit this M-file to fix the issue.'); | ||
36 | end | ||
37 | opts = {opts{:}, '-DWINDOWS'} ; | ||
38 | opts = {opts{:}, lib{k}} ; | ||
39 | |||
40 | case 'MAC' | ||
41 | opts = {opts{:}, '-DMACOSX'} ; | ||
42 | opts = {opts{:}, 'CFLAGS=\$CFLAGS -faltivec'} ; | ||
43 | |||
44 | case 'GLNX86' | ||
45 | opts = {opts{:}, '-DLINUX' } ; | ||
46 | |||
47 | otherwise | ||
48 | error(['Unsupported architecture ', computer, '. Please edit this M-mfile to fix the issue.']) ; | ||
49 | end | ||
50 | |||
51 | mex('imsmooth.c',opts{:}) ; | ||
52 | mex('siftlocalmax.c',opts{:}) ; | ||
53 | mex('siftrefinemx.c',opts{:}) ; | ||
54 | mex('siftormx.c',opts{:}) ; | ||
55 | mex('siftdescriptor.c',opts{:}) ; | ||
56 | mex('siftmatch.c',opts{:}) ; | ||
57 | |||
58 | |||
59 | |||
60 | |||