1. A method for determining a pixel value in a high dynamic range image based on first and second input images of different brightness, comprising: obtaining a first input pixel intensity of a first pixel in the first input image and a second input pixel intensity of a corresponding pixel in the second input image, each of the first and second input images having lower dynamic range than the high dynamic range image; determining a first combination weight for the first input pixel intensity and a second combination weight for the second input pixel intensity, each of the first and second combination weights being a continuous function of the first and second input pixel intensities, the function having predefined values for a plurality of pairs of a predefined first pixel intensity and a predefined second pixel intensity, the predefined values being defined by consideration of at least one quality metric; obtaining a first brightness parameter associated with the first input image and a second brightness parameter associated with the second input image; correcting for sensor-induced errors in at least one of the first and second brightness parameters; and calculating the pixel value in the high dynamic range image as a weighted average of the first and second input pixel intensities using the first and second combination weights, wherein the step of calculating comprises scaling, based on the first and second brightness parameters, the first and second input pixel intensities to a common image brightness.