1. A method of image processing comprising: receiving a plurality of first input empirical images of a scene; at a processor, calculating a 2D or higher dimensional reconstruction of the scene from the first input images; forming training data from the reconstruction of the scene and the first input images, using the training data to learn at least one parameter of a function for transforming an image; receiving a second input image; transforming the second input image using the function and the at least one parameter.