A filter that can be used for digital signals like audio, video or image processing can be defined using a matrix ("kernel") that weights the surrounding area (this is a description I read in lecture notes from someone else).
The kernel $$\left(\begin{array}{ccc} 1 & 1 & 1 \\ 1 & 1 & 1\\ 1 & 1 & 1\end{array}\right)$$ defines an erode filter.
Could you please tell me how this kernel is applied to e.g. an image (and therefore a 2D field of pixels)? Thank you in advance!