Changeset 1170 for trunk/src/series


Ignore:
Timestamp:
Jan 17, 2025, 10:47:01 PM (3 weeks ago)
Author:
sommeria
Message:

Library Teleops infrared camera added

Location:
trunk/src/series
Files:
2 edited

Legend:

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

    r1169 r1170  
    877877ref_j=[];
    878878if isequal(mode_selected,'pair j1-j2')%|isequal(mode,'st_pair j1-j2')
    879     ref_j=0;
     879     ref_j=0;
     880    MinIndex_j=str2num(get(handles.MinIndex_j,'String'));
     881        MaxIndex_j=str2num(get(handles.MaxIndex_j,'String'));
     882        if MaxIndex_j-MinIndex_j>10
     883            mode_selected= 'series(Dj)';
     884           ref_j= str2double(get(handles.ref_j,'String'));
     885        end
    880886elseif strcmp(get(handles.ref_j,'Visible'),'on')
    881887    ref_j=str2double(get(handles.ref_j,'String'));
     
    935941        end
    936942    case 'pair j1-j2'%case of pairs
    937         MinIndex_j=str2num(get(handles.MinIndex_j,'String'));
    938         MaxIndex_j=str2num(get(handles.MaxIndex_j,'String'));
     943%         MinIndex_j=str2num(get(handles.MinIndex_j,'String'));
     944%         MaxIndex_j=str2num(get(handles.MaxIndex_j,'String'));
     945%         if MaxIndex_j-MinIndex_j>10
     946%             disp('too many pairs, switch to mode series(Dj)')
     947%             return
     948%         end
    939949        index_pair=0;
    940950        %get all the Time intervals in bursts
  • trunk/src/series/civ_series.m

    r1169 r1170  
    7373    Data.OutputFileMode='NbInput_i';% one output file expected per value of i index (used for waitbar)
    7474    Data.CheckOverwriteVisible='on'; % manage the overwrite of existing files (default=1)
    75     if isfield(Data,'ActionInput') && isfield(Data.ActionInput,'PairIndices') && strcmp(Data.ActionInput.PairIndices.ListPairMode,'pair j1-j2')
     75    if isfield(Data,'ActionInput') && isfield(Data.ActionInput,'PairIndices') && isequal(Data.ActionInput.PairIndices.ListPairMode,'pair j1-j2')
    7676        Data.IndexRange_j='off';%no j index display in series
    7777    else
     
    346346                    [FileInfo_A,VideoObject_A]=get_file_info(ImageName_A);
    347347                    FileType_A=FileInfo_A.FileType;
    348                     if isempty(Time) && ~isempty(find(strcmp(FileType_A,{'mmreader','video','cine_phantom'}), 1))% case of video input
    349                         Time=zeros(FileInfo_A.NumberOfFrames+1,2);
     348                    if isempty(Time) && ~isempty(find(strcmp(FileType_A,{'mmreader','video','cine_phantom','telopsIR'}), 1))% case of video input
     349                        Time=zeros(FileInfo_A.NumberOfFrames+1,2);                 
    350350                        Time(:,2)=(0:1/FileInfo_A.FrameRate:(FileInfo_A.NumberOfFrames)/FileInfo_A.FrameRate)';
     351                           if ~isempty(j1_series_Civ1) && j1_series_Civ1~=1
     352                               Time=Time';
     353                           end
    351354                    end
    352355                    if ~isempty(FileType_A) && isempty(Time)% Time = index i +0.001 index j by default
Note: See TracChangeset for help on using the changeset viewer.