Last change
on this file since 86 was
37,
checked in by (none), 15 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 | |
---|
9 | n=1; k=2; |
---|
10 | |
---|
11 | % select points for which there are correspondences |
---|
12 | i=all(Xi([n k],:)>0); i=find(i); |
---|
13 | |
---|
14 | % compute H from points on the floor |
---|
15 | H=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 |
---|
19 | vgg_gui_H(view(n).I, view(k).I, H) |
---|
20 | disp('Computed homography of the floor. Move the mouse to verify') |
---|
Note: See
TracBrowser
for help on using the repository browser.