-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathget_pointCloud_nFrames.m
68 lines (54 loc) · 1.94 KB
/
get_pointCloud_nFrames.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
% Authors - Eduardo Pavez <[email protected], [email protected]>
% Copyright Eduardo Pavez, University of Southern California
%Los Angeles, USA, 05/30/2020
% E. Pavez, B. Girault, A. Ortega, and P. A. Chou.
%"Region adaptive graph Fourier transform for 3D point clouds".
%IEEE International Conference on Image Processing (ICIP), 2020
%https://arxiv.org/abs/2003.01866
function [ nFrames ] = get_pointCloud_nFrames(dataset, sequence )
%UNTITLED Summary of this function goes here
% Detailed explanation goes here
switch dataset
case '8iVFBv2'
switch sequence
case 'redandblack'
startFrame= 1450;
endFrame = 1749;
case 'soldier'
startFrame= 536;
endFrame = 835;
case 'longdress'
startFrame= 1051;
endFrame = 1350;
case 'loot'
startFrame= 1000;
endFrame = 1299;
otherwise
warning('the provided sequence %s does not belong in dataset %s', sequence, dataset);
end
case 'MVUB'
switch sequence
case 'andrew9'
startFrame= 0;
endFrame = 317;
case 'david9'
startFrame= 0;
endFrame = 215;
case 'phil9'
startFrame= 0;
endFrame = 244;
case 'ricardo9'
startFrame= 0;
endFrame = 215;
case 'sarah9'
startFrame= 0;
endFrame = 206;
otherwise
warning('the provided sequence %s does not belong in dataset %s', sequence, dataset);
end
J = 9;
otherwise
warning('%s is not proper dataset', dataset);
end
nFrames = endFrame - startFrame +1;
end