Changeset 624
- Timestamp:
- Apr 29, 2013, 11:28:23 PM (12 years ago)
- Location:
- trunk/src/series
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/aver_stat.m
r616 r624 61 61 62 62 %%%%%%%%%%%% STANDARD PART %%%%%%%%%%%% 63 ParamOut=[]; 63 ParamOut=[];%default output 64 64 %% read input parameters from an xml file if input is a file name (batch mode) 65 65 checkrun=1; … … 68 68 checkrun=0; 69 69 end 70 71 %% define the directory for result file 70 hseries=findobj(allchild(0),'Tag','series'); 71 RUNHandle=findobj(hseries,'Tag','RUN');%handle of RUN button in GUI series 72 WaitbarHandle=findobj(hseries,'Tag','Waitbar');%handle of waitbar in GUI series 73 74 %% define the directory for result file (with path=RootPath{1}) 72 75 OutputDir=[Param.OutputSubDir Param.OutputDirExt]; 73 76 … … 173 176 %%%%%%%%%%%%%%%% loop on field indices %%%%%%%%%%%%%%%% 174 177 for index=1:nbfield 175 %for index=index_slice 176 if checkrun 177 stopstate=get(Param.RUNHandle,'BusyAction'); 178 update_waitbar(Param.WaitbarHandle,index/nbfield) 179 else 180 stopstate='queue'; 181 end 182 if isequal(stopstate,'queue')% enable STOP command 183 178 update_waitbar(WaitbarHandle,index/nbfield) 179 if ishandle(RUNHandle) && ~strcmp(get(RUNHandle,'BusyAction'),'queue') 180 disp('program stopped by user') 181 break 182 end 183 184 184 %%%%%%%%%%%%%%%% loop on views (input lines) %%%%%%%%%%%%%%%% 185 185 for iview=1:nbview … … 194 194 end 195 195 end 196 else197 errormsg='stop';198 end199 196 %%%%%%%%%%%%%%%% end loop on views (input lines) %%%%%%%%%%%%%%%% 200 197 %%%%%%%%%%%% END STANDARD PART %%%%%%%%%%%% 201 198 % EDIT FROM HERE 202 199 203 200 if isempty(errormsg) 204 201 Field=Data{1}; % default input field structure … … 224 221 end 225 222 end 226 223 227 224 %% calculate tps coefficients if needed 228 225 if isfield(Param,'ProjObject')&&isfield(Param.ProjObject,'ProjMode')&& strcmp(Param.ProjObject.ProjMode,'interp_tps') 229 226 Field=tps_coeff_field(Field,check_proj_tps); 230 227 end 231 228 232 229 %field projection on an object 233 230 if Param.CheckObject … … 239 236 end 240 237 nbfiles=nbfiles+1; 241 238 242 239 %%%%%%%%%%%% MAIN RUNNING OPERATIONS %%%%%%%%%%%% 243 240 %update sum … … 288 285 end 289 286 else % time from ImaDoc prevails if it exists 290 % j1=1;%default291 % if ~isempty(j1_series{1})292 % j1=j1_series{1};293 % end287 % j1=1;%default 288 % if ~isempty(j1_series{1}) 289 % j1=j1_series{1}; 290 % end 294 291 %DataOut.Time=time(1,i1_series{1}(1),j1); 295 292 %DataOut.Time_end=time(end,i1_series{end}(end),j1_series{end}(end)); … … 317 314 end 318 315 end % end averaging loop 319 % end320 %%%%%%%%%%%%%%%% end loop on slices %%%%%%%%%%%%%%%%321 316 322 317 %% open the result file with uvmat (in RUN mode) -
trunk/src/series/civ_input.m
r609 r624 195 195 %check_letter=~isempty(regexp(NomTypeIma,'[ab|AB]$'));%detect pair label by letter 196 196 %if isequal(NomTypeNc,'_1-2')||isempty(MaxIndex_j)|| (MaxIndex_j==1) 197 MaxIndex_i=Param.IndexRange.MaxIndex {1};198 MaxIndex_j=Param.IndexRange.MaxIndex {1,2};199 MinIndex_i=Param.IndexRange.MinIndex {1};200 MinIndex_j=Param.IndexRange.MinIndex {1,2};197 MaxIndex_i=Param.IndexRange.MaxIndex_i{1}; 198 MaxIndex_j=Param.IndexRange.MaxIndex_j{1}; 199 MinIndex_i=Param.IndexRange.MinIndex_i{1}; 200 MinIndex_j=Param.IndexRange.MinIndex_j{1}; 201 201 if ~isfield(Param.IndexRange,'first_j') 202 202 set(handles.ListPairMode,'Value',1) -
trunk/src/series/civ_series.m
r614 r624 73 73 checkrun=0; 74 74 end 75 hseries=findobj(allchild(0),'Tag','series'); 76 RUNHandle=findobj(hseries,'Tag','RUN');%handle of RUN button in GUI series 77 WaitbarHandle=findobj(hseries,'Tag','Waitbar');%handle of waitbar in GUI series 75 78 76 79 %% input files and indexing … … 214 217 %%%%% MAIN LOOP %%%%%% 215 218 for ifield=1:NbField 216 219 update_waitbar(WaitbarHandle,index/nbfield) 220 if ishandle(RUNHandle) && ~strcmp(get(RUNHandle,'BusyAction'),'queue') 221 disp('program stopped by user') 222 break 223 end 217 224 %% Civ1 218 225 if isfield (Param.ActionInput,'Civ1') -
trunk/src/series/ima_levels.m
r606 r624 75 75 %%%%%%%%%%%% STANDARD PART (DO NOT EDIT) %%%%%%%%%%%% 76 76 %% read input parameters from an xml file if input is a file name (batch mode) 77 ParamOut=[] 77 ParamOut=[]; 78 78 checkrun=1; 79 79 if ischar(Param) … … 81 81 checkrun=0; 82 82 end 83 hseries=findobj(allchild(0),'Tag','series'); 84 RUNHandle=findobj(hseries,'Tag','RUN');%handle of RUN button in GUI series 85 WaitbarHandle=findobj(hseries,'Tag','Waitbar');%handle of waitbar in GUI series 86 87 %% subdirectory for output files 88 SubdirOut=[Param.OutputSubDir Param.OutputDirExt]; 83 89 84 90 %% root input file names and nomenclature type (cell arrays with one element) … … 89 95 FileExt=Param.InputTable(:,5); 90 96 91 %% subdirectory for output files92 SubdirOut=[Param.OutputSubDir Param.OutputDirExt];93 97 94 98 %% get the set of input file names (cell array filecell), and file indices … … 146 150 j1=[];%default 147 151 for ifile=1:nbfield 148 if checkrun 149 stopstate=get(Param.RUNHandle,'BusyAction'); 150 update_waitbar(Param.WaitbarHandle,ifile/nbfield) 151 else 152 stopstate='queue'; 152 update_waitbar(WaitbarHandle,index/nbfield) 153 if ishandle(RUNHandle) && ~strcmp(get(RUNHandle,'BusyAction'),'queue') 154 disp('program stopped by user') 155 return 153 156 end 154 157 if ~isequal(stopstate,'queue') % enable STOP command -
trunk/src/series/merge_proj.m
r614 r624 64 64 65 65 %%%%%%%%%%%% STANDARD PART (DO NOT EDIT) %%%%%%%%%%%% 66 ParamOut=[] %default output 66 67 %% read input parameters from an xml file if input is a file name (batch mode) 67 68 checkrun=1; … … 70 71 checkrun=0; 71 72 end 72 73 ParamOut=[] %default output 73 hseries=findobj(allchild(0),'Tag','series'); 74 RUNHandle=findobj(hseries,'Tag','RUN');%handle of RUN button in GUI series 75 WaitbarHandle=findobj(hseries,'Tag','Waitbar');%handle of waitbar in GUI series 76 77 %% define the directory for result file (with path=RootPath{1}) 78 OutputDir=[Param.OutputSubDir Param.OutputDirExt];% subdirectory for output files 79 74 80 if ~isfield(Param,'InputFields') 75 81 Param.InputFields.FieldName=''; 76 82 end 77 OutputDir=[Param.OutputSubDir Param.OutputDirExt];% subdirectory for output files78 83 79 84 %% root input file type … … 184 189 %%%%%%%%%%%%%%%% loop on field indices %%%%%%%%%%%%%%%% 185 190 for index=1:NbField 186 if checkrun 187 stopstate=get(Param.RUNHandle,'BusyAction'); 188 update_waitbar(Param.WaitbarHandle,index/NbField) 189 else 190 stopstate='queue'; 191 end 192 if ~isequal(stopstate,'queue')% enable STOP command 191 update_waitbar(WaitbarHandle,index/nbfield) 192 if ishandle(RUNHandle) && ~strcmp(get(RUNHandle,'BusyAction'),'queue') 193 disp('program stopped by user') 193 194 return 194 195 end -
trunk/src/series/relabel_i_j.m
r599 r624 67 67 checkrun=0; 68 68 end 69 hseries=findobj(allchild(0),'Tag','series'); 70 RUNHandle=findobj(hseries,'Tag','RUN');%handle of RUN button in GUI series 71 WaitbarHandle=findobj(hseries,'Tag','Waitbar');%handle of waitbar in GUI series 69 72 70 73 %% root input file(s) and type … … 220 223 %% main loop on images 221 224 %j1=[];%default 222 nbfield2=size(XmlData.Time,2) 225 nbfield2=size(XmlData.Time,2); 223 226 for ifile=1:nbfield 224 if checkrun 225 stopstate=get(Param.RUNHandle,'BusyAction'); 226 update_waitbar(Param.WaitbarHandle,ifile/nbfield) 227 else 228 stopstate='queue'; 229 end 230 if ~isequal(stopstate,'queue')% enable STOP command 227 update_waitbar(WaitbarHandle,ifile/nbfield) 228 if ishandle(RUNHandle) && ~strcmp(get(RUNHandle,'BusyAction'),'queue') 229 disp('program stopped by user') 231 230 break 232 231 end -
trunk/src/series/sub_background.m
r616 r624 187 187 checkrun=0; 188 188 end 189 189 hseries=findobj(allchild(0),'Tag','series'); 190 RUNHandle=findobj(hseries,'Tag','RUN');%handle of RUN button in GUI series 191 WaitbarHandle=findobj(hseries,'Tag','Waitbar');%handle of waitbar in GUI series 190 192 %% Input preparation 191 193 nbaver_ima=Param.ActionInput.SlidingSequenceLength; … … 364 366 if nbfield_i > nbaver_ima 365 367 for ifield = step*ceil(nbaver/2)+1:step:nbfield_i-step*floor(nbaver/2) 366 if checkrun 367 stopstate=get(Param.RUNHandle,'BusyAction'); 368 update_waitbar(Param.WaitbarHandle,ifield/nbfield_i) 369 else 370 stopstate='queue'; 371 end 372 if isequal(stopstate,'queue')% enable STOP command 368 update_waitbar(WaitbarHandle,ifield/nbfield_i) 369 if ishandle(RUNHandle) && ~strcmp(get(RUNHandle,'BusyAction'),'queue') 370 disp('program stopped by user') 371 return 372 end 373 % if isequal(stopstate,'queue')% enable STOP command 373 374 Ak(:,:,1:nbaver_ima-step)=Ak(:,:,1+step:nbaver_ima);% shift the current image series by one burst (step) 374 375 %incorporate next burst in the current image series … … 409 410 410 411 end 411 else412 return413 end412 % else 413 % return 414 % end 414 415 end 415 416 end -
trunk/src/series/time_series.m
r609 r624 65 65 66 66 %%%%%%%%%%%% STANDARD PART %%%%%%%%%%%% 67 ParamOut=[]; %default output 67 68 %% read input parameters from an xml file if input is a file name (batch mode) 68 69 checkrun=1; … … 71 72 checkrun=0; 72 73 end 73 74 ParamOut=[]; %default output 74 hseries=findobj(allchild(0),'Tag','series'); 75 RUNHandle=findobj(hseries,'Tag','RUN');%handle of RUN button in GUI series 76 WaitbarHandle=findobj(hseries,'Tag','Waitbar');%handle of waitbar in GUI series 77 78 %% define the directory for result file (with path=RootPath{1}) 75 79 OutputDir=[Param.OutputSubDir Param.OutputDirExt]; 76 80 … … 205 209 %%%%%%%%%%%%%%%% loop on field indices %%%%%%%%%%%%%%%% 206 210 for index=1:nbfield 207 if checkrun 208 stopstate=get(Param.RUNHandle,'BusyAction'); 209 update_waitbar(Param.WaitbarHandle,index/nbfield) 210 else 211 stopstate='queue'; 212 end 213 if ~isequal(stopstate,'queue')% enable STOP command 214 break 211 update_waitbar(WaitbarHandle,index/nbfield) 212 if ishandle(RUNHandle) && ~strcmp(get(RUNHandle,'BusyAction'),'queue') 213 disp('program stopped by user') 214 break % leave the loop if stop is ordered 215 215 end 216 216 Data=cell(1,nbview);%initiate the set Data;
Note: See TracChangeset
for help on using the changeset viewer.