bmorris3 / shampoo

An open source digital holographic microscopy toolkit in Python.
http://shampoo.readthedocs.org/en/latest/
20 stars 11 forks source link

Efficiency: calculate G only on mask #21

Open bmorris3 opened 7 years ago

bmorris3 commented 7 years ago

Suggestion from @jkentwallace: Currently, the Fourier transform of the impulse response function G, calculated in Hologram.fourier_trans_of_impulse_resp_func operates on the whole FT(hologram) matrix, but we only need to compute it on the non-zero portions of the Fourier mask.

Modify this line to compute the mask only on the portions that are non-zero in the Fourier mask.