【发布时间】:2011-10-06 05:39:59
【问题描述】:
我的任务是从正弦图创建 2D 图像。我有以下内容:
function recon = fourier(sinogram, interpolation)
tic;
[rows cols] = size(sinogram);
% calculate 1D FFT of the sinogram
% fftSino = ...;
fftSino = fft(sinogram);
% prepare the coordinate system change
cartesianX = 0:1/(cols-1):1;
cartesianY = -1:2/(rows-1):1;
[x y] = meshgrid(-1:2/(rows-1):1);
ySign = y < 0;
polarAngle = ~ySign - atan2(y, x) / pi;
polarRadius = sqrt(x.^2 + y.^2) .* (ySign - ~ySign);
%%
% perform coordinate system change
fftSinoInterp = pol2cart(polarAngle, polarRadius);
但现在我不知道如何将复数内插到我的笛卡尔网格上。 谁能给我一个关于使用什么参数的函数的提示? 我查看了 interp2,但无法弄清楚 X Y Z 使用什么。另外我不知道 interp1 或 TriScatteredInterp 在这里如何工作。
【问题讨论】:
-
interp2 帮助页面 - mathworks.com/help/techdoc/ref/interp2.html
标签: matlab interpolation coordinate-systems