load magni2D.mat
load phase2D.mat
[x,y,z] = size(magni2D);
ksp = zeros(x,y,z);
for i=1:z
m = magni2D(:,:,i);
p = phase2D(:,:,i);
x = m.*cos(p)+1j*m.*sin(p);%generate k-space data
y = fft2c(x);
ksp(:,:,i)=y;
end
% save ksp.mat ksp
% test
slice = 17;
mrec = abs(ifft2c(ksp(:,:,slice))); mraw = magni2D(:,:,slice);
figure;imshow(mrec,[]);
figure;imshow(mraw,[]);
figure;imshow(mrec-mraw,[]);
prec = angle(ifft2c(ksp(:,:,slice))); praw = phase2D(:,:,slice);
figure;imshow(prec,[]);
figure;imshow(praw,[]);
figure;imshow(prec-praw,[]);
fft2c.m and ifft2c.m 来自软件包:
http://people.eecs.berkeley.edu/~mlustig/Software.html