-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathvisualize_data.m
More file actions
65 lines (46 loc) · 1.55 KB
/
visualize_data.m
File metadata and controls
65 lines (46 loc) · 1.55 KB
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
% This is mid-step to check the found information matched with frames
participantNum = '1';
activityNum = '1';
activityName = "Indoor_Walk";
v = VideoReader(strcat('/media/ashdev/Expansion/data/GiW/',participantNum,'/', activityNum,'/world.mp4'));
load(strcat("/media/ashdev/Expansion/data/GiW/Extracted_Data/",activityName,"/Labels","/PrIdx_",participantNum,"_TrIdx_", activityNum ,"_Lbr_6.mat"));
load(strcat("/media/ashdev/Expansion/data/GiW/Extracted_Data/",activityName,"/ProcessData","/PrIdx_",participantNum,"_TrIdx_", activityNum ,".mat"));
% gazes = load(strcat("/media/ashdev/Expansion/data/GiW/Extracted_Data/gazes_p",participantNum,"_a", activityNum ,".csv"));
% frames = load(strcat("/media/ashdev/Expansion/data/GiW/Extracted_Data/frames_p",participantNum,"_a", activityNum ,".csv"));
gazes = ProcessData.ETG.POR;
% patchSim = feats(:,5);
% % gazes = feats(:,2:3);
% gaze_rot = feats(:,1);
% head_rot = feats(:,3);
% gazes = gazes .* [1920, 1080];
f = 1;
t = 1;
figure(1)
%
subplot(3,1,1)
plot(gazes(27000:27200,1))
title("gaze x")
subplot(3,1,2)
plot(gazes(27000:27200,2))
title("gaze y")
subplot(3,1,3)
heatmap(LabelData.Labels(27000:27200)')
title("labels")
while (1)
if t <= 22600
t = t+1; fprintf(strcat(string(f), "\n"));
continue
end
subplot(3,1,1)
plot(gazes(22600:t,1))
title("gaze x")
subplot(3,1,2)
plot(gazes(22600:t,2))
title("gaze y")
subplot(3,1,3)
heatmap(LabelData.Labels(22600:t)', 'Colormap',summer)
title("labels")
t = t+1;
f = f+1;
pause(0.1)
end