[Math] Laplacian 2D kernel – is it separable

convolutionimage processing

I'm wondering if the 2D laplacian kernel

0  1  0
1 -4  1
0  1  0

is also a separable kernel. How can I find that out?

Best Answer

A kernel $h$ is separable if and only if all its rows are multiples of each other. Then you can pick one, call it $f$, make a column of the multiplicative factors, call it $g$, and find that $h = f*g$.

You can't do this for the 2D Laplacian kernel, because $[0,1,0]$ is not a multiple of $[1,-4,1]$.

Related Question