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