Hi,
In the array where you put the spatial frequency as a function of the Nyquist frequency (x-axis for MTF plot), you put an additional 0.5 shift. I assume this is to center it in the bin? But since we are working with frequencies at this point, this seems incorrect to me. The first element in the spatial frequency is now 0.5 Nyquist frequencies instead of 0 Nyquist frequencies. Personally, I would omit the 0.5. Is there a specific reason you added it?
I am talking about this formula:
sf[i] = 2.*(i+0.5)/ft_len;
Thanks.
Hi,
In the array where you put the spatial frequency as a function of the Nyquist frequency (x-axis for MTF plot), you put an additional 0.5 shift. I assume this is to center it in the bin? But since we are working with frequencies at this point, this seems incorrect to me. The first element in the spatial frequency is now 0.5 Nyquist frequencies instead of 0 Nyquist frequencies. Personally, I would omit the 0.5. Is there a specific reason you added it?
I am talking about this formula:
sf[i] = 2.*(i+0.5)/ft_len;Thanks.