make_frames¶
-
pyrost.bin.make_frames(double[:, ::1] i_x, double[::1] i_y, double dx, double dy, int ss, int fs, bool_t apply_noise)¶ Generate intensity frames with Poisson noise from one-dimensional intensity profiles i_x and i_y convoluted with the source’s rocking curves sc_x and sc_y.
- Parameters
i_x (numpy.ndarray) – Intensity profile along the x axis.
i_y (numpy.ndarray) – Intensity profile along the y axis.
dx (float) – Sampling interval along the x axis [um].
dy (float) – Sampling interval along the y axis [um].
ss (int) – Detector’s size along the slow axis.
fs (int) – Detector’s size along the fast axis.
apply_noise (bool) – Apply Poisson noise if it’s True.
- Returns
frames – Intensity frames.
- Return type