-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.m
73 lines (66 loc) · 2.41 KB
/
main.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
68
69
70
71
72
73
clear,clc;
videoName = '118_07182017';
feature_field = {'time','speed','GPS_long','GPS_lat','GPS_heading','distance'};
event_field = {'TurnLeft','TurnRight'};
data = Dataset(videoName,feature_field,event_field);
data = data.reSample('distance', 0.002);
data = data.extractCurvature();
% % % % % % % % data = data.reSync();
data = data.segtrip(0.05, 0.02,0.001,'distance');
data = data.extractCurvature();
data = data.extractVgg19();
% data = data.checkCurvature;
% load('matlab.mat');
data = data.appendLabel();
save('028data.mat','data');
clear,clc;
feature_field = {'time','speed','GPS_long','GPS_lat','GPS_heading','distance'};
event_field = {'TurnLeft','TurnRight'};
data = Dataset('023',feature_field,event_field);
% % % % % % % % data = data.reSync();
data = data.segtrip(0.05, 0.02,0.001,'distance');
data = data.extractCurvature();
data = data.extractVgg19();
% data = data.checkCurvature;
% load('matlab.mat');
data = data.appendLabel();
save('023data.mat','data');
clear,clc;
feature_field = {'time','speed','GPS_long','GPS_lat','GPS_heading','distance'};
event_field = {'TurnLeft','TurnRight'};
data = Dataset('106_07142017',feature_field,event_field);
% % % % % % % % data = data.reSync();
data = data.segtrip(0.05, 0.02,0.001,'distance');
data = data.extractCurvature();
data = data.extractVgg19();
% data = data.checkCurvature;
% load('matlab.mat');
data = data.appendLabel();
save('106data.mat','data');
clear,clc;
feature_field = {'time','speed','GPS_long','GPS_lat','GPS_heading','distance'};
event_field = {'TurnLeft','TurnRight'};
data = Dataset('118_07182017',feature_field,event_field);
% % % % % % % % data = data.reSync();
data = data.segtrip(0.05, 0.02,0.001,'distance');
data = data.extractCurvature();
data = data.extractVgg19();
% data = data.checkCurvature;
% load('matlab.mat');
data = data.appendLabel();
save('118_07182017.mat','data');
clear,clc;
feature_field = {'time','speed','GPS_long','GPS_lat','GPS_heading','distance'};
event_field = {'TurnLeft','TurnRight'};
data = Dataset('112_07172017',feature_field,event_field);
% % % % % % % % data = data.reSync();
data = data.segtrip(0.05, 0.02,0.001,'distance');
data = data.extractCurvature();
data = data.extractVgg19();
% data = data.checkCurvature;
% load('matlab.mat');
data = data.appendLabel();
save('112_07172017.mat','data');
% data.checkSeg;
% load('matlab.mat');
% y = {data.segData.Label};