Skip to content

Latest commit

 

History

History

random_blur

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Random Blur

The np.random module contains many random functions. We can use them to generate random pixels:

image0

The np.random.ranint() function uses the uniform distribution:

.. literalinclude:: blur.py

Print the array to take a look at the values:

print(a)

Challenges:

  • change the boundaries in the randint() function to create low amplitude noise
  • create grayscale blur
  • create a blue blur banner:

image1