Ignore:
Timestamp:
Mar 16, 2010, 7:41:52 AM (11 years ago)
Author:
sommeria
Message:

sub_background modified to accept various movie and image inputs
geometry_calib, editxml, civ modified to read a unique PARAM.xml parameter file (instead of PARAM_LINUX...)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/geometry_calib.m

    r42 r54  
    582582path_uvmat=which('uvmat');% check the path detected for source file uvmat
    583583path_UVMAT=fileparts(path_uvmat); %path to UVMAT
    584 if isunix
     584% if isunix
    585585    %fid = fopen(fullfile(path_UVMAT,'PARAM_LINUX.txt'),'r');%open the file with civ binary names
    586     xmlfile=fullfile(path_UVMAT,'PARAM_LINUX.xml');
    587     if exist(xmlfile,'file')
    588         t=xmltree(xmlfile);
    589         sparam=convert(t);
    590     end
    591 else
    592     %fid = fopen(fullfile(path_UVMAT,'PARAM_WIN.txt'),'r');%open the file with civ binary names
    593     xmlfile=fullfile(path_UVMAT,'PARAM_WIN.xml');
    594     if exist(xmlfile,'file')
    595         t=xmltree(xmlfile);
    596         sparam=convert(t);
    597     end
    598 end
     586xmlfile=fullfile(path_UVMAT,'PARAM.xml');
     587if exist(xmlfile,'file')
     588    t=xmltree(xmlfile);
     589    sparam=convert(t);
     590end
     591% else
     592%     %fid = fopen(fullfile(path_UVMAT,'PARAM_WIN.txt'),'r');%open the file with civ binary names
     593%     xmlfile=fullfile(path_UVMAT,'PARAM_WIN.xml');
     594%     if exist(xmlfile,'file')
     595%         t=xmltree(xmlfile);
     596%         sparam=convert(t);
     597%     end
     598% end
    599599if ~isfield(sparam,'GeometryCalib_exe')
    600600    msgbox_uvmat('ERROR',['calibration program <GeometryCalib_exe> undefined in parameter file ' xmlfile])
     
    602602end
    603603Tsai_exe=sparam.GeometryCalib_exe;
     604if ~exist(Tsai_exe,'file')%the binary is defined in /bin, default setting
     605     Tsai_exe=fullfile(path_UVMAT,Tsai_exe);
     606end
    604607if ~exist(Tsai_exe,'file')
    605     msgbox_uvmat('ERROR',['calibration program ' Tsai_exe ' does not exist'])
     608    msgbox_uvmat('ERROR',['calibration program ' sparam.GeometryCalib_exe ' defined in PARAM.xml does not exist'])
    606609    return
    607610end
Note: See TracChangeset for help on using the changeset viewer.