We consider a separable two dimensional transform by representing
the 2D basis function as the product of two 1D basis functions.

Here f(n1,n2) is a 2D signal, Fm1,m2
is a 2D array of coefficients, and the gm are the same basis
functions as in the 1D case.