SaltPepper#

from pssr.crappifiers import SaltPepper
pssr.crappifiers.SaltPepper.__init__(self, intensity: float = 0.5, gain: float = 0, spread: float = 0)#

Crappifier using salt and pepper noise (full value addition/deletion). Adds salt and pepper noise to a low resolution image.

Parameters:
  • intensity (float) – Percent of values to replace with salt and pepper noise. Default is 0.5.

  • gain (float) – Value gain added to the image BEFORE noise. Default is 0.

  • spread (float) – Standard deviation of crappifier intensity for training on a range of crappifications. Default is 0.