Changeset 83


Ignore:
Timestamp:
Jul 2, 2009, 3:25:10 PM (10 years ago)
Author:
tjniskan
Message:
  • A small bug fix to misclib/fmri_analysis.m
  • Made the figure a bit larger in aedes_inputdlg.m
  • Added a plugin for fat/water analysis
  • Added support for the fat/water measurements in aedes_readfid.m

M misclib/fmri_analysis.m
M aedes_inputdlg.m
A plugins/fat_analysis.m
M aedes_readfid.m
M aedes_revision.m

Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • aedes_inputdlg.m

    r80 r83  
    5353GD = aedes_gui_defaults;
    5454scrsz = get(0,'screensize');
    55 fig_w=175;
     55fig_w=215;
    5656fig_h=85;
    5757fig_pos = [scrsz(3)/2-fig_w/2 scrsz(4)/2-fig_h/2 fig_w fig_h];
  • aedes_readfid.m

    r82 r83  
    11551155end
    11561156
     1157%% Support for fat/water measurements ----------------------
     1158if isfield(procpar,'seqfil') && strcmpi(procpar.seqfil,'ge3d_csi2')
     1159 
     1160  % Split kspace into fat and water (in 4th dimesion)
     1161  kspace=reshape(permute(reshape(kspace,256,2,[]),[1 3 4 2]),256,128,[],2);
     1162 
     1163  % Fourier transform data
     1164  if any(Dat.ZeroPadding==[1 2])
     1165    data_sz = [procpar.np/2,procpar.nf,procpar.nv2,2];
     1166    data = zeros(data_sz,class(kspace));
     1167    data(:,:,:,1) = abs(fftshift(fftn(kspace(:,:,:,1),data_sz(1:3))));
     1168    data(:,:,:,2) = abs(fftshift(fftn(kspace(:,:,:,2),data_sz(1:3))));
     1169  else
     1170    data = zeros(size(kspace),class(kspace));
     1171    data(:,:,:,1) = abs(fftshift(fftn(kspace(:,:,:,1))));
     1172    data(:,:,:,2) = abs(fftshift(fftn(kspace(:,:,:,2))));
     1173  end
     1174 
     1175  % Delete kspace if not returned
     1176  if ~Dat.ReturnKSpace
     1177    kspace=[];
     1178  end
     1179 
     1180  return
     1181end
     1182
    11571183%% Support for RASER sequence ---------------------------
    11581184if isfield(procpar,'teType')
     
    11951221    fudge = 0;
    11961222    fudge2 = 1;
    1197     
     1223   
    11981224    tt_dwell=repmat(dwell(:),1,ne);
    11991225    tt_ne = repmat((1:ne),length(dwell),1);
  • aedes_revision.m

    r82 r83  
    9393% bash-script every time it is called so that this file "aedes_revision.m" is
    9494% always in the list of committed files. DO NOT EDIT THE NEXT LINE!!!
    95 % - Svn Hook -
     95% - SVN Hook -
  • misclib/fmri_analysis.m

    r80 r83  
    223223
    224224% Smooth data
     225if show_wbar
     226  wbh = aedes_calc_wait('Smoothing data...');
     227  drawnow
     228end
    225229if all(smooth_kernel)
    226   if show_wbar
    227     wbh = aedes_calc_wait('Smoothing data...');
    228     drawnow
    229   end
    230230  smooth_data = fmri_smooth(data,smooth_kernel);
    231231else
Note: See TracChangeset for help on using the changeset viewer.

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