Line | |
---|
1 | function [shum_err, shum_aff_err, shum_stab] = compshum(Merr, pts, INC, r, num_random_starts) |
---|
2 | % Run Shum's alg. a number of times with different random starting points. |
---|
3 | shum_stab = []; |
---|
4 | shum_aff_err = []; |
---|
5 | shum_err = []; |
---|
6 | |
---|
7 | for i=1:num_random_starts |
---|
8 | [s_err, s_mat,s_stab] = shum(Merr,INC,r,0,100); |
---|
9 | if s_err ~= -2 |
---|
10 | s_aff_err = affine_error(s_mat, pts, r); |
---|
11 | else |
---|
12 | s_aff_err = -2; |
---|
13 | end |
---|
14 | shum_stab = [ shum_stab, s_stab]; |
---|
15 | shum_aff_err = [shum_aff_err,s_aff_err]; |
---|
16 | shum_err = [shum_err, s_err]; |
---|
17 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.