Image stitching device and image stitching method
AssigneeFaurecia Clarion Electronics (Xiamen) Co., Ltd.
InventorsChen Shen, Jie Qiu
Life of this patent
Estimating the term…
Abstract
An image stitching method includes: receiving a first image and a second image; determining that both the first image and the second image include a target object; obtaining a first brightness value and a second brightness value, the first brightness value being a brightness value of the target object in the first image, and the second brightness value being a brightness value of the target object in the second image; adjusting a brightness value of the first image and a brightness value of the second image according to the first brightness value and the second brightness value, so as to obtain a first image to be stitched and a second image to be stitched; and stitching the first image to be stitched and the second image to be stitched to obtain a first stitched image.
Claims14
An image stitching device, comprising:
- a communications interface configured to receive a first image and a second image;
- and
- a processor connected to the communications interface and configured to:
- determine that both the first image and the second image include a target object;
- obtain a first brightness value and a second brightness value, the first brightness value being a brightness value of the target object in the first image, and the second brightness value being a brightness value of the target object in the second image;
- adjust a brightness value of the first image and a brightness value of the second image according to the first brightness value and the second brightness value, so as to obtain a first image to be stitched and a second image to be stitched;
- the first image to be stitched having a same brightness range as the second image to be stitched;
- and
- stitch the first image to be stitched and the second image to be stitched to obtain a first stitched image;
- wherein adjusting the brightness value of the first image and the brightness value of the second image according to the first brightness value and the second brightness value, so as to obtain the first image to be stitched and the second image to be stitched includes:
- determine the larger of the first brightness value and the second brightness value as a target brightness value;
- determine a difference between a maximum brightness value of the first image and the first brightness value as a first brightness difference;
- determine a difference between a maximum brightness value of the second image and the second brightness value as a second brightness difference;
- determine the larger of the first brightness difference and the second brightness difference as a target brightness difference;
- adjust brightness values of objects in the first image, according to the target brightness value, the target brightness difference, the first brightness difference, and the first brightness value, so as to obtain the first image to be stitched;
- and
- adjust brightness values of objects in the second image, according to the target brightness value, the target brightness difference, the second brightness difference, and the second brightness value, so as to obtain the second image to be stitched.
An image stitching device, comprising:
- a communications interface configured to receive a first image, a second image, and a third image;
- and
- a processor connected to the communications interface and configured to:
- determine that both the first image and the second image include a first target object, and that both the second image and the third image include a second target object;
- divide the second image into a plurality of regions that include at least a first region and a second region, the first region being a region of the second image in which the first target object is located, and the second region being a region of the second image in which the second target object is located;
- obtain a first brightness value, a second brightness value, a third brightness value and a fourth brightness value, the first brightness value being a brightness value of the first target object in the first image, the second brightness value being a brightness value of the first target object in the second image, the third brightness value being a brightness value of the second target object in the third image, and the fourth brightness value being a brightness value of the second target object in the second image;
- adjust a brightness value of the first image according to the first brightness value and the second brightness value, so as to obtain a first image to be stitched and determine a first conversion coefficient, and the first conversion coefficient including brightness conversion coefficients corresponding to the first region;
- adjust a brightness value of the third image according to the third brightness value and the fourth brightness value, so as to obtain a third image to be stitched and determine a second conversion coefficient, and the second conversion coefficient including brightness conversion coefficients corresponding to the second region;
- adjust a brightness value of the second image according to the first conversion coefficient and the second conversion coefficient, so as to obtain a second image to be stitched;
- and
- stitch the first image to be stitched, the second image to be stitched, and the third image to be stitched to obtain a stitched image;
- wherein the adjusting the brightness value of the second image according to the first conversion coefficient and the second conversion coefficient, so as to obtain the second image to be stitched includes:
- determine a conversion coefficient corresponding to each region of the plurality of regions of the second image, according to the first conversion coefficient and the second conversion coefficient;
- and
- adjust a brightness value of each region of the plurality of regions, according to the conversion coefficient corresponding to the region, so as to obtain the second image to be stitched;
- wherein calculating the first conversion coefficient includes the following steps:
- determining the larger of the first brightness value and the second brightness value as a first target brightness value;
- determining a difference between a maximum brightness value of the first image and the first brightness value as a first brightness difference;
- determining a difference between a maximum brightness value of the second image and the second brightness value as a second brightness difference;
- determining the larger of the first brightness difference and the second brightness difference as a first target brightness difference;
- and
- calculating the first conversion coefficient according to the first target brightness value, the first target brightness difference, the second brightness difference, and the second brightness value;
- wherein calculating the second conversion coefficient includes the following steps:
- determining the larger of the third brightness value and the fourth brightness value as a second target brightness value;
- determining a difference between a maximum brightness value of the third image and the third brightness value as a third brightness difference;
- determining a difference between a maximum brightness value of the fourth image and the fourth brightness value as a fourth brightness difference;
- determining the larger of the third brightness difference and the fourth brightness difference as a second target brightness difference;
- and
- calculating the second conversion coefficient according to the second target brightness value, the second target brightness difference, the third brightness difference, and the third brightness value.
An image stitching method, comprising:
- receiving a first image and a second image;
- determining that both the first image and the second image include a target object;
- obtaining a first brightness value and a second brightness value, the first brightness value being a brightness value of the target object in the first image, and the second brightness value being a brightness value of the target object in the second image;
- adjusting a brightness value of the first image and a brightness value of the second image according to the first brightness value and the second brightness value, so as to obtain a first image to be stitched and a second image to be stitched, and the first image to be stitched having a same brightness range as the second image to be stitched;
- and
- stitching the first image to be stitched and the second image to be stitched to obtain a first stitched image;
- wherein adjusting the brightness value of the first image and the brightness value of the second image according to the first brightness value and the second brightness value, so as to obtain the first image to be stitched and the second image to be stitched includes:
- determining the larger of the first brightness value and the second brightness value as a target brightness value;
- determining a difference between a maximum brightness value of the first image and the first brightness value as a first brightness difference;
- determining a difference between a maximum brightness value of the second image and the second brightness value as a second brightness difference;
- determining the larger of the first brightness difference and the second brightness difference as a target brightness difference;
- adjusting brightness values of objects in the first image, according to the target brightness value, the target brightness difference, the first brightness difference, and the first brightness value, so as to obtain the first image to be stitched;
- and
- adjusting brightness values of objects in the second image, according to the target brightness value, the target brightness difference, the second brightness difference, and the second brightness value, so as to obtain the second image to be stitched.
Dependencies are inferred from the claim text.