1. A method of encoding data, the method comprising: computing a first set of coefficients based on a plurality of transforms each computed over a different portion of an array of data, a second set of coefficients based on a plurality of transforms each computed over a different portion of the array of data, and a third set of coefficients based on a transform computed over the array of data; choosing a set of coefficients to represent the array of data from a group of multiple sets of coefficients, the group including the first set of coefficients, the second set of coefficients, and the third set of coefficients; and encoding the chosen coefficients and one or more parameters related to the chosen coefficients.