source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/torr/torr_test_F.m @ 37

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

Added original make3d

File size: 773 bytes
Line 
1%       By Philip Torr 2002
2%       copyright Microsoft Corp.
3%a script to display the results of the F matrix...
4
5%third homogeneous coordinare
6m3 = 256;
7
8%decide display method
9compare = 0;
10
11%choose your method here
12method = 2
13set_rank2 = 0;
14
15
16%generate synthetic data
17[true_F,x1,y1,x2,y2,nx1,ny1,nx2,ny2,true_C,true_R,true_t, true_E] = torr_gen_2view_matches;
18no_matches = length(nx1);
19matches = [nx1,ny1,nx2,ny2];
20
21
22%first estimate F
23[f, e1, n_inliers,inlier_index,estimateF] = torr_estimateF( matches, m3, [], method, set_rank2);
24
25%check errors
26e = torr_errf2(f, nx1,ny1,nx2,ny2, no_matches, m3);
27
28%display the result
29if compare
30    torr_compare_epipoles(true_F,estimateF,matches, m3)
31else
32    torr_display_epipoles(estimateF,matches, m3)
33end
34
35
Note: See TracBrowser for help on using the repository browser.