1. A method for processing image data, comprising the steps of: providing an image comprising two or more subsets of pixels; and directly inverting a respective Hessian matrix corresponding to each subset of pixels such that the pixels of each subset are simultaneously optimized with regard to a cost function.