1. An image processing system for generating a high dynamic range image from a first image and a second image, comprising: a memory comprising instructions; and a processor coupled to the memory, wherein the instructions cause the processor to be configured to: estimate a displacement of image content between a reference image derived from the first image and an image to be warped derived from the second image; compensate the estimated displacement by warping the image to be warped to generate a first warped image; compute intensity differences between each pixel of the first warped image to a corresponding pixel of the reference image; compute a histogram of the computed intensity differences; adaptively determine an error threshold by analyzing gradients of consecutive values of the histogram and selecting the error threshold as a value where the gradient is maximal; detect geometric warping errors within the first warped image based on the error threshold; compensate the detected geometric warping errors in the first warped image resulting in a first error corrected image; and calculate the high dynamic range image based upon the first error corrected image and the reference image.