backward_spc

colibri.optics.functional.backward_spc(y, H, pinv=False)[source]

Inverse operation to reconstruct the image from measurements.

For more information refer to: Optimized Sensing Matrix for Single Pixel Multi-Resolution Compressive Spectral Imaging 10.1109/TIP.2020.2971150

Parameters:
  • y (torch.Tensor) – Measurement tensor of size (B, S, L).

  • H (torch.Tensor) – Measurement matrix of size (S, M*N).

  • pinv (bool) – Boolean, if True the pseudo-inverse of H is used, otherwise the transpose of H is used, defaults to False.

Returns:

Reconstructed image tensor of size (B, L, M, N).

Return type:

torch.Tensor