-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo.m
37 lines (29 loc) · 944 Bytes
/
demo.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
%% ===================================================
% Primary video object segmentation
% Code written by Won-Dong Jang ([email protected])
% ===================================================
clear all
%% System setting
addpath('others');
addpath('core');
addpath(genpath('Optical Flow'));
%% Parameter setting
param_list = set_param;
%% DB setting
data_dir = './dataset';
result_dir = './results';
seq_name = 'longJump';
%% Set sequence directory
fprintf('=============================================\n');
fprintf('%s\n',seq_name);
fprintf('=============================================\n');
seq_path = fullfile(data_dir,seq_name);
result_path = fullfile(result_dir,seq_name);
%% Perform ACO
segment_track = ACO(seq_path,result_path,param_list);
%% Visualize segmentation result
figure;
for frame_id = 1:length(segment_track)
imshow(segment_track{frame_id}==1);
pause(0.1);
end