pybsm.otf.functional.otf_to_psf

pybsm.otf.functional.otf_to_psf(*, otf: ndarray, df: float, dx_out: float) ndarray

Transform an optical transfer function into a point spread function (i.e., image space blur filter).

Parameters:
  • otf – Complex optical transfer function (OTF)

  • df – Sample spacing for the optical transfer function (radians^-1)

  • dx_out – desired sample spacing of the point spread function (radians); WARNING: dx_out must be small enough to properly sample the blur kernel

Returns:

psf:

blur kernel

Raises:
IndexError:

if otf is not a 2D array

ZeroDivisionError:

if df or dx_out are 0