Ignore:
Timestamp:
Jun 26, 2012, 8:41:27 AM (12 years ago)
Author:
sommeria
Message:

series fcts updated to fit with new waitbar fct and background run mode, and various bug repairs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/series/sub_background.m

    r474 r478  
    8080else
    8181    hseries=guidata(Param.hseries);%handles of the GUI series
    82     WaitbarPos=get(hseries.waitbar_frame,'Position');%position of the waitbar on the GUI series
    8382    if isfield(Param,'Specific')&& strcmp(Param.Specific,'?')
    8483        checkrun=1;% will search input parameters (preparation of BATCH mode)
     
    179178    prompt = {'volume scan mode (Yes/No)';'Number of images for the sliding background (MUST FIT IN COMPUTER MEMORY)';...
    180179        'the luminosity rank chosen to define the background (0.1=for dense particle seeding, 0.5 (median) for sparse particles'};
    181     dlg_title = ['get (slice by slice) a sliding background and substract to each image, result in subdir ' Param.OutputDir];
     180    dlg_title = ['get (slice by slice) a sliding background and substract to each image, result in subdir ' OutputDir];
    182181    num_lines= 3;
    183182    def     = { 'No';num2str(nbaver_init);'0.1'};
     
    361360            if checkrun
    362361                stopstate=get(hseries.RUN,'BusyAction');
    363                 update_waitbar(hseries.waitbar_frame,WaitbarPos,(ifield+(islice-1)*nbfield_i)/(nbfield_i*NbSlice))
     362                update_waitbar(hseries.Waitbar,(ifield+(islice-1)*nbfield_i)/(nbfield_i*NbSlice))
    364363            else
    365364                stopstate='queue';
     
    440439end
    441440
    442 %finish the waitbar
    443 if checkrun
    444     update_waitbar(hseries.waitbar,WaitbarPos,1)
    445 end
    446    
    447441
    448442function C=levels(A)
Note: See TracChangeset for help on using the changeset viewer.