Changeset 638 for trunk/src/uvmat.m


Ignore:
Timestamp:
May 20, 2013, 10:14:24 AM (8 years ago)
Author:
sommeria
Message:

bug with mask corrected in uvmat. Update of browser in series

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/uvmat.m

    r635 r638  
    12841284if isequal(get(handles.CheckMask,'Value'),1)
    12851285     [RootPath,SubDir,RootFile,FileIndices,FileExt]=read_file_boxes(handles);
    1286      FileBase=fullfile(RootPath,RootFile);
     1286     FileBase=fullfile(RootPath,SubDir,RootFile);
    12871287    num_i1=stra2num(get(handles.i1,'String'));
    12881288    num_j1=stra2num(get(handles.j1,'String'));
     
    13381338    errormsg=[];%default
    13391339    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
     1343if isempty(maskname)
     1344    set(handles.CheckMask,'Value',0)
     1345    return
     1346end
     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);
    13471354        [RootDir,SubDir,RootFile,tild,tild,tild,tild,tild,Mask.NomType]=fileparts_uvmat(maskname);
    13481355        Mask.Base=fullfile(RootDir,SubDir,RootFile);
    1349         Mask.NbSlice=1;
     1356 %       Mask.NbSlice=1;
    13501357        set(handles.CheckMask,'UserData',Mask);
    1351         set(handles.CheckMask,'BackgroundColor',[1 1 0])
     1358%         set(handles.CheckMask,'BackgroundColor',[1 1 0])
    13521359    end
    13531360    if isempty(errormsg)
Note: See TracChangeset for help on using the changeset viewer.