Changeset 138 for aedes_readfidprefs.m


Ignore:
Timestamp:
Aug 17, 2010, 12:52:55 PM (9 years ago)
Author:
tjniskan
Message:
  • Added option to VNMR preferences to use the new version of the VNMR

read function

  • Added read support for certain CINE sequences
  • Added a command line preference option for inputting data aspect

ratio manually in created mosaic images

M aedes_readfidprefs.m
M aedes_data_read.m
M aedes_readvnmr.m
M aedes_export_gui.m
M aedes_revision.m
A vnmr_recon/cine_recon.m

File:
1 edited

Legend:

Unmodified
Added
Removed
  • aedes_readfidprefs.m

    r80 r138  
    147147end
    148148
     149%% Get defaults for read function
     150if ispref('Aedes','VnmrUseOldReadFcn')
     151  if getpref('Aedes','VnmrUseOldReadFcn')
     152    Dat.VnmrUseOldReadFcn = true;
     153  else
     154    Dat.VnmrUseOldReadFcn = false;
     155  end
     156else
     157  Dat.VnmrUseOldReadFcn = true;
     158  setpref('Aedes','VnmrUseOldReadFcn',Dat.VnmrUseOldReadFcn)
     159end
     160
    149161%% Load default font and colors
    150162%FigColor=get(0,'DefaultUicontrolBackgroundcolor');
    151163GD=aedes_gui_defaults;
    152164%GD.col.mainfig = FigColor;
    153 fig_h = 280;
     165fig_h = 300;
    154166fig_w = 270;
    155167scrsz = get(0,'screensize');
     
    339351  'value',val);
    340352
     353%% Default read function
     354if Dat.VnmrUseOldReadFcn
     355  val=1;
     356else
     357  val=2;
     358end
     359tmp=get(precision_tx,'position');
     360readfcn_tx = uicontrol('parent',uipanel_h,...
     361  'units','pixel',...
     362  'position',[10 tmp(2)-tmp(4)-5 tmp(3) 20],...
     363  'style','text',...
     364  'horizontalalign','left',...
     365  'string','Read Fcn',...
     366  'backgroundcolor',GD.col.frame);
     367tmp=get(readfcn_tx,'position');
     368readfcn_popup = uicontrol('parent',uipanel_h,...
     369  'units','pixel',...
     370  'position',[tmp(1)+tmp(3)+1 tmp(2)+3 140 20],...
     371  'style','popup',...
     372  'backgroundcolor','w',...
     373  'string',{'readfid (old)','readvnmr'},...
     374  'value',val);
     375
    341376
    342377%% Reorient images according to procpar.orient
     
    346381  val=0;
    347382end
    348 tmp=get(precision_tx,'position');
     383tmp=get(readfcn_tx,'position');
    349384orient_images_chbox = uicontrol('parent',uipanel_h,...
    350385  'units','pixel',...
     
    380415H.fastread_h = fastread_popup;
    381416H.precision_h = precision_popup;
     417H.readfcn_h = readfcn_popup;
    382418H.orient_images_h = orient_images_chbox;
    383419H.removeepiphaseim_h = removeepiphaseim_chbox;
    384 
    385420set(ok_btn,'userdata',H)
    386421
     
    400435fastread_val = get(H.fastread_h,'value');
    401436precision_val = get(H.precision_h,'value');
     437readfcn_val = get(H.readfcn_h,'value');
    402438orient_images_val = get(H.orient_images_h,'value');
    403439removeepiphaseim_val = get(H.removeepiphaseim_h,'value');
     
    446482end
    447483
     484%% Read fcn
     485if readfcn_val==1
     486  setpref('Aedes','VnmrUseOldReadFcn',true)
     487else
     488  setpref('Aedes','VnmrUseOldReadFcn',false)
     489end
     490
    448491%% Orient images
    449492if orient_images_val==1
Note: See TracChangeset for help on using the changeset viewer.

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