nima.generat#

Generate mock images.

Functions:

gen_bias([nrows, ncols])

Generate a bias frame.

gen_flat([nrows, ncols])

Generate a flat frame.

gen_object([nrows, ncols, min_radius, ...])

Mimic http://scipy-lectures.org/packages/scikit-image/index.html.

gen_objs([max_fluor, max_n_obj, nrows, ...])

Generate a frame with ellipsoid objects; random n, shape, position and I.

gen_frame(objs[, bias, flat, dark, sky, ...])

Simulate an acquired frame [bias + noise + dark + flat * (sky + obj)].

nima.generat.gen_bias(nrows=128, ncols=128)#

Generate a bias frame.

Return type:

ndarray[Any, dtype[float64]]

nima.generat.gen_flat(nrows=128, ncols=128)#

Generate a flat frame.

Return type:

ndarray[Any, dtype[float64]]

nima.generat.gen_object(nrows=128, ncols=128, min_radius=6, max_radius=12)#

Mimic http://scipy-lectures.org/packages/scikit-image/index.html.

Return type:

ndarray[Any, dtype[bool_]]

nima.generat.gen_objs(max_fluor=20, max_n_obj=8, nrows=128, ncols=128, min_radius=6, max_radius=12)#

Generate a frame with ellipsoid objects; random n, shape, position and I.

Return type:

ndarray[Any, dtype[float64]]

nima.generat.gen_frame(objs, bias=None, flat=None, dark=0, sky=2, noise_sd=1)#

Simulate an acquired frame [bias + noise + dark + flat * (sky + obj)].

Return type:

ndarray[Any, dtype[float64]]