0
我有一個任務來從一個Sinogram創建一個2D圖像。我有以下內容:MATLAB如何將pol2cart複數插值到笛卡爾網格上?
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幫助頁面 - http://www.mathworks.com/help/techdoc/ref/interp2.html – ThP