nanopyx.core.generate.noise_add_simplex

def get_simplex_noise(rows, columns, *args, **kwargs):

Get a simplex noise image

Parameters
  • rows: The number of rows
  • columns: The number of columns
  • args: The arguments to pass to the simplex noise function (see add_simplex_noise())
  • kwargs: The keyword arguments to pass to the simplex noise function
Returns

The simplex noise image

def add_simplex_noise( dataset: numpy.ndarray, frequency=0.01, octaves=4, persistence=2.0, amplitude=1000.0, offset=1000.0, seed=-1):

Add simplex noise to a 2D numpy array.

Parameters
  • im: The 2D numpy array to add noise to.
  • frequency: The frequency of the noise.
  • octaves: The number of octaves to use.
  • persistence: The persistence of the noise.
  • amplitude: The amplitude of the noise.
  • offset: The offset of the noise.
  • seed: The seed to use for the noise generator, if -1 a random seed will be used.