Patent ID: 8896625

Claim:
A method for fusing images, comprising: capturing by an image capturing device at least two frames of the images having different intensity values under different exposure time in a same scene; calculating an intensity mapping function between each two frames of the images according to an intensity histogram and an intensity cumulative histogram of each frame of the images, the intensity mapping function is a function between x and f(x), wherein x represents the intensity value of a pixel located at a certain position in a bright image of the two frames, f(x) represents the intensity value of the pixel located at the certain position in a dark image of the two frames, each group of x and f(x) in the intensity mapping function is referred to as a mapping pair and a plurality of mapping pairs are obtained, and a value obtained by subtracting f(x) from x is referred to as a mapping difference; selecting the mapping pair from the plurality of the mapping pairs according to the maximum mapping difference EDR max and using the selected mapping pair as an intensity mapping relation, wherein EDR max =max{x−f(x)}; and calculating an intensity value of each frame of the mapped images according to the determined mapping pair, calculating a fusing weight of each frame of the images according to the determined mapping pair by the formula s k ′ = { exp ( - 4 * I k 2 x max ⁢ ⁢ 1 2 ) k = 1 exp ( - 4 * ( 2 ⁢ ⁢ I k - x max ⁢ ⁢ k - f ( k - 1 ) ⁡ ( x max ⁡ ( k - 1 ) ) ) 2 ( x max ⁢ ⁢ k - f ( k - 1 ) ⁡ ( x max ⁡ ( k - 1 ) ) ) 2 ) k = 2 ⁢ ⁢ … ⁢ ⁢ ( n - 1 ) exp ( - 4 * ( 255 - I k ) 2 f ( n - 1 ) ⁡ ( x max ⁡ ( n - 1 ) ) 2 ) k = n ; wherein I k is the intensity value of k th image in n exposure images; and fusing a plurality of the frames of the images by the intensity value of each frame of the mapped images and the corresponding fusing weight of each frame of the images, and obtaining the fused image.