fixphase.m
来自「plane wave expansion for 2D and 3D photo」· M 代码 · 共 10 行
M
10 行
function z=fixphase(f)s0=sum(sum(real(f).^2-imag(f).^2));s1=sum(sum(2.*real(f).*imag(f)));theta=0.5*atan2(-s1,s0);display(sprintf('Phase is:%f',theta));tmpr=real(f)*cos(theta)-imag(f)*sin(theta);tmpi=real(f)*sin(theta)-imag(f)*cos(theta);z=tmpr+sqrt(-1)*tmpi;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?