Changeset 379 for trunk/src/geometry_calib.m
- Timestamp:
- Jan 27, 2012, 1:59:18 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/geometry_calib.m
r356 r379 149 149 function APPLY_Callback(hObject, eventdata, handles) 150 150 %------------------------------------------------------------------------ 151 %read the current calibration points 151 %% look for the GUI uvmat and check for an image as input 152 huvmat=findobj(allchild(0),'Name','uvmat'); 153 hhuvmat=guidata(huvmat);%handles of elements in the GUI uvmat 154 FileExt=get(hhuvmat.FileExt,'String'); 155 check_input=0; 156 if ~isempty(FileExt) 157 if ~isempty(imformats(FileExt(2:end))) ||strcmpi(FileExt,'.avi') 158 check_input=1; 159 end 160 end 161 if ~check_input 162 msgbox_uvmat('ERROR','open an image with uvmat to perform calibration') 163 return 164 end 165 166 %% read the current calibration points 152 167 Coord_cell=get(handles.ListCoord,'String'); 153 168 Object=read_geometry_calib(Coord_cell); … … 200 215 set(handles.Psi,'String',num2str(GeometryCalib.omc(3),4)) 201 216 202 % store the calibration data, by default in the xml file of the currently displayed image 203 huvmat=findobj(allchild(0),'Name','uvmat'); 217 %% store the calibration data, by default in the xml file of the currently displayed image 204 218 UvData=get(huvmat,'UserData'); 205 219 NbSlice_j=1;%default … … 208 222 volume_scan='n'; 209 223 if isfield(UvData,'XmlData') 210 UvData.XmlData211 224 if isfield(UvData.XmlData,'TranslationMotor') 212 225 NbSlice_j=UvData.XmlData.TranslationMotor.Nbslice; … … 216 229 end 217 230 end 218 hhuvmat=guidata(huvmat);%handles of elements in the GUI uvmat219 231 RootPath=''; 220 232 % RootFile='';
Note: See TracChangeset
for help on using the changeset viewer.