Ignore:
Timestamp:
Feb 18, 2016, 12:05:51 PM (8 years ago)
Author:
sommeria
Message:

geometry cqlib updated

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, 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 
    191%go_calib_optim
    202%
     
    4830%For now, if using a 3D calibration rig, set quick_init to 1 for an easy initialization of the focal length
    4931
    50 if ~exist('rosette_calibration','var')
    51     rosette_calibration = 0;
    52 end;
    5332
    5433if ~exist('n_ima'),
     
    5938
    6039check_active_images;
    61 
    6240check_extracted_images;
    63 
    6441check_active_images;
    65 
    6642desactivated_images = [];
    6743
    6844recompute_extrinsic = (length(ind_active) < 100); % if there are too many images, do not spend time recomputing the extrinsic parameters twice..
    6945
    70 if (rosette_calibration)
    71   %%% Special Setting for the Rosette:
    72   est_dist = ones(5,1);
    73 end;
    74 
    75 
    7646%%% MAIN OPTIMIZATION CALL!!!!! (look into this function for the details of implementation)
    7747go_calib_optim_iter;
    7848
    79 
    8049if ~isempty(desactivated_images),
    81    
    8250   param_list_save = param_list;
    83    
    8451   fprintf(1,'\nNew optimization including the images that have been deactivated during the previous optimization.\n');
    8552   active_images(desactivated_images) = ones(1,length(desactivated_images));
    8653   desactivated_images = [];
    87    
    8854   go_calib_optim_iter;
    89    
    9055   if ~isempty(desactivated_images),
    9156      fprintf(1,['List of images left desactivated: ' num2str(desactivated_images) '\n' ] );
    9257   end;
    93    
    9458   param_list = [param_list_save(:,1:end-1) param_list];
    95    
    9659end;
    97 
    98 
    99 %%%%%%%%%%%%%%%%%%%% GRAPHICAL OUTPUT %%%%%%%%%%%%%%%%%%%%%%%%
    100 
    101 %graphout_calib;
    102 
Note: See TracChangeset for help on using the changeset viewer.