forward_spc

colibri.optics.functional.forward_spc(x, H)[source]

Forward propagation through the Single Pixel Camera (SPC) model.

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

Parameters:
  • x (torch.Tensor) – Input image tensor of size (B, L, M, N).

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

Returns:

Output measurement tensor of size (B, S, L).

Return type:

torch.Tensor