フィルターのクリア

How to get back the original image?

1 回表示 (過去 30 日間)
RAVI  KUMAR
RAVI KUMAR 2016 年 8 月 24 日
コメント済み: Thorsten 2016 年 8 月 24 日
If let say I have an image I(x,y), and then it is transformed into a phase function as: I2(x,y)=exp(i*pi*I(x,y)); then how can I get back the image I(x,y) from I2(x,y)?

回答 (1 件)

Thorsten
Thorsten 2016 年 8 月 24 日
I = rand(10); % sample data
I2 = exp(1i*pi*I);
I1 = real(log(I2)/pi/1i);
  2 件のコメント
RAVI  KUMAR
RAVI KUMAR 2016 年 8 月 24 日
First of all, Thank you sir but its okay with random numbers; the problem is if we use a gray scale image (for example "lena.jpg") it will not give the result.
Thorsten
Thorsten 2016 年 8 月 24 日
Why not?
I tested with
I = im2double(imread('cameraman.tif'));
and it worked fine.

サインインしてコメントする。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by