Changeset 1120 for trunk/src/uvmat.m
- Timestamp:
- Dec 15, 2022, 6:21:53 PM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/uvmat.m
r1118 r1120 1209 1209 UvData=get(handles.uvmat,'UserData');%read UvData properties stored on the uvmat interface 1210 1210 Slice=[]; 1211 Check_slice=0; 1211 1212 if isfield(UvData,'XmlData') 1213 if isfield(UvData.XmlData{1},'GeometryCalib') && strcmp(UvData.XmlData{1}.GeometryCalib.CalibrationType(1:3),'3D_') 1214 Check_slice=1; 1215 end 1212 1216 if isfield(UvData.XmlData{1},'GeometryCalib')&& isfield(UvData.XmlData{1}.GeometryCalib,'SliceCoord') 1213 1217 Slice=UvData.XmlData{1}.GeometryCalib;%old convention < 2022 … … 1215 1219 Slice=UvData.XmlData{1}.Slice;% new convention ( 2022) 1216 1220 end 1221 end 1222 if ~Check_slice 1223 msgbox_uvmat('ERROR','3D calibration not available, use Tools/geometric calibration with 3D option'); 1224 return 1217 1225 end 1218 1226 % default input … … 1295 1303 1296 1304 uicontrol('Style','edit','Units','normalized', 'Position', [3*ii+ww 0.95-5*ii-4.2*hh ww hh],'tag','num_SliceCoord_1','BackgroundColor',[1 1 1],... 1297 'String',num2str(Slice.SliceCoord(1 )),'FontUnits','points','FontSize',12,'FontWeight','bold','TooltipString','''num_SliceCoord_1'':x position of the tild origin');%edit box1305 'String',num2str(Slice.SliceCoord(1,1)),'FontUnits','points','FontSize',12,'FontWeight','bold','TooltipString','''num_SliceCoord_1'':x position of the tild origin');%edit box 1298 1306 uicontrol('Style','edit','Units','normalized', 'Position', [3*ii+ww 0.95-6*ii-5.2*hh ww hh],'tag','num_SliceCoord_2','BackgroundColor',[1 1 1],... 1299 'String',num2str(Slice.SliceCoord( 2)),'FontUnits','points','FontSize',12,'FontWeight','bold','TooltipString','''num_SliceCoord_2'':y position of the tild origin');%edit box1307 'String',num2str(Slice.SliceCoord(1,2)),'FontUnits','points','FontSize',12,'FontWeight','bold','TooltipString','''num_SliceCoord_2'':y position of the tild origin');%edit box 1300 1308 1301 1309 uicontrol('Style','text','Units','normalized', 'Position', [ii 0.95-5*ii-4*hh 1.3*ww hh/2],'BackgroundColor',BackgroundColor,'Tag','Angle_title_1',... … … 1353 1361 [RootPath,SubDir,RootFile,tild,tild,tild,tild,FileExt]=fileparts_uvmat(FileName); 1354 1362 XmlFile=find_imadoc(RootPath,SubDir,RootFile,FileExt);%find name of the relevant xml file 1355 % [s,errormsg]=imadoc2struct(XmlFile,'Slice');%read the xml file 1356 % if~isempty(errormsg) 1357 % msgbox_uvmat('ERROR',errormsg) 1358 % return 1359 % end 1360 % Slice=s.Slice;% get thegeometric calibration data 1363 if isempty(XmlFile) 1364 msgbox_uvmat('ERROR','an xml file with calibration parameters must be first created, use Tools/geometric calibration'); 1365 return 1366 end 1367 [s,RootTag,errormsg]=xml2struct(XmlFile); 1361 1368 1362 1369 %% read the content of the GUI set_slice … … 1370 1377 Z_plane=linspace(SliceData.Z(1),SliceData.Z(2),SliceData.NbSlice); 1371 1378 else 1372 set(hZ,'String',num2str(Z_plane))% restitute the display qfter reqding by read_GUI1379 set(hZ,'String',num2str(Z_plane))% restitute the display after reading by read_GUI 1373 1380 end 1374 1381 Slice.SliceCoord=Z_plane'*[0 0 1]; … … 3315 3322 elseif ref_i_1+1>size(UvData.i1_series{2},3)&&~isempty(InputFile.NomType_1) 3316 3323 errormsg='maximum i index reached for the second series (reload the input file to update the index bound)'; 3317 elseif ref_j_1+1>size(UvData.i1_series{2},2)&&~isempty(InputFile.NomType_1)3318 errormsg='maximum j index reached for the second series(reload the input file to update the index bound)';3324 %elseif ref_j_1+1>size(UvData.i1_series{2},2)&&~isempty(InputFile.NomType_1) 3325 % errormsg='maximum j index reached for the second series(reload the input file to update the index bound)'; 3319 3326 end 3320 3327 if ~isempty(errormsg),return,end
Note: See TracChangeset
for help on using the changeset viewer.