-
Notifications
You must be signed in to change notification settings - Fork 0
/
sffTriangulate.m
48 lines (30 loc) · 985 Bytes
/
sffTriangulate.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
function sff = sffTriangulate(sff)
%SFFTRIANGULATE calibrate and triangulate
% input and output: sff structure
%
% Raphael Sarfati
% raphael.sarfati@aya.yale.edu
%% launch calibration
if ~sff.prm.flag.clb
disp([datestr(now,31) ' -- Calibration started...'])
% time calibration
sff = sff_dk(sff);
% space calibration
sff = sff_extractCalibrationTrajectories(sff);
sff = sff_estimate360CameraParameters(sff);
% flag; return to workspace
sff.prm.flag.clb = 1;
assignin('base','sff0',sff)
disp([datestr(now,31) ' -- Calibration completed.'])
end
%% launch triangulation
if ~sff.prm.flag.trg
disp([datestr(now,31) ' -- Triangulation started...'])
sff = sff_matchPoints(sff);
sff = sff_triangulate360(sff);
% flag; return to workspace
sff.prm.flag.trg = 1;
assignin('base','sff0',sff)
disp([datestr(now,31) ' -- Triangulation completed.'])
end
end