source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/BlueCCal/MultiCamValidation/Ransac/fu2F7.m @ 37

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

Added original make3d

File size: 480 bytes
Line 
1function Fs = fu2F7(u)
2
3% Z = [];
4% for j = 1:7
5%    Z(j,:) = reshape(u(1:3,j)*u(4:6,j)',1,9);
6% end
7
8Z = lin_fm(u);
9
10NullSp   = null(Z);
11if size(NullSp,2) > 2
12   Fs = [];
13   return; %degenerated sample
14end
15
16F1    = reshape(NullSp(:,1),3,3);
17F2    = reshape(NullSp(:,2),3,3);
18p = fslcm(F1,F2);
19aroots = rroots(p);
20
21%xr = o_fslcm(F1,F2)
22
23%aroots == xr
24
25for i = 1:length(aroots)
26   l  = aroots(i);
27   Ft    = F1 * l + F2 * (1-l);
28%   Ft = Ft /norm(Ft,2);
29   Fs(:,:,i) = Ft;
30end
31
32
33
Note: See TracBrowser for help on using the repository browser.