source: vnmr_recon/cine_recon.m @ 138

Last change on this file since 138 was 138, checked in by tjniskan, 9 years ago
  • 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 size: 725 bytes
Line 
1function [kspace,data,msg_out]=cine_recon(kspace,Dat,procpar)
2% This is a custom VNMR k-space reconstruction code for CINE 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 = {'cineSSFP'};
9  return
10end
11
12data=[];
13msg_out = '';
14
15ne = procpar.ne;
16nv = procpar.nv;
17np = procpar.np;
18pss = procpar.pss;
19
20kspace=permute(reshape(kspace,np/2,1,1,ne,nv,length(pss)),[1 5 6 4 2 3]);
21
22% Sort data using phasetable ------------------
23if Dat.Sorting && ~isempty(Dat.phasetable)
24  Dat.phasetable = Dat.phasetable.';
25  kspace(:,Dat.phasetable(:),:,:,:)=kspace;
26end
27
28% FFT data
29data = abs(fftshift(fftshift(ifft(ifft(kspace,[],1),[],2),1),2));
Note: See TracBrowser for help on using the repository browser.

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