peaks_to_pixels#

anri.fwd.peaks_to_pixels(centroid, cov, amplitude, bins, window_size)#

Vectorized version of peak_to_pixels. Takes similar arguments as peak_to_pixels but with additional array axes over which peak_to_pixels is mapped.

Original documentation:

Get N*(window_size,) image of normalised pixel intensities around centroid in N dimensions.

This can be vectorised over centroids, see peaks_to_pixels().

Parameters:
Returns:

  • intensities_dense (jax.Array) – [N*(window_size,)] Dense image of intensities around the centroid

  • starts (jax.Array) – [N] Start indices (of bins) to the intensity image