Changeset 548 for trunk/src/uvmat.m


Ignore:
Timestamp:
Oct 10, 2012, 11:25:35 PM (8 years ago)
Author:
sommeria
Message:

various bug repairs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/uvmat.m

    r546 r548  
    791791TimeUnit='';%default
    792792Time=[];
    793 testima=0; %test for image input
     793% testima=0; %test for image input
    794794imainfo=[];
    795795ColorType='falsecolor'; %default
    796 hhh=[];
     796% hhh=[];
    797797UvData.MovieObject{index}=VideoObject;
    798798if ~isempty(VideoObject)
    799799    imainfo=get(VideoObject);
    800     testima=1;
     800%     testima=1;
    801801    TimeUnit='s';
    802802    if isempty(j1_series); %frame index along i
    803803        Time=(0:1/imainfo.FrameRate:(imainfo.NumberOfFrames)/imainfo.FrameRate)';
    804804    else
    805     Time=ones(size(i1_series,1),1)*(0:1/imainfo.FrameRate:(imainfo.NumberOfFrames)/imainfo.FrameRate);
    806     end
    807     %nbfield=imainfo.NumberOfFrames;
     805        Time=ones(size(i1_series,1),1)*(0:1/imainfo.FrameRate:(imainfo.NumberOfFrames)/imainfo.FrameRate);
     806    end
    808807    set(handles.Dt_txt,'String',['Dt=' num2str(1000/imainfo.FrameRate) 'ms']);%display the elementary time interval in millisec
    809808    ColorType='truecolor';
    810809elseif ~isempty(FileExt(2:end))&&(~isempty(imformats(FileExt(2:end))) || isequal(FileExt,'.vol'))%&& isequal(NomType,'*')% multi-frame image
    811     testima=1;
     810%     testima=1;
    812811    if ~isequal(SubDir,'')
    813         RootFile=get(handles.RootFile,'String');
    814812        imainfo=imfinfo([fullfile(RootPath,SubDir,RootFile) FileIndices FileExt]);
    815813    else
     
    817815    end
    818816    ColorType=imainfo.ColorType;%='truecolor' for color images
    819     if length(imainfo) >1 %case of image with multiple frames
    820        % nbfield=length(imainfo);
    821        % nbfield_j=1;
    822     end
    823817end
    824818if isfield(imainfo,'Width') && isfield(imainfo,'Height')
Note: See TracChangeset for help on using the changeset viewer.