Changeset 341 for trunk/src/series.m


Ignore:
Timestamp:
Dec 19, 2011, 5:00:54 PM (9 years ago)
Author:
sommeria
Message:

various bugs corrected

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/series.m

    r339 r341  
    480480set(handles.waitbar_frame,'Units','pixels')
    481481pos=get(handles.waitbar_frame,'Position');
    482 xima=0.5:pos(3)-0.5;
     482xima=0.5:pos(3)-0.5;% pixel positions on the image representing the existing file indices
    483483yima=0.5:pos(4)-0.5;
    484484[XIma,YIma]=meshgrid(xima,yima);
     
    491491file_ima=double((i1_series(:,:,1)>0)');
    492492if size(file_ima,1)==1
    493     file_ima=ones(pos(4),1)*file_ima;
    494 end
    495 CData(:,:,2)=interp2(Ind_i,Ind_j,file_ima,XIma,YIma,'nearest');
     493    CLine=interp1(ind_i,file_ima,xima,'nearest');
     494    CData(:,:,2)=ones(size(yima'))*CLine;
     495%     file_ima=ones(pos(4),1)*file_ima;
     496%     Ind_i=
     497else
     498    CData(:,:,2)=interp2(Ind_i,Ind_j,file_ima,XIma,YIma,'nearest');
     499end
    496500set(handles.waitbar_frame,'CData',CData)
    497501set(handles.waitbar_frame,'Units','normalized')
     
    14891493% set(handles.waitbar,'Position',waitbarpos)
    14901494
    1491 
     1495if isfield(Series.IndexRange,'NbSlice')
    14921496Series.NbSlice=Series.IndexRange.NbSlice;
     1497end
    14931498if last_i < first_i | last_j < first_j , msgbox_uvmat('ERROR','last field number must be larger than the first one'),...
    14941499    set(handles.RUN, 'Enable','On'), set(handles.RUN,'BackgroundColor',[1 0 0]),return,end;
Note: See TracChangeset for help on using the changeset viewer.