h_from_image_corr_ex.m

来自「实现了几何多视的功能」· M 代码 · 共 21 行

M
21
字号
% Example on computing H from a set correspondences for planar points (on the% floor) using vgg_H_from_x_lin and displaying result% Note points are read from stored example in vgg_example_scene% Read in all detected interest points and images[view, Xi, X, Li, L] = vgg_example_scene(2);n=1; k=2; % select points for which there are correspondencesi=all(Xi([n k],:)>0); i=find(i);% compute H from points on the floorH=vgg_H_from_x_lin(view(n).x(:,Xi(n,i([406 399 405 133 115 109]))),...             view(k).x(:,Xi(k,i([406 399 405 133 115 109]))));% Displayvgg_gui_H(view(n).I, view(k).I, H)disp('Computed homography of the floor. Move the mouse to verify')

⌨️ 快捷键说明

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