Added the filter function that allows filtering a matrix with any kernel as described in ticket #657.
Authored by: raph-z 2022-10-15
Parent: [r1236]
Child: [r1238]