recolo.artificial_grid_deformation.grid.dotted_grid
- recolo.artificial_grid_deformation.grid.dotted_grid(xs, ys, pitch, pixel_size=1, oversampling=1, noise_std=None)
Generate a grid image. The gray scale values of the grid is given by:
g(x,y) = 0.5 * (2. + cos(2. * pi * x / pitch) + cos(2. * pi * y / pitch))
- xsndarray
The x-coordinates of the pixels in physical units
- ysndarray
The y-coordinates of the pixels in physical units
- pitchfloat
The grid pitch in pixels
- pixel_sizefloat
The size of a pixel in physical units
- oversamplingint
Additional oversampling to reduce sampling artefacts of the grid.
- noise_stdfloat
The standard deviation of the additive gaussian noise
- grid: ndarray
The grid image