nanopyx.core.generate.noise_add_ramp

def add_ramp(image, vmax=100.0, vmin=0.0):

Adds a ramp from vmin to vmax to the image

Parameters
  • image: The image to add the ramp to
  • vmax: The maximum intensity value of the ramp
  • vmin: The minimum intensity value of the ramp
def get_ramp(w, h, vmax=100.0, vmin=0.0):

Returns a 2D array of size (w, h) with a ramp from vmin to vmax

Parameters
  • w: The width of the image
  • h: The height of the image
  • vmax: The maximum intensity value of the ramp
  • vmin: The minimum intensity value of the ramp
Returns

The image with the ramp