/baseline/source/statemate/

git' href='http://rtsrv.cs.unc.edu/public/mc2-scripts-and-benchmarks.git' title='mc2-scripts-and-benchmarks.git Git repository'/>
summaryrefslogblamecommitdiffstats
path: root/SD-VBS/common/toolbox/toolbox_basic/calib_bouguetj/ima_read_calib.m
blob: 09cef59fb82a0c919ed01dcb4b084af4f3cd50ec (plain) (tree)










































































































                                                                                                                                                  

if ~exist('calib_name'),
   data_calib;
end;

check_active_images;

images_read = active_images;

image_numbers = first_num:n_ima-1+first_num;

no_image_file = 0;

i = 1;

while (i <= n_ima), % & (~no_image_file),
   
   if active_images(i),
   
   	%fprintf(1,'Loading image %d...\n',i);
   
   	if ~type_numbering,   
      	number_ext =  num2str(image_numbers(i));
   	else
      	number_ext = sprintf(['%.' num2str(N_slots) 'd'],image_numbers(i));
   	end;
   	
      ima_name = [calib_name  number_ext '.' format_image]
      
      if i == ind_active(1),
         fprintf(1,'Loading image ');
      end;
      
      if exist(ima_name),
         
         fprintf(1,'%d...',i);
      	
      	if format_image(1) == 'p',
         	Ii = double(pgmread(ima_name));
      	else
      		if format_image(1) == 'r',
         		Ii = readras(ima_name);
   			else
      			Ii = double(imread(ima_name));
   			end;
      	end;
      	
   		if size(Ii,3)>1,