The np.random
module contains many random functions. We can use them
to generate random pixels:
The np.random.ranint()
function uses the uniform distribution:
.. literalinclude:: blur.py
Print the array to take a look at the values:
print(a)
- change the boundaries in the
randint()
function to create low amplitude noise - create grayscale blur
- create a blue blur banner: