Ignore:
Timestamp:
Feb 23, 2026, 3:58:54 PM (8 days ago)
Author:
sommeria
Message:

several bugs repaired

File:
1 edited

Legend:

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

    r1152 r1194  
    223223    NomTypeOut='_1_1';
    224224end
    225 %NomTypeOut=NomType;% output file index will indicate the first and last ref index in the series
    226225RootFileOut=RootFile{1};
    227226for iview=2:NbView
     
    265264    if ~isempty(j1_series{1})
    266265        j1=j1_series{1}(index);
    267         if ~isempty(j2_series{end})
    268             j2=j2_series{end}(index);
    269         else
    270             j2=j1;
    271         end
    272     end
    273     OutputFile=fullfile_uvmat(OutputPath,OutputDir,RootFileOut,FileExtOut,NomTypeOut,i1,i2,j1,j2);
     266    end
     267    i_out=floor((i1+i2)/2);
     268    OutputFile=fullfile_uvmat(OutputPath,OutputDir,RootFileOut,FileExtOut,NomTypeOut,i_out,[],j1);
    274269    if ~CheckOverwrite && exist(OutputFile,'file')
    275270            disp(['existing output file ' OutputFile ' already exists, skip to next field'])
Note: See TracChangeset for help on using the changeset viewer.