source: trunk/src/toolbox_calib/check_active_images.m @ 1156

Last change on this file since 1156 was 926, checked in by sommeria, 9 years ago

geometry cqlib updated

File size: 937 bytes
Line 
1if n_ima ~= 0,
2   
3    if ~exist('active_images'),
4        active_images = ones(1,n_ima);
5    end;
6    n_act = length(active_images);
7    if n_act < n_ima,
8        active_images = [active_images ones(1,n_ima-n_act)];
9    else
10        if n_act > n_ima,
11            active_images = active_images(1:n_ima);
12        end;
13    end;
14   
15    ind_active = find(active_images);
16   
17    if prod(double(active_images == 0)),
18        disp('Error: There is no active image. Run Add/Suppress images to add images');
19        return;
20    end;
21   
22    if exist('center_optim'),
23        center_optim = double(center_optim);
24    end;
25    if exist('est_alpha'),
26        est_alpha = double(est_alpha);
27    end;
28    if exist('est_dist'),
29        est_dist = double(est_dist);
30    end;
31    if exist('est_fc'),
32        est_fc = double(est_fc);
33    end;
34    if exist('est_aspect_ratio'),
35        est_aspect_ratio = double(est_aspect_ratio);
36    end;
37   
38end;
Note: See TracBrowser for help on using the repository browser.