Changeset 498 for trunk/src/geometry_calib.m
- Timestamp:
- Jul 23, 2012, 8:44:33 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/geometry_calib.m
r494 r498 113 113 set(handles.ListCoord,'String',{'......'}) 114 114 if exist(inputfile,'file') 115 Heading=loadfile(handles,inputfile);% load the point coordinates existing inthe xml file115 Heading=loadfile(handles,inputfile);% load data from the xml file 116 116 if isfield(Heading,'Campaign')&& ischar(Heading.Campaign) 117 117 struct.Campaign=Heading.Campaign; … … 274 274 GeometryCalib.RefractionIndex=str2double(answer{4}); 275 275 end 276 UserData=get(handles.geometry_calib,'UserData'); 277 if isfield(UserData,'XmlInputFile')&&~strcmp(UserData.XmlInputFile, outputfile)&&~exist(outputfile,'file') 278 [success,message]=copyfile(UserData.XmlInputFile,outputfile);%copy the old xml file to a new one with the new convention 279 end 276 280 errormsg=update_imadoc(GeometryCalib,outputfile);% introduce the calibration data in the xml file 277 281 if ~strcmp(errormsg,'') … … 290 294 set(hhuvmat.CheckFixLimits,'Value',0)% put FixedLimits option to 'off' 291 295 set(hhuvmat.CheckFixLimits,'BackgroundColor',[0.7 0.7 0.7]) 292 UserData=get(handles.geometry_calib,'UserData');296 293 297 UserData.XmlInputFile=outputfile;%save the current xml file name 294 298 set(handles.geometry_calib,'UserData',UserData) … … 1370 1374 GeometryCalib=s.GeometryCalib; 1371 1375 fx=1;fy=1;Cx=0;Cy=0;kc=0; %default 1372 % Tabchar={};1373 1376 CoordCell={}; 1374 % kc=0;%default1375 % f1=1000;1376 % f2=1000;1377 % hhuvmat=guidata(findobj(allchild(0),'Name','uvmat'));1378 % Cx=str2num(get(hhuvmat.num_Npx,'String'))/2;1379 % Cy=str2num(get(hhuvmat.num_Npy,'String'))/2;1380 1377 Tabchar={};%default 1381 1378 val_cal=1;%default
Note: See TracChangeset
for help on using the changeset viewer.