Changeset 638 for trunk/src/uvmat.m
- Timestamp:
- May 20, 2013, 10:14:24 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/uvmat.m
r635 r638 1284 1284 if isequal(get(handles.CheckMask,'Value'),1) 1285 1285 [RootPath,SubDir,RootFile,FileIndices,FileExt]=read_file_boxes(handles); 1286 FileBase=fullfile(RootPath, RootFile);1286 FileBase=fullfile(RootPath,SubDir,RootFile); 1287 1287 num_i1=stra2num(get(handles.i1,'String')); 1288 1288 num_j1=stra2num(get(handles.j1,'String')); … … 1338 1338 errormsg=[];%default 1339 1339 if mdetect==0 1340 [FileName, PathName, filterindex] = uigetfile( ... 1341 {'*.png', ' (*.png)'; 1342 '*.png', '.png files '; ... 1343 '*.*', 'All Files (*.*)'}, ... 1344 'Pick a mask file *.png',FileBase); 1345 if ~ischar(FileName),return,end %abandon if the browser is cancelled 1346 maskname=fullfile(PathName,FileName); 1340 maskname=uigetfile_uvmat('pick a mask image file:',fullfile(RootPath,SubDir)); 1341 1342 %% display the selected field and related information 1343 if isempty(maskname) 1344 set(handles.CheckMask,'Value',0) 1345 return 1346 end 1347 % [FileName, PathName, filterindex] = uigetfile( ... 1348 % {'*.png', ' (*.png)'; 1349 % '*.png', '.png files '; ... 1350 % '*.*', 'All Files (*.*)'}, ... 1351 % 'Pick a mask file *.png',FileBase); 1352 % if ~ischar(FileName),return,end %abandon if the browser is cancelled 1353 % maskname=fullfile(PathName,FileName); 1347 1354 [RootDir,SubDir,RootFile,tild,tild,tild,tild,tild,Mask.NomType]=fileparts_uvmat(maskname); 1348 1355 Mask.Base=fullfile(RootDir,SubDir,RootFile); 1349 Mask.NbSlice=1;1356 % Mask.NbSlice=1; 1350 1357 set(handles.CheckMask,'UserData',Mask); 1351 set(handles.CheckMask,'BackgroundColor',[1 1 0])1358 % set(handles.CheckMask,'BackgroundColor',[1 1 0]) 1352 1359 end 1353 1360 if isempty(errormsg)
Note: See TracChangeset
for help on using the changeset viewer.