How to get back the original image?
Show older comments
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)?
Answers (1)
Thorsten
on 24 Aug 2016
I = rand(10); % sample data
I2 = exp(1i*pi*I);
I1 = real(log(I2)/pi/1i);
2 Comments
RAVI KUMAR
on 24 Aug 2016
Thorsten
on 24 Aug 2016
Why not?
I tested with
I = im2double(imread('cameraman.tif'));
and it worked fine.
Categories
Find more on Convert Image Type in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!