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: registering the first and second images based on first image registration parameters; determining a gradient error associated with a first image registration; generating a composite image, in an instance in which the gradient error satisfies a predetermined minimization value; and applying an energy minimization function based on total variation.