11 norm2int = @(img) uint8(255.*img./max(max(img)));
25 %% Convert to complex image
40 [C, R] = meshgrid(
c,
r);
45 A = fftshift(fft2(fftshift(
ch)));
48 %% Reconstruction part
55 EI = fftshift(ifft2(fftshift(
Az1)));
62 title(sprintf(
'ASM 3 point Reconst %.2f mm',
zz/
mm));
63 %
saveas(
fig, sprintf(
'ASM 3 point Reconst %.2f mm.jpg',
zz/
mm));
saveas(fig, sprintf('ASM 3 point Reconst %.2f mm.jpg', zz/mm))
Convert to complex image phase part im_py
void normalize(const Complex< T > *src, Complex< T > *dst, const int &size)
Normalize all elements of Complex<T>* src from 0 to 1.
title(sprintf('ASM 3 point Reconst %.2f mm', zz/mm))
angular spectrum method kernel norm2int
__managed__ float amplitude
imwrite(I_rec, sprintf('OPH_point_3_%.2fmm.jpg', zz/mm+20))
Reconstruction part figure