public
Last active

Changes to TLD compile.m for mac os x.

  • Download Gist
tld_compile.m
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
mex git:(master) ls -al /Users/bneale/homebrew/Cellar/opencv/2.2/lib
total 19792
drwxr-xr-x 40 bneale 1369139312 1360 Mar 27 23:40 .
drwxr-xr-x 7 bneale 1369139312 238 Mar 27 23:40 ..
-r--r--r-- 1 bneale 1369139312 533184 Mar 27 23:40 libopencv_calib3d.2.2.0.dylib
lrwxr-xr-x 1 bneale 1369139312 29 Mar 27 23:39 libopencv_calib3d.2.2.dylib -> libopencv_calib3d.2.2.0.dylib
lrwxr-xr-x 1 bneale 1369139312 27 Mar 27 23:39 libopencv_calib3d.dylib -> libopencv_calib3d.2.2.dylib
-r--r--r-- 1 bneale 1369139312 287912 Mar 27 23:40 libopencv_contrib.2.2.0.dylib
lrwxr-xr-x 1 bneale 1369139312 29 Mar 27 23:40 libopencv_contrib.2.2.dylib -> libopencv_contrib.2.2.0.dylib
lrwxr-xr-x 1 bneale 1369139312 27 Mar 27 23:40 libopencv_contrib.dylib -> libopencv_contrib.2.2.dylib
-r--r--r-- 1 bneale 1369139312 2965728 Mar 27 23:40 libopencv_core.2.2.0.dylib
lrwxr-xr-x 1 bneale 1369139312 26 Mar 27 23:40 libopencv_core.2.2.dylib -> libopencv_core.2.2.0.dylib
lrwxr-xr-x 1 bneale 1369139312 24 Mar 27 23:40 libopencv_core.dylib -> libopencv_core.2.2.dylib
-r--r--r-- 1 bneale 1369139312 1061216 Mar 27 23:40 libopencv_features2d.2.2.0.dylib
lrwxr-xr-x 1 bneale 1369139312 32 Mar 27 23:40 libopencv_features2d.2.2.dylib -> libopencv_features2d.2.2.0.dylib
lrwxr-xr-x 1 bneale 1369139312 30 Mar 27 23:40 libopencv_features2d.dylib -> libopencv_features2d.2.2.dylib
-r--r--r-- 1 bneale 1369139312 33712 Mar 27 23:40 libopencv_flann.2.2.0.dylib
lrwxr-xr-x 1 bneale 1369139312 27 Mar 27 23:40 libopencv_flann.2.2.dylib -> libopencv_flann.2.2.0.dylib
lrwxr-xr-x 1 bneale 1369139312 25 Mar 27 23:40 libopencv_flann.dylib -> libopencv_flann.2.2.dylib
-r--r--r-- 1 bneale 1369139312 97512 Mar 27 23:40 libopencv_gpu.2.2.0.dylib
lrwxr-xr-x 1 bneale 1369139312 25 Mar 27 23:40 libopencv_gpu.2.2.dylib -> libopencv_gpu.2.2.0.dylib
lrwxr-xr-x 1 bneale 1369139312 23 Mar 27 23:40 libopencv_gpu.dylib -> libopencv_gpu.2.2.dylib
-r--r--r-- 1 bneale 1369139312 1248032 Mar 27 23:40 libopencv_highgui.2.2.0.dylib
lrwxr-xr-x 1 bneale 1369139312 29 Mar 27 23:40 libopencv_highgui.2.2.dylib -> libopencv_highgui.2.2.0.dylib
lrwxr-xr-x 1 bneale 1369139312 27 Mar 27 23:40 libopencv_highgui.dylib -> libopencv_highgui.2.2.dylib
-r--r--r-- 1 bneale 1369139312 1960488 Mar 27 23:40 libopencv_imgproc.2.2.0.dylib
lrwxr-xr-x 1 bneale 1369139312 29 Mar 27 23:40 libopencv_imgproc.2.2.dylib -> libopencv_imgproc.2.2.0.dylib
lrwxr-xr-x 1 bneale 1369139312 27 Mar 27 23:40 libopencv_imgproc.dylib -> libopencv_imgproc.2.2.dylib
-r--r--r-- 1 bneale 1369139312 808560 Mar 27 23:40 libopencv_legacy.2.2.0.dylib
lrwxr-xr-x 1 bneale 1369139312 28 Mar 27 23:40 libopencv_legacy.2.2.dylib -> libopencv_legacy.2.2.0.dylib
lrwxr-xr-x 1 bneale 1369139312 26 Mar 27 23:40 libopencv_legacy.dylib -> libopencv_legacy.2.2.dylib
-r--r--r-- 1 bneale 1369139312 470264 Mar 27 23:40 libopencv_ml.2.2.0.dylib
lrwxr-xr-x 1 bneale 1369139312 24 Mar 27 23:40 libopencv_ml.2.2.dylib -> libopencv_ml.2.2.0.dylib
lrwxr-xr-x 1 bneale 1369139312 22 Mar 27 23:40 libopencv_ml.dylib -> libopencv_ml.2.2.dylib
-r--r--r-- 1 bneale 1369139312 305968 Mar 27 23:40 libopencv_objdetect.2.2.0.dylib
lrwxr-xr-x 1 bneale 1369139312 31 Mar 27 23:40 libopencv_objdetect.2.2.dylib -> libopencv_objdetect.2.2.0.dylib
lrwxr-xr-x 1 bneale 1369139312 29 Mar 27 23:40 libopencv_objdetect.dylib -> libopencv_objdetect.2.2.dylib
-r--r--r-- 1 bneale 1369139312 235488 Mar 27 23:40 libopencv_video.2.2.0.dylib
lrwxr-xr-x 1 bneale 1369139312 27 Mar 27 23:40 libopencv_video.2.2.dylib -> libopencv_video.2.2.0.dylib
lrwxr-xr-x 1 bneale 1369139312 25 Mar 27 23:40 libopencv_video.dylib -> libopencv_video.2.2.dylib
drwxr-xr-x 3 bneale 1369139312 102 Mar 27 23:39 pkgconfig
drwxr-xr-x 3 bneale 1369139312 102 Mar 27 23:40 python2.7
 
 
 
mex git:(master) more /apps/TLD/compile.m
% Compiles mex files.
clc; clear all; cd mex;
 
% edit based on your installation folder
include = ' -I/Users/bneale/homebrew/Cellar/opencv/2.2/include/opencv -I/Users/bneale/homebrew/Cellar/opencv/2.2/include';
lib = ' -L/Users/bneale/homebrew/Cellar/opencv/2.2/lib -lopencv_core -lopencv_imgproc -lopencv_highgui -lopencv_ml -lopencv_video -lopencv_features2d -lopencv_calib3d -lopencv_objdetect -lopencv_contrib -lopencv_legacy -lopencv_flann';
 
% =========================================================================
 
eval(['mex lk.cpp -O' include lib]);
mex -O -c tld.cpp
mex -O fern.cpp tld.o
mex -O linkagemex.cpp
mex -O bb_overlap.cpp
mex -O warp.cpp
mex -O distance.cpp
 
cd ..
% clc;
disp('Compilation finished.');
 
mex git:(master)

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.