lentil.detector.charge_diffusion#
- lentil.detector.charge_diffusion(img, sigma, oversample=1)[source]#
Apply charge diffusion represented by a Gaussian blur
- Parameters:
img (array_like) – Frame to apply charge diffusion to
sigma (float) – Diffusion sigma
oversample (int) – Oversample factor in img
- Returns:
img – Input frame blurred by charge diffusion
- Return type:
ndarray