pyfli.sp_analysis.spad_solvers#

Implement a Poisson-likelihood TV reconstructor for SPAD photon-count measurements.

This module belongs to pyfli.sp_analysis and is part of PyFLI single-pixel camera basis generation, acquisition simulation, and reconstruction solvers. Public API includes classes SPADPoissonReconstructor.

Classes

SPADPoissonReconstructor(h, w, t, lam[, ...])

Reconstruct SPAD photon-count data with a Poisson likelihood and isotropic TV penalty.

class SPADPoissonReconstructor(h, w, t, lam, differential=True, alpha=0.1, maxiter=500, n_workers=None)[source]#

Bases: BaseReconstructor

Reconstruct SPAD photon-count data with a Poisson likelihood and isotropic TV penalty. The solver is designed for low-count single-pixel acquisitions.

Parameters:
  • h (np.ndarray) – Image height or spatial dimension used by reconstruction solvers.

  • w (np.ndarray) – Image width or spatial dimension used by reconstruction solvers.

  • t (np.ndarray) – Temporal sample axis used by reconstruction solvers.

  • lam (np.ndarray) – Wavelength or spectral axis used by reconstruction solvers.

  • differential (bool) – Whether the sensing basis uses differential pattern pairs.

  • alpha (float) – Regularization strength or statistical threshold value, depending on context.

  • maxiter (int) – Maximum number of optimization iterations.

  • n_workers (int | None) – Number of worker processes or threads used by parallel solvers.

reconstruct_slice(y_slice, A)[source]#

Reconstruct slice.

Parameters:
  • y_slice (np.ndarray) – Single measurement slice reconstructed by the solver.

  • A (np.ndarray) – Lower bound or left separator value used by the helper.

Returns:

Object produced by reconstruct slice.

Return type:

Any