1. A method of selecting transform matrices for down-sampling a discrete cosine transform (DCT) image directly in the DCT domain, the method comprising: initializing the transform matrices; and adjusting the transform matrices by applying a learning-with-forgetting algorithm to the transform matrices to obtain transform matrices which reduce a learning objective function, wherein the learning objective function is a function of the computational complexity associated with using the transform matrices to down-sample the DCT image.