-
Notifications
You must be signed in to change notification settings - Fork 24
/
startup.m
42 lines (37 loc) · 1.69 KB
/
startup.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
% ------------------------------------------------------------------------
% Jordi Pont-Tuset - http://jponttuset.github.io/
% April 2016
% ------------------------------------------------------------------------
% This file is part of the DAVIS package presented in:
% Federico Perazzi, Jordi Pont-Tuset, Brian McWilliams,
% Luc Van Gool, Markus Gross, Alexander Sorkine-Hornung
% A Benchmark Dataset and Evaluation Methodology for Video Object Segmentation
% CVPR 2016
% Please consider citing the paper if you use this code.
% ------------------------------------------------------------------------
% Add paths
addpath(db_matlab_root_dir);
addpath(fullfile(db_matlab_root_dir,'db_util'));
addpath(fullfile(db_matlab_root_dir,'db_util','auxiliar'));
addpath(genpath(fullfile(db_matlab_root_dir,'experiments')));
addpath(fullfile(db_matlab_root_dir,'measures'));
addpath(fullfile(db_matlab_root_dir,'measures','auxiliar'));
addpath(fullfile(db_matlab_root_dir,'third-party','polycont','matlab'))
addpath(fullfile(db_matlab_root_dir,'third-party','jsonlab'))
addpath(fullfile(db_matlab_root_dir,'helpers'));
% Check compiled files
needed_files = {'measures/private/mex_match_dijkstra'};
for ii=1:length(needed_files)
if ~exist(fullfile(db_matlab_root_dir,[needed_files{ii} '.' mexext]),'file')
error(['The needed function (' needed_files{ii} ') not found. Have you built the package properly?'])
end
end
% Clear
clear needed_files;
clear ii;
% Check db_root_dir
if ~exist(db_root_dir,'dir')
error(['Error: ''db_root_dir'' (' db_root_dir ') not found, did you set it correctly to the folder where DAVIS is found?'])
end
% Display message
disp('DAVIS Matlab Package started correctly. Enjoy!')