source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/missing-data/compshum.m @ 37

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

Added original make3d

File size: 506 bytes
Line 
1function [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.
3shum_stab = [];
4shum_aff_err = [];
5shum_err = [];
6
7for 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];
17end
Note: See TracBrowser for help on using the repository browser.