Changeset 926 for trunk/src/toolbox_calib/go_calib_optim.m
- Timestamp:
- Feb 18, 2016, 12:05:51 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/toolbox_calib/go_calib_optim.m
r924 r926 1 %=======================================================================2 % Copyright 2008-2016, LEGI UMR 5519 / CNRS UGA G-INP, Grenoble, France3 % http://www.legi.grenoble-inp.fr4 % Joel.Sommeria - Joel.Sommeria (A) legi.cnrs.fr5 %6 % This file is part of the toolbox UVMAT.7 %8 % UVMAT is free software; you can redistribute it and/or modify9 % it under the terms of the GNU General Public License as published10 % 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 of15 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the16 % GNU General Public License (see LICENSE.txt) for more details.17 %=======================================================================18 19 1 %go_calib_optim 20 2 % … … 48 30 %For now, if using a 3D calibration rig, set quick_init to 1 for an easy initialization of the focal length 49 31 50 if ~exist('rosette_calibration','var')51 rosette_calibration = 0;52 end;53 32 54 33 if ~exist('n_ima'), … … 59 38 60 39 check_active_images; 61 62 40 check_extracted_images; 63 64 41 check_active_images; 65 66 42 desactivated_images = []; 67 43 68 44 recompute_extrinsic = (length(ind_active) < 100); % if there are too many images, do not spend time recomputing the extrinsic parameters twice.. 69 45 70 if (rosette_calibration)71 %%% Special Setting for the Rosette:72 est_dist = ones(5,1);73 end;74 75 76 46 %%% MAIN OPTIMIZATION CALL!!!!! (look into this function for the details of implementation) 77 47 go_calib_optim_iter; 78 48 79 80 49 if ~isempty(desactivated_images), 81 82 50 param_list_save = param_list; 83 84 51 fprintf(1,'\nNew optimization including the images that have been deactivated during the previous optimization.\n'); 85 52 active_images(desactivated_images) = ones(1,length(desactivated_images)); 86 53 desactivated_images = []; 87 88 54 go_calib_optim_iter; 89 90 55 if ~isempty(desactivated_images), 91 56 fprintf(1,['List of images left desactivated: ' num2str(desactivated_images) '\n' ] ); 92 57 end; 93 94 58 param_list = [param_list_save(:,1:end-1) param_list]; 95 96 59 end; 97 98 99 %%%%%%%%%%%%%%%%%%%% GRAPHICAL OUTPUT %%%%%%%%%%%%%%%%%%%%%%%%100 101 %graphout_calib;102
Note: See TracChangeset
for help on using the changeset viewer.