Changeset 83 for aedes_readfid.m


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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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);
Note: See TracChangeset for help on using the changeset viewer.

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