peak_to_pixels#

anri.fwd.peak_to_pixels(centroid, cov, amplitude, bins, window_size)[source]#

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