.
varying from 0 to 255. When we convolve an image with a 2D (ideally n x n square) kernel, we go over each pixel, and in each round we map the current pixel as the central element of the kernel, and its immediate neighbours to the corresponding elements of the matrix. Then each pixel’s RGB vector is