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

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

Added original make3d

File size: 353 bytes
Line 
1%FDs    error trem for fundamentel m. - squares of Sampson's distances
2%function Ds = FDs(F,u)
3%where u are corespondences and F is fundamental matrix
4
5function Ds = FDs(F,u)
6rx1  = (F(:,1)' * u(1:3,:)).^2;
7ry1  = (F(:,2)' * u(1:3,:)).^2;
8rx2  = (F(1,:)  * u(4:6,:)).^2;
9ry2  = (F(2,:)  * u(4:6,:)).^2;
10r    = Fr(F,u);
11Ds   = r ./ (rx1 + ry1 + rx2 + ry2);
Note: See TracBrowser for help on using the repository browser.