Image white balance correction method and electronic device
AssigneeSamsung Electronics Co., Ltd.
InventorTsuyoshi Moriya
Life of this patent
Estimating the term…
Abstract
Provided is a method of correcting a white balance (WB) of an image includes obtaining a first image captured by photographing a subject when a flash emits light, and a second image captured by photographing the subject when the flash emits no light; obtaining a WB gain of the first image and a WB gain of the second image; obtaining a color balance (CB) of flash light, based on at least one of the obtained WB gains of the first and second images; and correcting a WB of the first image, based on the CB of the flash light.
Claims12
A method of correcting a white balance (WB) of an image, the method comprising:
- obtaining a first image captured by photographing a subject when a flash emits light, and a second image captured by photographing the subject when the flash emits no light;
- obtaining a WB gain of the first image and a WB gain of the second image;
- obtaining a color balance (CB) of flash light representing a strength of each color component of the flash by:
- obtaining a first luminance value corresponding to the first image and a second luminance value corresponding to the second image based on an exposure control value of each of the first image and the second image, wherein the exposure control value includes an aperture value, a shutter velocity, or sensor sensitivity;
- obtaining a first luminance difference corresponding to the first image and a second luminance difference corresponding to the second image based on color components of each of the first image and the second image;
- obtaining a first representative luminance value corresponding to the first image, based on a sum of the first luminance value and the first luminance difference;
- obtaining a second representative luminance value corresponding to the second image, based on a sum of the second luminance value and the second luminance difference;
- obtaining an influence of the flash light on the first image based on the first representative luminance value and the second representative luminance value;
- and
- obtaining the CB of the flash light, based on the influence of the flash light on the first image and the obtained WB gains of the first and second images;
- and
- correcting a WB of the first image, based on the CB of the flash light.
An electronic device comprising:
- an image obtainer configured to obtain a first image captured by photographing a subject when a flash emits light, and a second image captured by photographing the subject when the flash emits no light;
- a memory storing the first image and the second image;
- and
- at least one controller configured to
- obtain a white balance (WB) gain of the first image and a WB gain of the second image;
- obtain a color balance (CB) of flash light representing a strength of each color component of the flash by:
- obtaining a first luminance value corresponding to the first image and a second luminance value corresponding to the second image based on an exposure control value of each of the first image and the second image, wherein the exposure control value includes an aperture value, a shutter velocity, or sensor sensitivity;
- obtaining a first luminance difference corresponding to the first image and a second luminance difference corresponding to the second image based on color components of each of the first image and the second image;
- obtaining a first representative luminance value corresponding to the first image, based on a sum of the first luminance value and the first luminance difference;
- obtaining a second representative luminance value corresponding to the second image, based on a sum of the second luminance value and the second luminance difference;
- obtaining an influence of the flash light on the first image based on the first representative luminance value and the second representative luminance value;
- and
- obtaining the CB of the flash light, based on the influence of the flash light on the first image and the obtained WB gains of the first and second images;
- and
- correct a WB of the first image, based on the CB of the flash light.
Dependencies are inferred from the claim text.