# US 2016/0364847 A1 · System and Method for Processing Input Images Before Generating a High Dynamic Range Image

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2016/0364847 A1
- Document ID: US20160364847A1
- Status: Published application
- Kind: A1
- Application number: 15/245,402
- Filed: 2016-08-24
- Published: 2016-12-15
- Earliest claimed: 2014-02-24
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Fahd Bouzaraa; Giovanni Cordara; Onay Urfalioglu
- Web page: https://patentgrep.com/patent/US20160364847A1

## CPC

- G06T 5/90: Dynamic range modification of images or parts thereof
- G06T 5/40: using histogram techniques
- G06T 5/50: using two or more images, e.g. averaging or subtraction
- G06T 5/77: Retouching; Inpainting; Scratch removal
- G06T 2207/10004: Still image; Photographic image
- G06T 2207/10012: Stereo images
- G06T 2207/10144: Varying exposure
- G06T 2207/20208: High dynamic range [HDR] image processing
- G06T 2207/20216: Image averaging
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

An image processing system for generating a high dynamic range image from a first image and a second image is presented. The system comprises a first displacement estimator adapted 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. The system comprises a first warping unit that compensates the estimated displacement by warping the image to be warped resulting in a first warped image. The system comprises a first error detector adapted to detect geometric warping errors within the first warped image and a first error compensator adapted to compensate the estimated geometric warping errors within the first warped image resulting in a first error corrected image. The system comprises a high dynamic range calculator adapted to calculate the high-dynamic range image based upon the first error corrected image and the reference image.

## Claims

### Claim 1

An image processing system for generating a high dynamic range image from a first image and a second image, comprising:
a first displacement estimator 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;
a first warping unit configured to compensate the estimated displacement by warping the image to be warped resulting in a first warped image;
a first error detector configured to detect geometric warping errors within the first warped image;
a first error compensator configured to compensate the detected geometric warping errors in the first warped image resulting in a first error corrected image; and
a high dynamic range calculator configured to calculate the high dynamic range image based upon the first error corrected image and the reference image.

### Claim 2 (depends on 1)

The image processing system according to claim 1, wherein the first displacement estimator is configured to estimate the displacement of the image content by at least one of:
estimating an optical flow;
performing a block based search; and
performing a patch matching.

### Claim 3 (depends on 1)

The image processing system according to claim 1, wherein the first error detector comprises:
a difference unit configured to compute intensity differences of each pixel of the first warped image to a corresponding pixel of the reference image;
a histogram unit configured to compute a histogram of the computed intensity differences;
a threshold determination unit configured to determine an error threshold from the histogram; and
an error deciding unit configured to determine geometric warping errors by comparing the intensity differences to the threshold resulting in a binary map of geometric warping error pixels.

### Claim 4 (depends on 3)

The image processing system according to claim 3, wherein the threshold determination unit is configured to determine the error threshold so that difference values below the error threshold indicate photometric warping errors and values above the error threshold indicate geometric warping errors.

### Claim 5 (depends on 3)

The image processing system according to claim 3, wherein the threshold determination unit is configured to adaptively determine the error threshold by analyzing gradients of consecutive values of the histogram and selecting the threshold as a value where the gradient is maximal.

### Claim 6 (depends on 3)

The image processing system according to claim 3, wherein the difference unit is configured to compute the intensity differences independently for different color channels, and wherein the error deciding unit is configured to:
compare the intensity differences of the color channels to the error threshold; and
determine a geometric warping error of a pixel when at least one of the intensity differences of the color channels is higher than the error threshold, or when intensity differences of all color channels are higher than the error threshold.

### Claim 7 (depends on 3)

The image processing system according to claim 3, wherein the difference unit is configured to compute the intensity differences independently for different color channels, wherein the histogram unit is configured to compute independent histograms for the different color channels, wherein the threshold determination unit is configured to determine an independent error threshold for each color channel, and wherein the error deciding unit is configured to:
compare the intensity differences of the color channels to the corresponding error thresholds; and
determine a warping error of a pixel when at least one of the intensity differences of the color channels is higher than the corresponding error threshold, or when intensity differences of all color channels are higher than the corresponding error thresholds.

### Claim 8 (depends on 3)

The image processing system according to claim 3, wherein the first error compensator comprises:
a search window setting unit configured to set search windows of predetermined or user-defined size around each pixel of the first warped image, for which a geometric warping error was detected;
a valid pixel detection unit configured to determine at which pixels within each search window no geometric warping error was detected resulting in valid pixels for each search window;
a correction value determination unit configured to calculate correction values for the pixels of the first warped image, at which geometric warping errors were detected, each as an average of the intensities of at least some of the valid pixels of the search window;
a correction value replacement unit configured to replace the pixels of the first warped image, at which geometric warping errors were detected, by the corresponding calculated correction values resulting in the first error corrected image.

### Claim 9 (depends on 8)

The image processing system according to claim 8, wherein the correction value determination unit is configured to calculate the correction values each as an average of the intensities of only valid pixels, whose intensity value difference to the intensity value of the presently corrected pixel are below a predetermined or user-selectable correction threshold.

### Claim 10 (depends on 8)

The image processing system according to claim 8, wherein the first error compensator comprises a weighting unit configured to compute a weighted map based on the binary map of geometric warping errors and the intensity gradients of the first warped image, wherein a lower weight is allocated to pixels of high gradient value, such as edges and boundaries, wherein a higher weight is allocated to pixels of low gradient value, resulting in a weighted map, and wherein the correction value determination unit is configured to weight the valid pixels of the search windows using the weighted map before calculating the correction values.

### Claim 11 (depends on 1)

The image processing system according to claim 1, further comprising a first exposure compensation unit configured to compensate different exposure times of the first image and the second image by changing at least one of a brightness and saturation of the first image or of the second image resulting in the reference image and the image to be warped.

### Claim 12 (depends on 1)

The image processing system according to claim 1, further comprising:
a second displacement estimator configured to estimate displacement of image content between the reference image and a further image to be warped derived from a third image;
a second warping unit configured to compensate the estimated displacement by warping the further image to be warped resulting in a second warped image;
a second error detector configured to detect geometric warping errors within the second warped image;
a second error compensator configured to compensate the detected geometric warping errors in the second warped image resulting in a second error corrected image,
wherein the high dynamic range calculator is configured to calculate the high dynamic range image based on the first error corrected image, the second error corrected image and the reference image.

### Claim 13

A method for generating a high dynamic range image from a first image and a second image, comprising:
estimating displacement of image content between a reference image derived from the first image and an image to be warped derived from the second image;
compensating the estimated displacement by warping the image to be warped to generate a first warped image;
detecting geometric warping errors within the first warped image;
compensating the detected geometric warping errors in the first warped image to generate a first error corrected image; and
calculating the high dynamic range image based on the first error corrected image and the reference image.

### Claim 14

A computer program product comprising computer executable instructions stored on a non-transitory computer readable medium such that when executed by a processor cause an image processing system to:
estimate displacement of image content between a reference image derived from a first image and an image to be warped derived from a second image;
compensate the estimated displacement by warping the image to be warped to generate a first warped image;
detect geometric warping errors within the first warped image;
compensate the detected geometric warping errors in the first warped image to generate a first error corrected image; and
calculate a high dynamic range image based on the first error corrected image and the reference image.
