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

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

Added original make3d

File size: 1.0 KB
Line 
1function [err, aff_err, stable] = real_intensity(s)
2% fo = fraction of frames points are occluded. 
3% nframes = number frames
4% npoints = number points
5% frot = fraction of 2*pi for rotation in depth.
6% sigma = magnitude of Gaussian error.  Pt. coordinates typically range
7%   between -1 and 1, so a reasonable setting might be .01, or .005.
8% s = number of samples to draw in my method.
9% n = number times to repeat exp.
10
11% there are a number of other parameters set in these experiments.
12% In motion generation, there is amount of translation (0) and in-plane rotation.
13%   in shum there are the number of iterations to try.
14
15num_random_starts = 5;
16
17test2_data;
18M = test2_im_data;
19
20ERR = zeros(size(M));
21
22
23% norms is meaningless here, since we do not have ground truth
24% geometric data (normals) for this image.  just make norms something,
25%so the affine_error computation does not generate an error.
26
27for i = 1:432
28  norms(:,i) = [1 0 0 1]';
29end
30
31INC = (test2_im_data > .2);
32
33[err, aff_err, stable] = compare_affine(M,INC,3,ERR,norms,s,num_random_starts,1);
34
35
Note: See TracBrowser for help on using the repository browser.