source: vnmr_recon/epi_recon.m @ 128

Last change on this file since 128 was 128, checked in by tjniskan, 9 years ago
  • Added first alpha version of the new VNMR-data reader

aedes_readvnmr.m (the old aedes_readfid is becoming more and more
cluttered with endless patches here and there)

  • Added the directory for custom codes for reconstruction VNMR data.
  • Added first alpha version of custom code for reconstruction EPI data

from INOVA system

A aedes_readvnmr.m
M aedes_revision.m
A vnmr_recon
A vnmr_recon/epi_recon.m

File size: 929 bytes
RevLine 
[128]1function [kspace,data,msg_out]=epi_recon(kspace,Dat,procpar)
2% This is a custom VNMR k-space reconstruction code for EPI data used by
3% aedes_readvnmr.
4
5% If called without input arguments, return the sequence names that
6% this code reconstructs
7if nargin==0
8  kspace = {'epi_se_rapid_sp3','epi','epi_fMRI'};
9  return
10end
11
12data=[];
13msg_out = '';
14
15% EPI data is measured with INOVA system and sorted using CORREPI
16if isfield(procpar,'readres') && isfield(procpar,'phaseres')
17 
18  % Number of slices
19  tmp_ns=length(procpar.pss);
20 
21  if isfield(procpar,'navecho') && strcmpi(procpar.navecho{1},'y')
22    tmp_nv = procpar.nv-procpar.nseg;
23  else
24    tmp_nv = procpar.nv;
25  end
26  kspace = reshape(kspace,[size(kspace,1) ...
27    size(kspace,2)/tmp_nv tmp_nv]);
28  kspace = permute(kspace,[1 3 2]);
29 
30  % Reshape to 4D matrix
31  kspace = reshape(kspace,[size(kspace,1) size(kspace,2) ...
32    tmp_ns size(kspace,3)/tmp_ns]);
33else
34 
35end
Note: See TracBrowser for help on using the repository browser.

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