Class SaltAndPepper

    • Field Detail

      • probability

        public Parameter probability
        The probability that a pixel will be turned black or white. This parameter contains a double between 0.0 and 1.0, the initial default value is 0.1. With the initial default value of 0.1, then there is a 5% chance a pixel will be turned white, a 5% chance that the pixel will be turned black and a 90% chance that the pixel will remain unchanged.