Ignore:
Timestamp:
Feb 18, 2010, 7:37:48 PM (14 years ago)
Author:
sommeria
Message:

possibilite de créer une grille physique dans geometry_calib (le faire apres avoir introduit les points sur l'image avec la souris)
petites corrections mineures sur les autres fichiers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/update_imadoc.m

    r13 r17  
    1111if exist(outputfile,'file');%=1 if the output file already exists, 0 else 
    1212    t=xmltree(outputfile); %read the file
     13    backupfile=outputfile;
     14    testexist=2;
     15    while testexist==2
     16       backupfile=[backupfile '~'];
     17       testexist=exist(backupfile,'file');
     18    end
     19    [success,message]=copyfile(outputfile,backupfile);%make backup
    1320    uid=find(t,'ImaDoc');
    1421    if ~isequal(uid,1)
     
    2128        [t,uid_calib]=add(t,1,'element','GeometryCalib');
    2229    else %if GeometryCalib already exists, delete its content
    23         backupfile=outputfile;
    24         testexist=2;
    25         while testexist==2
    26            backupfile=[backupfile '~'];
    27            testexist=exist(backupfile,'file');
    28         end
    29         [success,message]=copyfile(outputfile,backupfile);%make backup
     30%         backupfile=outputfile;
     31%         testexist=2;
     32%         while testexist==2
     33%            backupfile=[backupfile '~'];
     34%            testexist=exist(backupfile,'file');
     35%         end
     36%         [success,message]=copyfile(outputfile,backupfile);%make backup
    3037        if isequal(success,1)
    3138            delete(outputfile)
Note: See TracChangeset for help on using the changeset viewer.