• 大小: 38.63MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-08-07
  • 语言: Matlab
  • 标签: TLD  注释  

资源简介

TLD算法作者原MATLAB+C版添加个人注释;

资源截图

代码片段和文件信息

% Copyright 2011 Zdenek Kalal
%
% This file is part of TLD.
%
% TLD is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation either version 3 of the License or
% (at your option) any later version.
%
% TLD is distributed in the hope that it will be useful
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
% GNU General Public License for more details.
%
% You should have received a copy of the GNU General Public License
% along with TLD.  If not see .

% Compiles mex files
clc; clear all; cd mex;

if ispc
    disp(‘PC‘);
    include = ‘ -Id:\software\OpenCV2.2\include\opencv -Id:\software\OpenCV2.2\include\‘;
    libpath = ‘D:\software\OpenCV2.2\lib\‘;
    files = dir([libpath ‘*.lib‘]);
    
    lib = [];
    for i = 1:length(files)
        lib = [lib ‘ ‘ libpath files(i).name];
    end
    
    eval([‘mex lk.cpp -O‘ include lib]);
    mex -O -c tld.cpp
    mex -O fern.cpp tld.obj
    mex -O linkagemex.cpp
    mex -O bb_overlap.cpp
    mex -O warp.cpp
    mex -O distance.cpp
end

if ismac
    disp(‘Mac‘);
    
    include = ‘ -I/opt/local/include/opencv/ -I/opt/local/include/‘; 
    libpath = ‘/opt/local/lib/‘; 
    
    files = dir([libpath ‘libopencv*.dylib‘]);
    
    lib = [];
    for i = 1:length(files)
        lib = [lib ‘ ‘ libpath files(i).name];
    end
    
    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
    
end

if isunix
    disp(‘Unix‘);
    
    include = ‘ -I/usr/local/include/opencv/ -I/usr/local/include/‘;
    libpath = ‘/usr/local/lib/‘;
    
    files = dir([libpath ‘libopencv*.so.2.2‘]);
    
    lib = [];
    for i = 1:length(files)
        lib = [lib ‘ ‘ libpath files(i).name];
    end
    
    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
    
end


cd ..
disp(‘Compilation finished.‘);


 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        808  2011-04-17 06:11  other\init_workspace.m

     文件       2860  2011-04-17 06:11  other\run_TLD_demo.m

     文件       1398  2011-04-17 06:11  other\stabilize.m

     文件        711  2011-04-17 06:11  other\usbclear.m

     文件        931  2011-04-17 06:11  other\usbinit.m

     文件       1423  2011-04-17 06:11  other\VisualStudio.sln

     文件       2115  2011-04-17 06:11  other\webcam.jpg

     文件        391  2011-04-17 06:11  test\test_bbox_shift_overlap.m

     文件        119  2011-04-17 06:11  test\test_bb_scan.m

     文件        104  2011-04-17 06:11  test\test_display_layers.m

     文件       1088  2011-04-17 06:11  test\test_face_detector.m

     文件         90  2011-04-17 06:11  test\test_featureGenerata.m

     文件        340  2011-04-17 06:11  test\test_getPatch.m

     文件        314  2011-04-17 06:11  test\test_tmdPatch2Pattern.m

     文件        209  2011-04-17 06:11  test\test_webcam.m

     文件       5845  2013-01-15 17:40  tld\tldDemo.asv

     文件       5870  2013-01-16 17:28  tld\tldDemo.m

     文件       2958  2011-04-17 06:11  tld\tldDetection.m

     文件       7093  2011-04-17 06:11  tld\tldDisplay.m

     文件       2185  2011-04-17 06:11  tld\tldExample.m

     文件       1203  2011-04-17 06:11  tld\tldGenerateAprioriData.m

     文件       2089  2013-01-11 16:29  tld\tldGenerateFeatures.asv

     文件       2089  2013-01-11 16:30  tld\tldGenerateFeatures.m

     文件       1288  2013-01-13 16:22  tld\tldGenerateNegativeData.asv

     文件       1374  2013-01-15 15:03  tld\tldGenerateNegativeData.m

     文件       2332  2013-01-16 21:16  tld\tldGeneratePositiveData.asv

     文件       2338  2013-01-16 21:20  tld\tldGeneratePositiveData.m

     文件       1176  2011-04-17 06:11  tld\tldGeneratePositiveData_single_bbox.m

     文件       1353  2013-01-13 16:17  tld\tldGetPattern.asv

     文件       1382  2013-01-13 16:19  tld\tldGetPattern.m

............此处省略554个文件信息

评论

共有 条评论