Changeset 77 for aedes.m


Ignore:
Timestamp:
Feb 5, 2009, 10:16:41 AM (9 years ago)
Author:
tjniskan
Message:
  • Fixed a strange bug related to resizing Aedes window in Matlab

R2008a (and possibly R2008b and R2009a).

  • Fixed bugs of Voxel TimeSeries? and Overlay Control figure

handles not being properly destroyed on exit.

  • Changed default values for reading VNMR files (now Fast Read is on

by default, output precision is single and data is oriented using
PROCPAR.orient)

  • Fixed a bug in the calculate SNR -plugin
  • Made a temporary workaround for controlling the output in the "View

ROI statistics" -table. A proper GUI implementation will (hopefully) follow
shortly. The output can be controlled by using Aedes preferences. For
example setpref('Aedes','StatPrintDirs?','TXYZV') will print in the
output Total, X-dir, Y-dir, Z-dir and V-dir statistics.

M an2_revision.m
M an2_data_read.m
M an2_resviewer.m
M aedes.m
M an2_res2table.m
M plugins/calculate_snr.m
M an2_readfid.m
M an2_readfidprefs.m
M an2_roi_stats.m

File:
1 edited

Legend:

Unmodified
Added
Removed
  • aedes.m

    r73 r77  
    27122712
    27132713  if nargin>2 && strcmpi(opt,'PreserveData')
    2714         PreserveData = true;
     2714    PreserveData = true;
    27152715  else
    2716         PreserveData = false;
    2717   end
    2718 
    2719 % Warn if ROIs are not saved
    2720 if ~isempty(h) && ishandle(h) && ~PreserveData
    2721   cancel=l_CheckRoiSaved;
    2722   if cancel
    2723     return
    2724   end
    2725 end
     2716    PreserveData = false;
     2717  end
     2718
     2719  % Warn if ROIs are not saved
     2720  if ~isempty(h) && ishandle(h) && ~PreserveData
     2721    cancel=l_CheckRoiSaved;
     2722    if cancel
     2723      return
     2724    end
     2725  end
    27262726
    27272727% Reset uicontrol focus
     
    27882788
    27892789% Delete overlay control window
    2790 if isfield(H,'OVERLAY_CONTROL_FIG') && ishandle(H.OVERLAY_CONTROL_FIG)
     2790if isfield(H,'OVERLAY_CONTROL_FIG') && ~isempty(H.OVERLAY_CONTROL_FIG) ...
     2791    && ishandle(H.OVERLAY_CONTROL_FIG)
    27912792  delete(H.OVERLAY_CONTROL_FIG)
     2793  H.OVERLAY_CONTROL_FIG = [];
    27922794end
    27932795
     
    42854287 
    42864288  %% If overlay control window is already opened...
    4287   if isfield(H,'OVERLAY_CONTROL_FIG') && ishandle(H.OVERLAY_CONTROL_FIG)
     4289  if isfield(H,'OVERLAY_CONTROL_FIG') && ~isempty(H.OVERLAY_CONTROL_FIG) ...
     4290      && ishandle(H.OVERLAY_CONTROL_FIG)
    42884291    figure(H.OVERLAY_CONTROL_FIG)
    42894292    return
     
    46264629    setpref('Aedes','OverlayControlPos',[tmp_pos(1) tmp_pos(2)]);
    46274630        delete(H.OVERLAY_CONTROL_FIG)
     4631  H.OVERLAY_CONTROL_FIG = [];
    46284632       
    46294633  elseif strcmpi(opt,'climmin_edit')
     
    59485952set(H.UIVIEW_TIMESERIES,'checked','off')
    59495953Dat.ShowTimeSeries = false;
     5954H.TSFIG = [];
    59505955
    59515956end % function l_SaveTSfigPostion(h, 
     
    59765981% Close GUI
    59775982delete(fh)
     5983
    59785984
    59795985catch
     
    61936199
    61946200% Set axis positions
    6195 if ~isempty(Dat)
     6201if ~isempty(Dat) && isfield(Dat,'AxView') && isfield(Dat,'ZoomLevel')
    61966202  l_AxesPositions([],[],Dat.AxView,Dat.ZoomLevel);
    61976203end
Note: See TracChangeset for help on using the changeset viewer.

Powered by Trac 1.0.9.Copyright © Juha-Pekka Niskanen 2008