mda_simulator package#

Subpackages#

Module contents#

class ImageGenerator(N: int, img_shape: tuple[int, int] = (512, 512), extent=10, radius_loc=25, radius_scale=5, step_scale: tuple[float, float] = (2.5, 2.5), XY_stage_drift: tuple[int, int] = (0, 0), snr=1)[source]#

Bases: object

image2rgb(img)[source]#

Convert a grayscale image from this generator to RGB for easy viewing :Parameters: img ((M, M) of int)

Returns:

(M, M, 3) of float

property img_shape: ndarray#

!! processed by numpydoc !!

increment_time(delta_t=1)[source]#

increment the simulation time by delta_t time units.

snap_img(xy: tuple[float, float], c: int = 0, z: float = 0, exposure=1)[source]#
property snr: float#

!! processed by numpydoc !!