-
Notifications
You must be signed in to change notification settings - Fork 15
/
reconstruct_LUT.m
46 lines (36 loc) · 933 Bytes
/
reconstruct_LUT.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
clc;
clear all;
close all;
% M = 640;
% b = 22.86;
% Dz = 12;
% D0 = 10;
% f = 3.5;
load('cameraParams.mat');
% b = 11.43;
% M = 640;
% Dz = 21.59;
% D0 = 11.43;
f = 3.5;
% b = 11.43;
b = 18;
M = 640;
Dz = 9.3;
D0 = 2.2;
for i=2:22
s = strcat('video_data/',num2str(i),'.jpeg');
% sc = do_threed_reconst(imread(s),laser_calibration(640,22.86,12,10),cameraParams.FocalLength,cameraParams.PrincipalPoint);
sc = do_threed_reconst(imread(s),laser_calibration(M,b,Dz,D0),cameraParams.FocalLength,cameraParams.PrincipalPoint);
fig = scatter3(sc(:,1),sc(:,2),sc(:,3),'bo');
saveas(fig,strcat('res_data/',num2str(i),'.jpeg'))
end
% while(1)
% %%% enter your video frame reader code here
%
% F = %%% Read a video frame
%
% sc = do_threed_reconst(F,laser_calibration(M,b,Dz,D0),cameraParams.FocalLength,cameraParams.PrincipalPoint);
% fig = scatter3(sc(:,1),sc(:,2),sc(:,3),'bo'); %% Will automatically display.
%
% end
%%@dassg