Changeset 36 for trunk/src/geometry_calib.m
- Timestamp:
- Mar 5, 2010, 11:23:19 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/geometry_calib.m
r17 r36 146 146 147 147 %case of calibration (ImaDoc) input file 148 hcalib=get(handles.calib_type,'parent');149 CalibData=get(h calib,'UserData');148 % hcalib=get(handles.calib_type,'parent'); 149 CalibData=get(handles.figure1,'UserData'); 150 150 CalibData.XmlInput=fileinput; 151 151 if isfield(s,'Heading') … … 153 153 end 154 154 155 set(h calib,'UserData',CalibData);%store the heading in the interface 'UserData'155 set(handles.figure1,'UserData',CalibData);%store the heading in the interface 'UserData' 156 156 if isfield(s,'GeometryCalib') 157 157 Calib=s.GeometryCalib; … … 412 412 end 413 413 if testinput 414 outcome=dataview(XmlInput,SubCampaignTest,GeometryCalib) 414 outcome=dataview(XmlInput,SubCampaignTest,GeometryCalib); 415 415 end 416 416 % %A COMPLETER … … 1014 1014 path_to_uvmat=which ('uvmat');% check the path of uvmat 1015 1015 pathelp=fileparts(path_to_uvmat); 1016 helpfile=fullfile(pathelp,' UVMAT_DOC','uvmat_doc.html');1017 if isempty(dir(helpfile)), warndlg_uvmat('The help file uvmat_doc.html needs to be put in the directory UVMAT/UVMAT_DOC','ERROR')1016 helpfile=fullfile(pathelp,'uvmat_doc','uvmat_doc.html'); 1017 if isempty(dir(helpfile)), msgbox_uvmat('ERROR','Please put the help file uvmat_doc.html in the sub-directory /uvmat_doc of the UVMAT package') 1018 1018 else 1019 addpath (fullfile(pathelp,'uvmat_doc')) 1019 1020 web([helpfile '#geometry_calib']) 1020 1021 end … … 1023 1024 function MenuCreateGrid_Callback(hObject, eventdata, handles) 1024 1025 %------------------------------------------------------------------------ 1025 hcalib=get(handles.calib_type,'parent');%handles of the GUI geometry_calib1026 CalibData=get(h calib,'UserData');1026 %hcalib=get(handles.calib_type,'parent');%handles of the GUI geometry_calib 1027 CalibData=get(handles.figure1,'UserData'); 1027 1028 Tinput=[];%default 1028 1029 if isfield(CalibData,'grid') 1029 1030 Tinput=CalibData.grid; 1030 1031 end 1031 T=create_grid(Tinput) %display the GUI create_grid1032 T=create_grid(Tinput);%display the GUI create_grid 1032 1033 CalibData.grid=T; 1033 set(h calib,'UserData',CalibData)1034 set(handles.figure1,'UserData',CalibData) 1034 1035 1035 1036 %grid in phys space 1036 1037 Coord_cell=get(handles.ListCoord,'String'); 1037 data=read_geometry_calib(Coord_cell) 1038 data=read_geometry_calib(Coord_cell); 1038 1039 nbpoints=size(data.Coord,1); %nbre of calibration points 1039 data.Coord(1:size(T,1),1:3)=T; 1040 data.Coord(1:size(T,1),1:3)=T;%update the existing list of phys coordinates from the GUI create_grid 1040 1041 for i=1:nbpoints 1041 1042 for j=1:5 … … 1061 1062 function MenuTranslatePoints_Callback(hObject, eventdata, handles) 1062 1063 %----------------------------------------------------------------------- 1063 hcalib=get(handles.calib_type,'parent');%handles of the GUI geometry_calib1064 CalibData=get(h calib,'UserData')1064 %hcalib=get(handles.calib_type,'parent');%handles of the GUI geometry_calib 1065 CalibData=get(handles.figure1,'UserData'); 1065 1066 Tinput=[];%default 1066 1067 if isfield(CalibData,'translate') … … 1069 1070 T=translate_points(Tinput);%display translate_points GUI and get shift parameters 1070 1071 CalibData.translate=T; 1071 set(h calib,'UserData',CalibData)1072 set(handles.figure1,'UserData',CalibData) 1072 1073 %translation 1073 1074 Coord_cell=get(handles.ListCoord,'String'); … … 1089 1090 % -------------------------------------------------------------------- 1090 1091 function MenuRotatePoints_Callback(hObject, eventdata, handles) 1091 hcalib=get(handles.calib_type,'parent');%handles of the GUI geometry_calib1092 CalibData=get(h calib,'UserData')1092 %hcalib=get(handles.calib_type,'parent');%handles of the GUI geometry_calib 1093 CalibData=get(handles.figure1,'UserData'); 1093 1094 Tinput=[];%default 1094 1095 if isfield(CalibData,'rotate') … … 1097 1098 T=rotate_points(Tinput);%display translate_points GUI and get shift parameters 1098 1099 CalibData.rotate=T; 1099 set(h calib,'UserData',CalibData)1100 set(handles.figure1,'UserData',CalibData) 1100 1101 %----------------------------------------------------- 1101 1102 %rotation
Note: See TracChangeset
for help on using the changeset viewer.