AnaGallegos / Filter-matrix

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Filter matrix

Final practice before specialization in KeepCoding's Bootcamp.

process_matrix function

Receives an array (list of lists) of numbers as a parameter and returns another, with the same size and number of elements.

The transformation it applies is as follows: each element of the array now has as its value the average of its old value and the values of its neighbors.

Before: image

After: image

What's used for?

image

We can pixelate our faces, or even smooth out wrinkles if we want!

About


Languages

Language:Python 100.0%