conventional_lens

colibri.optics.sota_does.conventional_lens(M, N, focal=None, radius=None)[source]

Code to generate a conventional lens with a given focal length and radius following the equation

\[h(x, y) = \frac{-(x^2 + y^2)}{f}\]

where \(r\) is the distance from the center of the lens and \(f\) is the focal length of the lens.

For more information, please refer to: Goodman, J. W. (2005). Introduction to Fourier optics. Roberts and Company Publishers. (2017). Design and fabrication of diffractive optical elements with MATLAB.

Parameters:
  • M (int) – Number of pixels in the y direction,

  • N (int) – Number of pixels in the x direction,

  • focal – Focal length of the lens

  • wavelength – Wavelength of the light

  • radius – Radius of the lens

Returns:

Height map of the conventional lens torch.Tensor: Aperture of the conventional lens

Return type:

torch.Tensor

Examples using conventional_lens:

Demo DOEs.

Demo DOEs.