simulator
- class ImageSimulator(phantom=None, psf=None, signal=1, z_projection=False)[source]
Bases:
objectObject with methods to generate the forward model of a (multichannel) microscope. The number of dimensions of phantom and the psf should differ by 1 at most. In this case, the last dimension of the psf is interpreted as the channel.
- image
image convolved with the psf and corrupted by shot noise
- Type:
np.ndarray
- clean_image
image convolved with the psf without noise
- Type:
np.ndarray
- phantom
stucture of the specimen
- Type:
np.ndarray
- psf
point spread function. The last dimension is the channel.
- Type:
np.ndarray
- signal
brightness of the sample (units: photon counts)
- Type:
float
- blur :
Generates the clean image.
- poisson_noise :
Corrupts the clean image with shot noise.
- forward :
Generates the blurred and noisy image.
- property ground_truth