[810] | 1 | %=======================================================================
|
---|
| 2 | % Copyright 2008-2014, LEGI UMR 5519 / CNRS UJF G-INP, Grenoble, France
|
---|
| 3 | % http://www.legi.grenoble-inp.fr
|
---|
| 4 | % Joel.Sommeria - Joel.Sommeria (A) legi.cnrs.fr
|
---|
| 5 | %
|
---|
| 6 | % This file is part of the toolbox UVMAT.
|
---|
| 7 | %
|
---|
| 8 | % UVMAT is free software; you can redistribute it and/or modify
|
---|
| 9 | % it under the terms of the GNU General Public License as published
|
---|
| 10 | % by the Free Software Foundation; either version 2 of the license,
|
---|
| 11 | % or (at your option) any later version.
|
---|
| 12 | %
|
---|
| 13 | % UVMAT is distributed in the hope that it will be useful,
|
---|
| 14 | % but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
| 15 | % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
| 16 | % GNU General Public License (see LICENSE.txt) for more details.
|
---|
| 17 | %=======================================================================
|
---|
| 18 |
|
---|
[725] | 19 | check_active_images;
|
---|
| 20 |
|
---|
| 21 | for kk = ind_active,
|
---|
| 22 |
|
---|
| 23 | if ~exist(['x_' num2str(kk)]),
|
---|
| 24 |
|
---|
| 25 | fprintf(1,'WARNING: Need to extract grid corners on image %d\n',kk);
|
---|
| 26 |
|
---|
| 27 | active_images(kk) = 0;
|
---|
| 28 |
|
---|
| 29 | eval(['dX_' num2str(kk) ' = NaN;']);
|
---|
| 30 | eval(['dY_' num2str(kk) ' = NaN;']);
|
---|
| 31 |
|
---|
| 32 | eval(['wintx_' num2str(kk) ' = NaN;']);
|
---|
| 33 | eval(['winty_' num2str(kk) ' = NaN;']);
|
---|
| 34 |
|
---|
| 35 | eval(['x_' num2str(kk) ' = NaN*ones(2,1);']);
|
---|
| 36 | eval(['X_' num2str(kk) ' = NaN*ones(3,1);']);
|
---|
| 37 |
|
---|
| 38 | eval(['n_sq_x_' num2str(kk) ' = NaN;']);
|
---|
| 39 | eval(['n_sq_y_' num2str(kk) ' = NaN;']);
|
---|
| 40 |
|
---|
| 41 | else
|
---|
| 42 |
|
---|
| 43 | eval(['xkk = x_' num2str(kk) ';']);
|
---|
| 44 |
|
---|
| 45 | if isnan(xkk(1)),
|
---|
| 46 |
|
---|
| 47 | fprintf(1,'WARNING: Need to extract grid corners on image %d - This image is now set inactive\n',kk);
|
---|
| 48 |
|
---|
| 49 | active_images(kk) = 0;
|
---|
| 50 |
|
---|
| 51 | end;
|
---|
| 52 |
|
---|
| 53 | end;
|
---|
| 54 |
|
---|
| 55 | end;
|
---|