Changeset 447 for trunk/src/series/sub_background.m
- Timestamp:
- Jun 11, 2012, 9:35:38 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/sub_background.m
r442 r447 43 43 'NomType';'on';...%type of file indexing ('on' by default) 44 44 'NbSlice';'on'; ...%nbre of slices ('off' by default) 45 'OutputDirExt';'.sbk';... 45 46 %'VelTypeMenu';'on';...% menu for selecting the velocity type (civ1,..)('off' by default) 46 47 %'FieldMenu';'on';...% menu for selecting the velocity field (s) in the input file ('off' by default) … … 70 71 dir_images=Param.InputTable{1,1}; 71 72 NomType=Param.InputTable{1,4}; 73 SubDir=Param.InputTable{1,2}; 72 74 FileExt=Param.InputTable{1,5}; 73 [filecell,i1_series,tild,j1_series]=get_file_series(Param);%generates the set 74 of input file names 75 [filecell,i1_series,tild,j1_series]=get_file_series(Param);%generates the set of input file names 75 76 if size(filecell,1)>1 76 77 msgbox_uvmat('WARNING','This function uses only the first input image series') … … 211 212 %% update the xml file 212 213 SubDirBase=regexprep(Param.InputTable{1,2},'\..*','');%take the root part of SubDir, before the first dot '.' 213 filexml=ful fille(Param.InputTable{1,1},[SubDirBase '.xml']);214 filexml=fullfile(Param.InputTable{1,1},[SubDirBase '.xml']); 214 215 if ~exist(filexml,'file') && exist([filebase '.xml'],'file')% xml inside the image directory 215 216 copyfile([filebase '.xml'],filexml);% copy the .xml file 216 217 end 217 218 if exist(filexml,'file') 218 t=xmltree( [filexml '.xml']);219 t=xmltree(filexml); 219 220 %update information on the first image name in the series 220 221 uid_Heading=find(t,'ImaDoc/Heading'); … … 306 307 if checkrun 307 308 stopstate=get(hseries.RUN,'BusyAction'); 308 update_waitbar(hseries.waitbar,WaitbarPos,(ifield+(islice-1)*nbfield_slice)/(nbfield_slice*nbslice_i)) 309 display((ifield+(islice-1)*nbfield_slice)/(nbfield_slice*nbslice_i)) 309 update_waitbar(hseries.waitbar_frame,WaitbarPos,(ifield+(islice-1)*nbfield_slice)/(nbfield_slice*nbslice_i)) 310 310 else 311 311 stopstate='queue'; … … 316 316 for iburst=1:step 317 317 ifile=indselect(ifield+step*floor(nbaver/2)+iburst-1); 318 filename=fullfile_uvmat(Param.InputTable{1,1},Sub dir,Param.InputTable{1,3},FileExt,NomType,num_i1(ifile),[],num_j1(ifile));318 filename=fullfile_uvmat(Param.InputTable{1,1},SubDir,Param.InputTable{1,3},FileExt,NomType,i1_series{1}(ifile),[],j1_series{1}(ifile)); 319 319 %filename=name_generator(filebase,num_i1(ifile),num_j1(ifile),FileExt,NomType); 320 Aread=read_image(filename,FileType, num_i1(ifile),MovieObject);320 Aread=read_image(filename,FileType,i1_series{1}(ifile),MovieObject); 321 321 Ak(:,:,nbaver_ima-step+iburst)=Aread; 322 322 end
Note: See TracChangeset
for help on using the changeset viewer.