Changeset 54 for trunk/src/geometry_calib.m
- Timestamp:
- Mar 16, 2010, 7:41:52 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/geometry_calib.m
r42 r54 582 582 path_uvmat=which('uvmat');% check the path detected for source file uvmat 583 583 path_UVMAT=fileparts(path_uvmat); %path to UVMAT 584 if isunix584 % if isunix 585 585 %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 588 589 590 591 else592 %fid = fopen(fullfile(path_UVMAT,'PARAM_WIN.txt'),'r');%open the file with civ binary names593 xmlfile=fullfile(path_UVMAT,'PARAM_WIN.xml');594 if exist(xmlfile,'file')595 t=xmltree(xmlfile);596 sparam=convert(t);597 end598 end586 xmlfile=fullfile(path_UVMAT,'PARAM.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 599 599 if ~isfield(sparam,'GeometryCalib_exe') 600 600 msgbox_uvmat('ERROR',['calibration program <GeometryCalib_exe> undefined in parameter file ' xmlfile]) … … 602 602 end 603 603 Tsai_exe=sparam.GeometryCalib_exe; 604 if ~exist(Tsai_exe,'file')%the binary is defined in /bin, default setting 605 Tsai_exe=fullfile(path_UVMAT,Tsai_exe); 606 end 604 607 if ~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']) 606 609 return 607 610 end
Note: See TracChangeset
for help on using the changeset viewer.