sift_compile.m
来自「sift的matlab代码」· M 代码 · 共 43 行
M
43 行
function sift_compile(type)% SIFT_COMPILE Compile MEX files% Compiling under Windows requires at least Visual C 6 or LCC. You% might try other compilers, but most likely you will need to edit% this file.siftroot = fileparts(which('siftcompile')) ;opts = { '-O', '-I.', '-g' } ;%opts = { opts{:}, '-v' } ;if nargin < 1 type = 'visualc' ;endswitch computer case 'PCWIN' opts = {opts{:}, '-DWINDOWS'} ; case 'MAC' opts = {opts{:}, '-DMACOSX'} ; opts = {opts{:}, 'CFLAGS=\$CFLAGS -faltivec'} ; case 'MACI' opts = {opts{:}, '-DMACOSX'} ; case 'GLNX86' opts = {opts{:}, '-DLINUX' } ; otherwise error(['Unsupported architecture ', computer, '. Please edit this M-mfile to fix the issue.']) ; endmex('imsmooth.c',opts{:}) ;mex('siftlocalmax.c',opts{:}) ;mex('siftrefinemx.c',opts{:}) ;mex('siftormx.c',opts{:}) ;mex('siftdescriptor.c',opts{:}) ;mex('siftmatch.c',opts{:}) ;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?