make_frames#
- pyrost.bin.make_frames(pfx: numpy.ndarray, pfy: numpy.ndarray, dx: float, dy: float, shape: Tuple[int, int], seed: int, num_threads: int = 1)#
Generate intensity frames from one-dimensional intensity profiles (pfx, pfy) and white-field profiles (wfx, wfy). Intensity profiles resized into the shape of a frame. Poisson noise is applied if seed is non-negative.
- Parameters
pfx (numpy.ndarray) – Intensity profile along the x axis.
pfy (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].
seed (int) – Seed for pseudo-random number generation.
num_threads (int) – Number of threads used in the calculations.
- Returns
Intensity frames.
- Return type