def Salt(p=<NUM_LIT:0>, per_channel=False, name=None, deterministic=False, random_state=None):
replacement01 = iap.ForceSign(<EOL>iap.Beta(<NUM_LIT:0.5>, <NUM_LIT:0.5>) - <NUM_LIT:0.5>,<EOL>positive=True,<EOL>mode="<STR_LIT>"<EOL>) + <NUM_LIT:0.5><EOL>replacement = replacement01 * <NUM_LIT:255>  <EOL>if name is None:<EOL><INDENT>name = "<STR_LIT>" % (ia.caller_name(),)<EOL><DEDENT>return ReplaceElementwise(mask=p, replacement=replacement, per_channel=per_channel, name=name,<EOL>deterministic=deterministic, random_state=random_state)<EOL>
Adds salt noise to an image, i.e. white-ish pixels.

dtype support::

    See ``imgaug.augmenters.arithmetic.ReplaceElementwise``.

Parameters
----------
p : float or tuple of float or list of float or imgaug.parameters.StochasticParameter, optional
    Probability of changing a pixel to salt noise.

        * If a float, then that value will be used for all images as the
          probability.
        * If a tuple ``(a, b)``, then a probability will be sampled per image
          from the range ``a <= x <= b``.
        * If a list, then a random value will be sampled from that list
          per image.
        * If a StochasticParameter, then this parameter will be used as
          the *mask*, i.e. it is expected to contain values between
          0.0 and 1.0, where 1.0 means that salt is to be added
          at that location.

per_channel : bool or float, optional
    Whether to use the same value for all channels (False)
    or to sample a new value for each channel (True).
    If this value is a float ``p``, then for ``p`` percent of all images
    `per_channel` will be treated as True, otherwise as False.

name : None or str, optional
    See :func:`imgaug.augmenters.meta.Augmenter.__init__`.

deterministic : bool, optional
    See :func:`imgaug.augmenters.meta.Augmenter.__init__`.

random_state : None or int or numpy.random.RandomState, optional
    See :func:`imgaug.augmenters.meta.Augmenter.__init__`.

Examples
--------
>>> aug = iaa.Salt(0.05)

Replaces 5 percent of all pixels with salt.