-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_result.m
67 lines (44 loc) · 1.76 KB
/
run_result.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
%% ROI
dataDir = './2.22¦¿«Ø¿«';
inFile = fullfile(dataDir,'1.mp4');
fprintf('Processing %s\n', inFile);
Transform_face('2.22¦¿«Ø¿«',inFile,30);
inFile = fullfile(dataDir,'2.mp4');
fprintf('Processing %s\n', inFile);
Transform_face('2.22¦¿«Ø¿«',inFile,30);
inFile = fullfile(dataDir,'3.mp4');
fprintf('Processing %s\n', inFile);
Transform_face('2.22¦¿«Ø¿«',inFile,30);
inFile = fullfile(dataDir,'4.mp4');
fprintf('Processing %s\n', inFile);
Transform_face('2.22¦¿«Ø¿«',inFile,30);
inFile = fullfile(dataDir,'5.mp4');
fprintf('Processing %s\n', inFile);
Transform_face('2.22¦¿«Ø¿«',inFile,30);
%% run
dataDir = '2.22¦¿«Ø¿«';
inFile = fullfile(dataDir,'1_Trim_1.avi');
fprintf('Processing %s\n', inFile);
[sub_1,int1] = Produce1('2.22¦¿«Ø¿«/1','sub6',inFile,5/6,2,30);
inFile = fullfile(dataDir,'1_Trim_2.avi');
fprintf('Processing %s\n', inFile);
[sub_2,int2] = Produce1('2.22¦¿«Ø¿«/2','sub6',inFile,5/6,2,30);
inFile = fullfile(dataDir,'2.avi');
fprintf('Processing %s\n', inFile);
[sub_3,int3] = Produce1('2.22¦¿«Ø¿«/3','sub6',inFile,5/6,2,30);
inFile = fullfile(dataDir,'3.avi');
fprintf('Processing %s\n', inFile);
[sub_4,int4] = Produce1('2.22¦¿«Ø¿«/4','sub6',inFile,5/6,2,30);
inFile = fullfile(dataDir,'4.avi');
fprintf('Processing %s\n', inFile);
[sub_5,int5] = Produce1('2.22¦¿«Ø¿«/5','sub6',inFile,5/6,2,30);
inFile = fullfile(dataDir,'5.avi');
fprintf('Processing %s\n', inFile);
[sub_6,int6] = Produce1('2.22¦¿«Ø¿«/6','sub6',inFile,5/6,2,30);
interval = [int1 int2 int3 int4 int5 int6];
new_interval = del_outlier(interval);
ratio = pwelch_interval(new_interval,'2.22¦¿«Ø¿«','sub6');
time_Bef = HRV_time(interval);
time_Aft = HRV_time(new_interval);
%% ploting
plotRR('2.22¦¿«Ø¿«',interval,new_interval)