The Applications of the Theory of Bi-Variate Orthogonal Polynomials in Segmented Image Coding