Script generates a periodic image of gaussians on a lattice with different types of defects found in STEM images.
The following lattice parameters of the image can be selected:
-Period of the two directions and angle between them
-Static rotation angle
-"Particle" can be simulated by modulating intensity by sqrt(R**2-r**2)
The various options are available to reproduce typical electronic contributions:
-Flags & skips
-There is the possibility to flag or skip all the rows by an amount chosen at random according to a random gaussian distribution centered at 0 with a chosen standard deviation. (number clipped to +/- half the smallest of two periods).
-Various types of noise
-Add a constant value to the image
-Gaussian noise times a chosen value
-Uniform Poisson with parameter lambda, times a chosen constant
-Non-uniform Poisson noise, with the lambda parameter being the intensity of the image times a chosen parameter (i.e. lambda = C*Int(i,j))
-Numerical objective aperture (inserted in reciprocal space) with corresponding Hann window