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
numpy.random.RandomState
. IfNone
, thenRandomState
will try to read data from /dev/urandom (or the Windows analogue) if available or seed from the clock otherwise.
- Returns
img – Input image with read noise applied
- Return type
ndarray