Dear Dr. Treeby and Dr. Cox,
First of all, thanks for sharing this great toolbox.
I am trying to understand how the PA reconstruction is realized by Matlab. From the paper(Kornel P. Kostli and et.al, APPLIED OPTICS, Vol.42, no.10, 1 April 2003), the detected signal is the function of p(t, y) and its Fourier transform simply gives P(w,ky). Then, the transform w to kx by dispersion relation & interpolation gives P(kx,ky). So far, everying is clear. But, during realizing these procedures with Matlab, there are some difficulies for me to understand:
1. From Your Matlab code (KspaceLinRecon.m), w is defined as w=c*kgrid.kx instread of w=c*(kx^2+ky^2)^1/2 which is from dispersion relation. Both are identical? Or Am I misunderstanding?
2. Similarly, w_new which may refer to kx is defined as w_new=c*kgrid.k instead of w_new=((w/c)^2-kgrid.ky^2)^1/2. Would you explain why?
3. From the code 'p=sf.*fftshift(fftn(fftshift(p)))', Would you let me know why fftshift(p) is used? When I run the simulation after replacing it with p=sf.*fftshift(fftn(p)) it gives odd outcome which is wrong.
Sorry for taking away your precious time.
Thank you.
Kind regards,
Seongjun Park