lentil.detector.read_noise#

lentil.detector.read_noise(img, electrons, seed=None)[source]#

Apply read noise to a frame

Parameters:
  • img (array_like) – Array of electrons

  • electrons (int) – Read noise per frame

  • seed (None, int, or array_like, optional) – Random seed used to initialize the pseudo-random number generator. If seed is None (default), the seed will be randomly generated from /dev/urandom if available or the system clock.

Returns:

img – Input image with read noise applied

Return type:

ndarray