Changeset 624 for trunk/src/series/aver_stat.m
- Timestamp:
- Apr 29, 2013, 11:28:23 PM (12 years ago)
- File:
-
- 1 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)
Note: See TracChangeset
for help on using the changeset viewer.