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

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

Added original make3d

File size: 379 bytes
Line 
1%       By Philip Torr 2002
2%       copyright Microsoft Corp.
3function f_out = torr_Sampson_F(x1,y1,x2,y2, no_matches,m3, D_orig, f)
4
5   grad_i = torr_grad_f(f,x1,y1,x2,y2, no_matches, m3);
6
7   %remove singularities
8   grad_i = max(grad_i,0.01);
9    %Sampson
10    w_ne = sqrt(1 ./grad_i);
11    Weights = repmat(w_ne,1,9);
12    D = Weights .* D_orig;
13   
14     f_out = torr_ls(D);
Note: See TracBrowser for help on using the repository browser.