1 | % By Philip Torr 2002
|
---|
2 | % copyright Microsoft Corp.
|
---|
3 | % estimate fundamental matrix from perfect points??
|
---|
4 | % so plan is:----
|
---|
5 | %disp('estimating error on f')
|
---|
6 | %f = fmins('sseff',f,[], [],nx1,ny1,nx2,ny2, no_matches, m3);
|
---|
7 |
|
---|
8 | %global nx1 ny1 nx2 ny2 no_matches m3
|
---|
9 | function f = nonlinf(f_init, nx1,ny1,nx2,ny2, no_matches, m3)
|
---|
10 |
|
---|
11 | % stage 1 est F using linear methods
|
---|
12 | %f_init = estf(nx1,ny1,nx2,ny2, no_matches,m3);
|
---|
13 |
|
---|
14 | %stage 2 estimate f non-linearly
|
---|
15 |
|
---|
16 | %options(1) = 0;
|
---|
17 | %display results
|
---|
18 | options(13) = 2;
|
---|
19 | %number of equality constraints
|
---|
20 | % option(14) = 300;
|
---|
21 | % number of iterations
|
---|
22 | f = constr('torr_errf_sseC', f_init, options, [],[],[], nx1, ny1, nx2, ny2, m3);
|
---|
23 |
|
---|
24 |
|
---|