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:
centroid (
Array) – [N] Coordinate of peak centroid in N dimensionscov (
Array) – [3, N] output covariance matrix fromanri.fwd.propagate_cov_box()oranri.fwd.propagate_cov_scan()amplitude (
float) – Total integrated amplitude of the peakbins (
tuple[Array]) – The bin centres for each dimension ( e.g (sc, fc, omega, [dty]) )window_size (
int) – The window size to evaluate pixel intensities
- Returns: