-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
JeffsanC
committed
Mar 8, 2018
1 parent
6857dd2
commit 33b2358
Showing
10 changed files
with
110 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,26 @@ | ||
function out = getScalePatch(img, pos, target_size, search_size, scale_window, scale_model_sz, hog_scale_cell_size) | ||
% KCC: Kernel Cross-Correlator | ||
% Visual Tracking Using KCC | ||
% | ||
% Copyright (C) 2017 | ||
% Author: Wang Chen [email protected] Nanyang Technological University | ||
% Zhang Le [email protected] Advanced Digital Sciences Center | ||
% This program is free software: you can redistribute it and/or modify | ||
% | ||
% This file is part of KCC. | ||
% | ||
% KCC 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. | ||
% This program is distributed in the hope that it will be useful, | ||
% | ||
% KCC 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 this program. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
|
||
function out = getScalePatch(img, pos, target_size, search_size, scale_window, scale_model_sz, hog_scale_cell_size) | ||
% along with KCC. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
% code from DSST | ||
padding=0; | ||
if size(img,3)>1 | ||
img= single(rgb2gray(img))/255.0; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,26 @@ | ||
function out = getScaleSubwindow(im, pos, base_target_sz, scale_factors, scale_window, scale_model_sz, hog_scale_cell_size) | ||
|
||
% code from DSST | ||
|
||
% KCC: Kernel Cross-Correlator | ||
% Visual Tracking Using KCC | ||
% | ||
% Copyright (C) 2017 | ||
% Author: Wang Chen [email protected] Nanyang Technological University | ||
% Zhang Le [email protected] Advanced Digital Sciences Center | ||
% | ||
% This file is part of KCC. | ||
% | ||
% KCC 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. | ||
% | ||
% KCC 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 KCC. If not, see <http://www.gnu.org/licenses/>. | ||
num_scales = length(scale_factors); | ||
|
||
for s = 1:num_scales | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,25 @@ | ||
function out = getScaleSubwindow_v1(img, pos, target_size, search_size, scale_window, scale_model_sz, hog_scale_cell_size) | ||
|
||
% code from DSST | ||
% KCC: Kernel Cross-Correlator | ||
% Visual Tracking Using KCC | ||
% | ||
% Copyright (C) 2017 | ||
% Author: Wang Chen [email protected] Nanyang Technological University | ||
% Zhang Le [email protected] Advanced Digital Sciences Center | ||
% | ||
% This file is part of KCC. | ||
% | ||
% KCC 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. | ||
% | ||
% KCC 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 KCC. If not, see <http://www.gnu.org/licenses/>. | ||
padding=0; | ||
num_scales = length(search_size); | ||
if size(img,3)>1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,25 @@ | ||
function results = run_KCC(seq, res_path, bSaveImage) | ||
% Entry point for the Wu - CVPR2013 benchmark | ||
% KCC: Kernel Cross-Correlator | ||
% Visual Tracking Using KCC | ||
% | ||
% Copyright (C) 2017 | ||
% Author: Wang Chen [email protected] Nanyang Technological University | ||
% Zhang Le [email protected] Advanced Digital Sciences Center | ||
% | ||
% This file is part of KCC. | ||
% | ||
% KCC 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. | ||
% | ||
% KCC 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 KCC. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
%% Read params.txt | ||
params = readParams('params.txt'); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,26 @@ | ||
function [results] = trackerMain_otb_wangchen(p, im, bg_area, fg_area, area_resize_factor) | ||
%TRACKERMAIN contains the main loop of the tracker, P contains all the parameters set in runTracker | ||
% KCC: Kernel Cross-Correlator | ||
% Visual Tracking Using KCC | ||
% | ||
% Copyright (C) 2017 | ||
% Author: Wang Chen [email protected] Nanyang Technological University | ||
% Zhang Le [email protected] Advanced Digital Sciences Center | ||
% | ||
% This file is part of KCC. | ||
% | ||
% KCC 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. | ||
% | ||
% KCC 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 KCC. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
%% INITIALIZATION | ||
num_frames = numel(p.img_files); | ||
% used for OTB-13 benchmark | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters