1. A method of transforming an image, the method comprising: obtaining transform matrices by finding a solution to a multi-objective optimization problem, wherein finding the solution to the multi-objective optimization problem comprises minimizing a joint cost of a value representing the computational complexity associated with applying the transform matrices to images and a value representing the quality of the transformed images; and transforming the image by applying the transform matrices to the image to produce a transformed image.