All the theory that was developed above for one-dimensional signals can be generalized to two dimensions and applied to images. In most cases, we will treat each dimension separately: if we have a two-dimensional signal f(x,y) we can first apply FT for the variable x keeping y fixed, then for y and obtain a function of two frequency variables. Unfortunately, not all intersting things that can be done in two dimensions can be decomposed into a sequence of two one-dimensional operations.
Two-dimensional discrete convolution can be defined as
Two-dimensional convolution can be represented as a sequence of two one-dimensional convolutions only if one of the signals is separable, that is if x[n1,n2] = x1[n1]x2[n2] for some one-dimensional signals x1[n1] x2[n2].