Image effects with Python

Standard

Image effects are created by applying a convolution matrix (also known as kernel) to the image. This is a small matrix that slides through the original image and does a mathematical operation on the pixels for each position of the sliding window. Depending on the convolution matrix you get a different image effect. OpenCV has many of these effects integrated including guassian blur, laplacian and sobel.

Python code to do image effects: gaussian blur, laplacian, sobel:

Output:

Image effects

Leave a Reply