pado.math.compute_scasm_transfer_function

compute_scasm_transfer_function(Mx, My, delta_fx, delta_fy, λ, z)[source]

Compute transfer function for Scaled Angular Spectrum Method propagation.

Parameters:
  • Mx (int) – Number of sampling points in x,y directions

  • My (int) – Number of sampling points in x,y directions

  • delta_fx (float) – Frequency sampling intervals (1/m)

  • delta_fy (float) – Frequency sampling intervals (1/m)

  • λ (float) – Wavelength (m)

  • z (float) – Propagation distance (m)

Returns:

Transfer function H(fx,fy) [My, Mx]

Return type:

torch.Tensor

Examples

>>> H = compute_scasm_transfer_function(1024, 1024, 1/(1024*2e-6), 1/(1024*2e-6), 633e-9, 0.1)
>>> U_prop = torch.fft.fft2(light.get_field()) * H