source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/zisserman/vgg_examples/H_from_image_corr_ex.m @ 37

Last change on this file since 37 was 37, checked in by (none), 14 years ago

Added original make3d

  • Property svn:executable set to *
File size: 676 bytes
Line 
1% Example on computing H from a set correspondences for planar points (on the
2% floor) using vgg_H_from_x_lin and displaying result
3
4% Note points are read from stored example in vgg_example_scene
5
6% Read in all detected interest points and images
7[view, Xi, X, Li, L] = vgg_example_scene(2);
8
9n=1; k=2;
10
11% select points for which there are correspondences
12i=all(Xi([n k],:)>0); i=find(i);
13
14% compute H from points on the floor
15H=vgg_H_from_x_lin(view(n).x(:,Xi(n,i([406 399 405 133 115 109]))),...
16             view(k).x(:,Xi(k,i([406 399 405 133 115 109]))));
17
18% Display
19vgg_gui_H(view(n).I, view(k).I, H)
20disp('Computed homography of the floor. Move the mouse to verify')
Note: See TracBrowser for help on using the repository browser.