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

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

Added original make3d

File size: 558 bytes
Line 
1%       By Philip Torr 2002
2%       copyright Microsoft Corp.
3
4%
5% %here p is the set of paramets such that
6% g(1) = focal length
7% g(2-3) sperical coordinates of rotation axis
8% g(4) rotation angle
9% g(5-6) is the translation vector
10
11
12function [g,f] = torr_nonlinG(g_init,nx1,ny1,nx2,ny2, no_matches, m3, C)
13
14%options = optimset('Display','iter','Diagnostics','off');
15options = optimset('Display','off','Diagnostics','off');
16g = fminunc('torr_errg_sse',g_init,options,nx1,ny1,nx2,ny2, m3, C);
17
18%generate F matrix (in vector form)
19f = torr_g2F(g,C);
Note: See TracBrowser for help on using the repository browser.