0

我是图像处理的新手。我做了一个关于离散傅里叶变换的程序。我能够从(幅度+相位)信息中获得反向图像。此外,我只能从幅度部分获得逆像,但我不能仅从相位信息中获得逆像。我正在这样做。

for(u=0;u<63;u++)
for(v=0;v<63;v++)
{
rl=std::real(F[u][v]);   //F[u][v] contains DFT coefficients
img=std::imag(F[u][v]);
phase = atan2(img,rl);   // phase angle image is found
auto c1 = std::complex<double>(cos(phase), sin(phase));
p[u][v]=c1;
}

然后我找到了如下的反向图像:

f(x,y)= ∑(u=0) 到 (M-1)∑(v=0) 到 (N-1) |p(u,v)| exp ^ j2pi(ux/M+vy/N)

我做对了吗?请帮忙?

4

0 回答 0