Changeset 352 for trunk


Ignore:
Timestamp:
Dec 26, 2011, 10:00:35 AM (13 years ago)
Author:
gostiaux
Message:

Bug for image pairs corrected

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/fileparts_uvmat.m

    r346 r352  
    6666        delim1=r.delim1;
    6767        num2=r.num2;
    68         r=regexp(FileName,['.*\D(?<num3>\d+)(?<delim2>[-_]&[^' delim1 '])' num2 delim1 num1 '$'],'names');
     68        switch delim1
     69            case '_'
     70                delim2_to_match='-';
     71            case '-'
     72                delim2_to_match='_';     
     73        end       
     74        r=regexp(FileName,['.*\D(?<num3>\d+)(?<delim2>' delim2_to_match ')' num2 delim1 num1 '$'],'names');
    6975        if ~isempty(r) % FileName end matches num3 delim2 num2 delim1 num1
    7076            delim2=r.delim2;
Note: See TracChangeset for help on using the changeset viewer.