# public tglines /OpenTLD forked from zk00006/OpenTLD

### Subversion checkout URL

You can clone with HTTPS or Subversion.

 ``` eeb789bd » zk00006 ``` 2011-04-07 first commit 1 % Copyright 2011 Zdenek Kalal 2 % 3 % This file is part of TLD. 4 % 5 % TLD is free software: you can redistribute it and/or modify 6 % it under the terms of the GNU General Public License as published by 7 % the Free Software Foundation, either version 3 of the License, or 8 % (at your option) any later version. 9 % 10 % TLD is distributed in the hope that it will be useful, 11 % but WITHOUT ANY WARRANTY; without even the implied warranty of 12 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 % GNU General Public License for more details. 14 % 15 % You should have received a copy of the GNU General Public License 16 % along with TLD. If not, see . 17 18 % Compiles mex files. 19 clc; clear all; cd mex; 20 21 % edit based on your instalation folder 22 include = ' -Ic:\OpenCV2.2\include\opencv\ -Ic:\OpenCV2.2\include\'; 23 libpath = 'C:\OpenCV2.2\CMake\lib\Release\'; 24 25 % ========================================================================= 26 27 lib = []; 28 files = dir([libpath '*.lib']); 29 for i = 1:length(files) 30 lib = [lib ' ' libpath files(i).name]; 31 end 32 eval(['mex lk.cpp -O' include lib]); 33 mex -O -c tld.cpp 34 mex -O fern.cpp tld.obj 35 mex -O linkagemex.cpp 36 mex -O bb_overlap.cpp 37 mex -O warp.cpp 38 mex -O distance.cpp 39 40 cd .. 41 % clc; 42 disp('Compilation finished.'); 43 44 45