Changeset 533 for trunk/src/series.m


Ignore:
Timestamp:
Aug 31, 2012, 11:44:55 AM (9 years ago)
Author:
sommeria
Message:

bugs repaired in proj_field

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/series.m

    r526 r533  
    978978
    979979%% set the waitbar position with respect to the min and max in the series
    980 % for iview=1:numel(SeriesData.i1_series)
    981 % [tild,index_min(iview)]=min(SeriesData.i1_series{iview}(SeriesData.i1_series{iview}>0));
    982 % [tild,index_max(iview)]=max(SeriesData.i1_series{iview}(SeriesData.i1_series{iview}>0));
    983 % end
    984980for iview=1:numel(SeriesData.i1_series)
    985981    pair_max{iview}=squeeze(max(SeriesData.i1_series{iview},[],1)); %max on pair index
     
    994990[index_max,iview_max]=min(index_max);
    995991if size(SeriesData.i1_series{iview_min},2)==1% movie
    996   index_first=ref_i(1);
    997   index_last=ref_i(2);
    998 else
    999 %index_first=(ref_i(1)-1)*(size(SeriesData.i1_series{iview_min},2)-1)+ref_j(1);
    1000 %index_last=(ref_i(2)-1)*(size(SeriesData.i1_series{iview_max},2)-1)+ref_j(2);
    1001 index_first=(ref_i(1))*(size(SeriesData.i1_series{iview_min},2))+ref_j(1)+1;
    1002 index_last=(ref_i(2))*(size(SeriesData.i1_series{iview_max},2))+ref_j(2)+1;
     992    index_first=ref_i(1);
     993    index_last=ref_i(2);
     994else
     995    index_first=(ref_i(1)-1)*(size(SeriesData.i1_series{iview_min},1))+ref_j(1)+1;
     996    index_last=(ref_i(2)-1)*(size(SeriesData.i1_series{iview_max},1))+ref_j(2)+1;
    1003997end
    1004998range=index_max-index_min+1;
    1005999coeff_min=(index_first-index_min)/range;
    10061000coeff_max=(index_last-index_min+1)/range;
    1007 Position=get(handles.Waitbar,'Position');
     1001Position=get(handles.Waitbar,'Position');% position of the waitbar:= [ x,y, width, height]
    10081002Position_status=get(handles.FileStatus,'Position');
    10091003Position(1)=coeff_min*Position_status(3)+Position_status(1);
Note: See TracChangeset for help on using the changeset viewer.