How to get back the original image?

조회 수: 3 (최근 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.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 MATLAB Support Package for IP Cameras에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by