📄 projet3d.m
字号:
%% Bruno JACQUOT / Gaetan BOEHRINGER
clear all;
close all;
%% Lecture de l'image
I=imread('stereo1_Etape1.jpg');
I2=imread('stereo2_Etape1.jpg');
I3=imread('stereo1_Etape2.jpg');
I4=imread('stereo2_Etape2.jpg');
I5=imread('stereo1_Etape3.jpg');
I6=imread('stereo2_Etape3.jpg');
I7=imread('stereo1_Etape4.jpg');
I8=imread('stereo2_Etape4.jpg');
u0=320;
v0=240;
imagesc(I), %axis([250,450,90,300])
%% S閘ection manuelle des points caract閞istiques
[Px,Py] = ginput(12);
% translation des points : pas obligatoire (ne pas mettre u0, v0 dans la matrice si omis)
for j=1:12
Px(j)=Px(j)-u0;
Py(j)=Py(j)-v0;
end
%% lecture des points 3D
calibPts = [ 49 0 65 % x y z coords of point 1
129 0 65 % x y z coords of point 2
49 0 145 % etc
129 0 145
49 0 225
129 0 225
0 129 65
0 49 65
0 129 145
0 49 145
0 129 225
0 49 225 ];
%% Calibrage
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -