The Sobel kernels Kx=−1−2−1000121 and
Ky=−101−202−101 are applied by cross-correlation
(no kernel flip, as in a CNN layer) to the patch
0020101020202040, giving the gradient estimates Gx
and Gy at its centre. What is the gradient magnitude Gx2+Gy2?