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

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

geometry cqlib updated

File size: 863 bytes
Line 
1check_active_images;
2
3for kk =  ind_active,
4   
5   if ~exist(['x_' num2str(kk)]),
6     
7      fprintf(1,'WARNING: Need to extract grid corners on image %d\n',kk);
8     
9      active_images(kk) = 0;
10     
11      eval(['dX_' num2str(kk) ' = NaN;']);
12      eval(['dY_' num2str(kk) ' = NaN;']); 
13     
14      eval(['wintx_' num2str(kk) ' = NaN;']);
15      eval(['winty_' num2str(kk) ' = NaN;']);
16
17      eval(['x_' num2str(kk) ' = NaN*ones(2,1);']);
18      eval(['X_' num2str(kk) ' = NaN*ones(3,1);']);
19     
20      eval(['n_sq_x_' num2str(kk) ' = NaN;']);
21      eval(['n_sq_y_' num2str(kk) ' = NaN;']);
22   
23   else
24     
25      eval(['xkk = x_' num2str(kk) ';']);
26     
27      if isnan(xkk(1)),
28         
29         fprintf(1,'WARNING: Need to extract grid corners on image %d - This image is now set inactive\n',kk);
30
31         active_images(kk) = 0;
32         
33      end;
34     
35   end;
36   
37end;
Note: See TracBrowser for help on using the repository browser.