Thank you for the code.
In the function of "function_Superoposition", line 18, you give the code that "hologram = hologram + ifft2(ifftshift(sqrt(target) .* exp(1i * randn(NX,NY))))./HStacks(:,:,i);".
I wonder that the code should be "hologram = hologram + ifft2(ifftshift(sqrt(target) .* exp(1i * randn(NX,NY)))./HStacks(:,:,i));".
Hoping for your reply.
Thank you for the code.
In the function of "function_Superoposition", line 18, you give the code that "hologram = hologram + ifft2(ifftshift(sqrt(target) .* exp(1i * randn(NX,NY))))./HStacks(:,:,i);".
I wonder that the code should be "hologram = hologram + ifft2(ifftshift(sqrt(target) .* exp(1i * randn(NX,NY)))./HStacks(:,:,i));".
Hoping for your reply.