Seamless image stitching in the gradient domain