coded_phase_imaging_backward

colibri.optics.functional.coded_phase_imaging_backward(field, phase_mask, distance, pixel_size, wavelength, approximation)[source]

Backward model for phase retrieval using a single distance and wavelength.

\[\mathbf{x} = \mathcal{P}_{(-z, \lambda)}(\mathbf{x}) \odot \bar{\learnedOptics}\]
Parameters:
  • y (torch.Tensor) – Measurement tensor (B, 1, M, N).

  • distance (float) – Distance in meters.

  • wavelength (float) – Wavelength in meters.

  • field (Tensor)

  • phase_mask (Tensor)

  • pixel_size (float)

  • approximation (str)

Returns:

Reconstructed image tensor (B, 1, M, N).

Return type:

torch.Tensor