Changeset 952 for trunk/src


Ignore:
Timestamp:
Jun 18, 2016, 11:25:35 AM (8 years ago)
Author:
sommeria
Message:

level orgqanisation introduced

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/find_imadoc.m

    r924 r952  
    5353    end
    5454end
     55if ~exist(XmlFileName,'file')% convention Pierre Augier for 3D images
     56    check3D=find(~isempty(regexp(SubDirBase,'^level')));
     57    if check3D
     58        [RootRootPath,RootDir]=fileparts(RootPath);
     59        XmlFileName=fullfile(RootRootPath,[RootDir '.xml']);
     60        dotchar=regexp(RootDir,'\.');
     61        for idot=1:numel(dotchar)
     62            XmlFileName=fullfile(RootRootPath,[RootDir(1:dotchar(end-idot+1)-1) '.xml']);
     63            if exist(XmlFileName,'file')
     64                break
     65            end
     66        end
     67    end
     68end
    5569if exist(XmlFileName,'file')~=2
    5670    XmlFileName='';
Note: See TracChangeset for help on using the changeset viewer.