1. A method comprising: receiving a first image and second image; and registering the first and second images in a gradient domain, wherein registration of the first and second images in the gradient domain comprises applying an energy minimization function based on total variation.