Issue while generating hologram
Show older comments
Hello everyone, I am trying to generate a Hologram using GS-like hybrid algorithm but unfortunately, I am unable to get the desired result. The resulting hologram I am getting is

but the desired one is

any help will be much appreciated.
ThanksH
13 Comments
Walter Roberson
on 19 Feb 2018
The bug is in line 17.
Zulqarnain Sheikh
on 19 Feb 2018
Walter Roberson
on 19 Feb 2018
Notice that we did not get line 17 either. We did not receive any code at all.
Zulqarnain Sheikh
on 19 Feb 2018
Edited: Walter Roberson
on 20 Feb 2018
Zulqarnain Sheikh
on 19 Feb 2018
Edited: Walter Roberson
on 20 Feb 2018
Walter Roberson
on 19 Feb 2018
Is img1.jpg the same as your bottom image?
Zulqarnain Sheikh
on 20 Feb 2018
Walter Roberson
on 20 Feb 2018
? None of the images look anything like the result you indicate you are getting.
Zulqarnain Sheikh
on 20 Feb 2018
Walter Roberson
on 20 Feb 2018
Okay, but none of the figures produced by the code you posted in https://www.mathworks.com/matlabcentral/answers/383481-issue-while-generating-hologram#comment_537027 look anything like what you posted as your output,

Zulqarnain Sheikh
on 20 Feb 2018
Walter Roberson
on 20 Feb 2018
I notice that you do not update rmse inside the while loop?
Zulqarnain Sheikh
on 20 Feb 2018
Answers (0)
Categories
Find more on Contrast Adjustment in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
