Changeset 563 for trunk/src/series


Ignore:
Timestamp:
Nov 28, 2012, 6:27:42 PM (11 years ago)
Author:
sommeria
Message:

bug corrected

File:
1 edited

Legend:

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

    r555 r563  
    9191% input file or frame indices i1_series,i2_series,j1_series,j2_series
    9292[filecell,i1_series,i2_series,j1_series,j2_series]=get_file_series(Param);
    93 % filecell{iview,fileindex}: cell array representing the list of file names
    94 %        iview: line in the table corresponding to a given file series
    95 %        fileindex: file index within  the file series,
    96 % i1_series(iview,ref_j,ref_i)... are the corresponding arrays of indices i1,i2,j1,j2, depending on the input line iview and the two reference indices ref_i,ref_j
    97 % i1_series(iview,fileindex) expresses the same indices as a 1D array in file indices
    98 % set of frame indices used for movie or multimage input
     93 
    9994% numbers of slices and file indices
    10095
     
    278273    if checkrun
    279274        update_waitbar(hseries.Waitbar,ifile/nbfield)
     275        drawnow
    280276        stopstate=get(hseries.RUN,'BusyAction');
    281277    else
     
    385381                Dtj=get_value(subt,'/BurstTiming/Dtj',[]);
    386382                Dtj=Dtj/Frequency;%Dtj converted from frame unit to TimeUnit (e.g. 's')
    387                 NbDtj=get_value(subt,'/BurstTiming/NbDtj',1);
     383                NbDtj=get_value(subt,'/BurstTiming/NbDtj',[]);
    388384                %%%% correction RDvision %%%%
    389385%                 NbDtj=NbDtj/numel(Dtj);
     
    401397                else
    402398                    % NbDtj=NbDtj/numel(Dtj);%bursts
     399                    if ~isempty(NbDtj)
    403400                    s.NbDtj=NbDtj/numel(Dtj);%bursts;
     401                    else
     402                        s.NbDtj=1;
     403                    end
    404404                end
    405405                %%%% %%%%
Note: See TracChangeset for help on using the changeset viewer.