spiral_doe

colibri.optics.sota_does.spiral_doe(M, N, number_spirals, radius, focal, start_w=4.5e-07, end_w=6.5e-07)[source]

Code to generate a spiral DOE with a given number of spirals, radius, focal length and wavelength range.

For more information, please refer to the following paper: (2019). Compact snapshot hyperspectral imaging with diffracted rotation.

Parameters:
  • M (int) – Resolution at Y axis in pixels.

  • N (int) – Resolution at X axis in pixels.

  • number_spirals (int) – Number of spirals.

  • radius (float) – Radius of the doe.

  • focal (float) – Focal length of the doe.

  • start_w (float) – Initial design wavelength.

  • end_w (float) – Final design wavelength.

Returns:

Height map of the spiral DOE torch.Tensor: Aperture of the spiral DOE

Return type:

torch.Tensor

Examples using spiral_doe:

Demo DOEs.

Demo DOEs.

Demo Colibri.

Demo Colibri.