⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ex1_perspective.m

📁 书籍The Epipolar Geometry Toolbox (EGT)的MATLAB源代码
💻 M
字号:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%                                       %%
%%  Epipolar Geometry Toolbox v1.1 (EGT) %%
%%                                       %%
%%%%%%%% DII- University of Siena %%%%%%%%%
%   
% -* Perspective projection example *- 
%       Placement of camera and plot of point on the image plane
%
     clear all
     close all
     X=0;     
     Y=10;     
     Z=10;     
     P=[X;Y;Z];     
     figure(1);     
     hold on; grid on; 
     axis equal;     
     f_3Dwf('k',3,'_{wf}');     
     f_scenepnt(P,'r*');             
     Rd=rotoy(0)*rotox(0)*rotoz(0);       
     td=[0,-10,0]';     
     Hd=f_Rt2H(Rd,td);     
     f_3Dframe(Hd,'b:',3,'_{c}');     
     f_3Dcamera(Hd,'b',1);     
     Kd=eye(3);     
     [ud,vd]=f_perspproj(P,Hd,Kd,2);  % put "2" to see the line joining 
                                      % the camera center and the feature   
     title('Epipolar Geometry Toolbox - Example 3 - Perspective Projection');
     for i=1:2:360,
         view(i,24)
         pause(.1)
     end    

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -