WO2016184153A1 - 一种防偏色方法、终端及计算机存储介质 - Google Patents

一种防偏色方法、终端及计算机存储介质 Download PDF

Info

Publication number
WO2016184153A1
WO2016184153A1 PCT/CN2016/071214 CN2016071214W WO2016184153A1 WO 2016184153 A1 WO2016184153 A1 WO 2016184153A1 CN 2016071214 W CN2016071214 W CN 2016071214W WO 2016184153 A1 WO2016184153 A1 WO 2016184153A1
Authority
WO
WIPO (PCT)
Prior art keywords
value
preview image
color cast
cast type
type
Prior art date
Application number
PCT/CN2016/071214
Other languages
English (en)
French (fr)
Inventor
苏兴
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016184153A1 publication Critical patent/WO2016184153A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/64Circuits for processing colour signals
    • H04N9/73Colour balance circuits, e.g. white balance circuits or colour temperature control

Definitions

  • the present invention relates to the field of image processing, and in particular, to an anti-offset method, a terminal, and a computer storage medium.
  • AOB Automatic White Balance
  • Color temperature is defined by Kelvin through the ideal source of blackbody, different colors of light at different temperatures.
  • the black body is an idealized concept. It refers to an object that emits light but absorbs any light from the outside and at the same time releases all the absorbed energy in the form of light.
  • the temperature unit of the black body is called Kelvin (K). From 3300K to 9300K, the color of the light is red, white and blue.
  • the terminal with shooting function When the terminal with shooting function is shipped from the factory, it will set the shooting according to a set of parameters that are debugged. In the case of large-volume delivery, due to the difference of the modules, a set of parameters cannot cover all the modules, and individual photo-taking will occur. Color problem. Or, when shooting various scenes, due to the problem of light or angle, the terminal may have a color cast problem in some scenes. After the camera AWB of the terminal is set, if the actual module or scene exceeds the debugging parameters, the color temperature of the actual scene is seriously deviated, and the captured picture is severely color cast, and the normal picture cannot be obtained. For example, the color temperature of the debugging of the terminal camera is 5600K.
  • the color reproduction will be accurate; if the color temperature of the scene is 3800K, the color shift phenomenon will occur, and the photo will be reddish; if the color temperature of the scene is 8000K , color shift phenomenon also occurs, and the photo is blue.
  • embodiments of the present invention are expected to provide an anti-offset method, a terminal, and a computer storage medium.
  • An anti-offset method comprising:
  • the process acquires a color cast type and a degree of color cast of the preview image
  • the AWB of the setting terminal is adjusted according to the color cast type of the preview image and the degree of color cast.
  • the detecting whether the preview image has a color cast includes:
  • the processing acquires the color cast type and the degree of color cast of the preview image, including:
  • the M and N are respectively the width and height of the preview image, in units of pixels;
  • the value is the a component value in the Lab histogram;
  • b is the value of the b component in the Lab histogram;
  • the K is a color cast factor;
  • the AWB of the setting terminal is adjusted according to the color cast type and the degree of color cast of the preview image, including:
  • the b/g value and the r/g value of the preview image are adjusted according to the color cast type and the degree of color cast of the preview image, including:
  • K is greater than the first threshold
  • the r/g value is lowered by the first step, and the b/g value is increased by the first step;
  • the preview image is color cast If the type is yellowish, the b/g value and the r/g value are both lowered by the first step; if the color cast type of the preview image is reddish, the r/g value is increased by the first step, b/g value Lowering the first step length; if the color cast type of the preview image is greenish, the b/g value and the r/g value are up-regulated by the first step;
  • the color cast type of the preview image is bluish, then the r/g value is lowered by the second step, and the b/g value is adjusted by the second step; the preview If the color cast type of the image is yellowish, the b/g value and the r/g value are both lowered by the second step; the color cast type of the preview image is reddish, and the r/g value is adjusted by the second step, b The /g value is lowered by the second step; the color cast type of the preview image is greenish, and the b/g value and the r/g value are up-regulated by a second step; wherein the first step length is greater than the second step length .
  • the total step size of adjusting the b/g value of the preview image does not exceed 0.15; and the total step size of adjusting the r/g value of the preview image does not exceed 0.15.
  • An anti-seismic terminal comprising:
  • a detecting unit configured to detect whether a preview image has a color cast
  • a processing unit configured to: when the detecting unit detects that the preview image has a color cast, process to acquire a color cast type and a degree of color cast of the preview image;
  • the adjusting unit is configured to adjust the AWB of the setting terminal according to the color cast type of the preview image acquired by the processing unit and the degree of color cast.
  • the detecting unit is configured to acquire an RGB histogram of the preview image, and determine the preview when detecting that the chromaticity distribution of the RGB histogram is a single peak and the chromatic average value is greater than 1.5.
  • the image has a color cast; otherwise, it is determined that the preview image does not have a color cast.
  • the processing unit is configured to process the preview image to obtain a Lab histogram of the preview image, and obtain a value and a b value of a pixel point of the i-th row and the j-th column in the preview image, according to the following
  • the formula calculates the d a , d b and K values:
  • M and N are respectively a width and a height of the preview image, in units of pixels; a value is a component value in the Lab histogram; b value is a b component value in the Lab histogram The K is a color cast factor;
  • the adjusting unit is configured to acquire a b/g value and an r/g value of the preview image; and adjust a b/g value of the preview image according to a color cast type and a degree of color cast of the preview image. And r/g value; set the AWB of the terminal according to the adjusted b/g value and r/g value.
  • the adjusting unit is configured to: when K is greater than the first threshold, if the color cast type of the preview image is bluish, the r/g value is lowered by the first step, and the b/g value is increased by the first Step size; if the color cast type of the preview image is yellowish, the b/g value and the r/g value are both lowered by the first step; if the color cast type of the preview image is reddish, r/g The value is increased by the first step, and the b/g value is lowered by the first step; if the color cast type of the preview image is greenish, the b/g value and the r/g value are increased by the first step;
  • the total step size of adjusting the b/g value of the preview image does not exceed 0.15; and the total step size of adjusting the r/g value of the preview image does not exceed 0.15.
  • a computer storage medium comprising a set of instructions that, when executed, cause at least one processor to perform the anti-offset method described above.
  • An embodiment of the present invention provides an anti-offset method, a terminal, and a computer storage medium, which first detects whether a preview image has a color cast; and when detecting that the preview image has a color cast, the process obtains a color cast type of the preview image. And the degree of color cast; then adjusting the AWB of the setting terminal according to the color cast type and the degree of color cast of the preview image, and correcting the picture with the color cast, so that the color shift phenomenon can be avoided, thereby obtaining a picture with normal color. .
  • FIG. 1 is a schematic flow chart of a method for preventing coloration according to Embodiment 1 of the present invention
  • Embodiment 3 is a RGB histogram of an image without color shift provided by Embodiment 1 of the present invention.
  • FIG. 4 is a structural block diagram of an anti-offset color terminal according to Embodiment 2 of the present invention.
  • the embodiment of the present invention provides an anti-offset method. As shown in FIG. 1 , the processing procedure of the method in this embodiment includes the following steps:
  • Step 101 Detect whether the preview image has a color cast.
  • the preview image of the image to be captured is displayed on the terminal first, and the terminal detects whether the preview image has a color cast.
  • the analysis of the RGB histogram of the normal image and the color cast image shows that if the chromaticity distribution of the image is unimodal, that is, the distribution is concentrated, and the average chromaticity is large, there is generally a color shift, and The larger the chromaticity average, the more severe the color shift (as shown in Figure 2, the RGB histogram of the image with color shift). However, if there are multiple peaks in the chromaticity distribution in the RGB histogram, and the dispersion is performed, the degree of image color shift will be greatly reduced, even without color shift (as shown in Fig. 3, the RGB histogram of the image without color shift). Therefore, in this embodiment, whether the color of the preview image exists is determined according to an RGB histogram of the preview image according to an RGB histogram of the preview image.
  • the terminal may obtain an RGB histogram of the preview image.
  • the chromaticity distribution of the RGB histogram is a single peak, and the chromatic average value is greater than 1.5, the pre-determination is performed.
  • the view image has a color cast; otherwise, it is determined that the preview image does not have a color cast.
  • Step 102 When it is detected that the preview image has a color cast, the process acquires a color cast type and a degree of color cast of the preview image.
  • the terminal When detecting that the preview image has a color cast, the terminal needs to adjust the AWB of the terminal to make the color image return to normal.
  • the terminal when the terminal adjusts the AWB, the preview image needs to be processed to obtain the preview image.
  • the color cast type and the degree of color cast and then adjust the AWB of the setting terminal according to the color cast type of the preview image and the degree of color cast.
  • the RGB color space is the simplest color space
  • the biggest limitation of the RGB color space is that when the Euclidean distance is used to describe the difference between the two colors, the calculated distance between the two colors cannot be Correctly characterize the true difference between the two colors that people actually perceive.
  • the distance between the colors calculated by the CIE Lab color space is basically the same as the actual perception.
  • the Lab histogram can objectively reflect the degree of color cast of the image. It is more reasonable to automatically detect the color cast image under CIE Lab. .
  • the Lab histogram includes three components: L, a, and b.
  • the L component is the luminance component
  • the a component and the b component are the chrominance components
  • the a component is the color from the dark green (bottom luminance value) to the gray color (medium luminance value).
  • the b component is the chromaticity value from bright blue (bottom luminance value) to gray (middle luminance value) to yellow (high luminance value).
  • Lab is converted from RGB. It needs to convert RGB into XYZ and then convert it into Lab, namely: RGB - XYZ - Lab.
  • the above gamma function is used to perform non-linear tone editing on the image in order to improve the image contrast.
  • the gamma function is not unique, and the above is only an example.
  • X n , Y n , Z n are generally 1 by default.
  • the concept of an equivalent circle is introduced, and the ratio of the image average chromaticity D to the chromaticity center distance M, that is, the color cast factor K, is used to identify the degree of color cast of the image. Its calculation method is as follows:
  • M and N are the width and height of the image, respectively, in pixels.
  • the center coordinates of the equivalent circle are (d a , d b ) and the radius is L.
  • the color cast type of the image Judging from the specific position of the equivalent circle on the ab chromaticity plane, the color cast type of the image as a whole: when d a >0, the color cast type of the preview image is reddish; when d a ⁇ 0, the preview The color cast type of the image is greenish; when d b >0, the color cast type of the preview image is yellowish, and when d b ⁇ 0, the color cast type of the preview image is bluish.
  • the specific implementation of the step includes: processing the preview image to obtain a Lab histogram of the preview image, and acquiring the a value and the b value of the pixel of the i-th row and the j-th column in the preview image, according to the above
  • the formula calculates the values of d a , d b and K.
  • the color cast factor K identifies the degree of color cast of the preview image, and the larger the K value, the more serious the color cast.
  • Step 103 Adjust the AWB of the setting terminal according to the color cast type and the degree of color cast of the preview image.
  • step 103 includes the following process:
  • Step 103a Obtain a b/g value and an r/g value of the preview image.
  • the terminal processes the preview image to obtain b/g (blue/green) values and r/g (red/green) values of the preview image.
  • Step 103b Adjust b/g value and r/g value of the preview image according to the color cast type and the degree of color cast of the preview image.
  • the terminal knows the color cast type and the degree of color cast of the preview image in step 102, so the terminal can greatly adjust the b/g value and the r/g value when the color cast is severe, and the color cast type The color is adjusted in the white direction; when the color cast is not very serious, the b/g value and the r/g value are adjusted slightly, and the color of the color cast type is adjusted to the white direction.
  • K is greater than the first threshold
  • the r/g value is lowered by the first step, and the b/g value is increased by the first step; If the color cast type of the preview image is yellowish, the b/g value and the r/g value are both lowered by the first step; if the color cast type of the preview image is reddish, the r/g value is increased.
  • the b/g value is lowered by the first step; if the color cast type of the preview image is greenish, the b/g value and the r/g value are increased by the first step;
  • K is greater than the second threshold and less than or equal to the first threshold, if the color cast type of the preview image is bluish, the r/g value is lowered by the second step, and the b/g value is adjusted by the second step; If The color cast type of the preview image is yellowish, and the b/g value and the r/g value are both lowered by the second step; if the color cast type of the preview image is reddish, the r/g value is adjusted upwards. Long, the b/g value is lowered by the second step; if the color cast type of the preview image is greenish, the b/g value and the r/g value are up-regulated by a second step; wherein the first step length is greater than The second step.
  • the first threshold may be 3, the second threshold may be 1.5; the first step is 0.05; and the second step is 0.03.
  • Step 103c Set the AWB of the terminal according to the adjusted b/g value and r/g value.
  • White balance literally understood is the balance of white.
  • White refers to the visual response formed by the light reflected into the human eye due to the same proportion of blue, green and red light and a certain brightness.
  • white light is composed of seven colors of red, orange, yellow, green, cyan, blue, and purple, and these seven colors are formed by mixing the three primary colors of red, green, and blue in different proportions.
  • the automatic white balance is usually the default configuration of the terminal.
  • the natural world is divided into various monochromatic lights.
  • the artificial standard light sources mainly have the following 10 types:
  • a kind of light corresponds to a set of b/g values and r/g values. All kinds of light in nature have these analog light sources combined.
  • Value of r/g The actual AWB value can be calculated; thus, the AWB of the terminal can be set according to the adjusted b/g value and r/g value in step 103b.
  • the terminal After the AWB of the terminal is set, the terminal performs step 101 to detect whether the preview image has a color cast. If there is still a color cast, the steps 102 and 103 are continued, so that steps 101-103 are performed cyclically until the image is detected to have no color cast.
  • the total step size of adjusting the b/g value of the preview image does not exceed 0.15; adjusting the preview The total step size of the r/g value of the image does not exceed 0.15.
  • the b/g value and the r/g value are adjusted to 0.05, and the color cast is still performed, and the first and third times are performed again.
  • each time adjusting the b/g value and the r/g value is 0.05; after the third adjustment is completed, adjusting the total step size of the b/g value of the preview image is 0.15; adjusting the r/g of the preview image The total step size of the value is also 0.15. If the preview image is still detected to have a color cast, the b/g value and the r/g value are not adjusted, and the adjustment ends.
  • An embodiment of the present invention provides an anti-offset color terminal.
  • the terminal includes: a detecting unit 401, a processing unit 402, and an adjusting unit 403, where
  • the detecting unit 401 is configured to detect whether the preview image has a color cast
  • the processing unit 402 is configured to, when the detecting unit 401 detects that the preview image has a color cast, process to acquire a color cast type and a degree of color cast of the preview image;
  • the adjusting unit 403 is configured to adjust the automatic white balance AWB of the setting terminal according to the color cast type and the degree of color cast of the preview image acquired by the processing unit 402.
  • the detecting unit 401 is specifically configured to acquire an RGB histogram of the preview image, and detect that the chromaticity distribution of the RGB histogram is a single peak, and the average chromaticity is greater than 1.5. Determining that the preview image has a color cast; otherwise, determining that the preview image does not have a color cast.
  • the processing unit 402 is configured to process the preview image to obtain a Lab histogram of the preview image, and obtain a value and a of the pixel of the i-th row and the j-th column in the preview image. Value, calculated by the following formula to obtain d a , d b and K values:
  • M and N are respectively a width and a height of the preview image, in units of pixels; a value is a component value in the Lab histogram; b value is a b component value in the Lab histogram The K is a color cast factor;
  • the adjusting unit 403 is specifically configured to acquire a b/g (blue/green) value and an r/g (red/green) value of the preview image; according to the color cast type of the preview image. And the degree of color cast adjusts the b/g value and the r/g value of the preview image; and sets the AWB of the terminal according to the adjusted b/g value and the r/g value.
  • the adjusting unit is specifically configured to: if the color cast type of the preview image is bluish, if the color cast type of the preview image is bluish, the r/g value is reduced by the first step, and the b/g value is adjusted by the first step. If the color cast type of the preview image is yellowish, the b/g value and the r/g value are both lowered by the first step; if the color cast type of the preview image is reddish, the r/g value is The first step is raised, and the b/g value is lowered by the first step; if the color cast type of the preview image is greenish, the b/g value and the r/g value are increased by the first step;
  • the total step size of adjusting the b/g value of the preview image does not exceed 0.15; the total step size of adjusting the r/g value of the preview image does not exceed 0.15.
  • the detecting unit 401, the processing unit 402, and the adjusting unit 403 described in this embodiment may be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor on a terminal having a shooting function.
  • CPU central processing unit
  • MPU microprocessor
  • DSP field programmable gate array
  • FPGA field programmable gate array
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
  • an embodiment of the present invention further provides a computer storage medium, the computer storage medium comprising a set of instructions, when executed, causing at least one processor to perform the above-described anti-offset method.

Abstract

本发明公开了一种防偏色方法,包括:检测预览图像是否存在偏色;在检测到所述预览图像存在偏色时,处理获取所述预览图像的偏色类型以及偏色程度;根据所述预览图像的偏色类型以及偏色程度调整设置终端的自动白平衡(AWB)。本发明同时还公开了一种防偏色终端及计算机存储介质。

Description

一种防偏色方法、终端及计算机存储介质 技术领域
本发明涉及图像处理领域,尤其涉及一种防偏色方法、终端及计算机存储介质。
背景技术
自动白平衡(AWB,Automatic White Balance)是指在图像处理过程中,对原本材质为白色的物体的图像进行色彩还原,通过去除外部光源色温的影响,使其在最终照片上的图像也呈现为与原来一致的白色。
色温是开尔文通过黑体(blackbody)这一理想光源,在不同温度下的不同颜色光线来定义的。黑体是一个理想化的概念,是指:能发光,但会吸收掉任何来自外部的光线,同时又会把吸收的所有能量以光的形式完全释放出来的一个物体。黑体的温度单位叫做开尔文(K),从3300K到9300K的温度变化情况下,它发光的颜色分别是红色,白色、蓝色。
具有拍摄功能的终端在出厂时,会按照调试好的一组参数来进行拍摄设置,在大批量发货时,由于模组的差异,一组参数覆盖不了所有的模组,会出现个别拍照偏色问题。或者,在拍摄各种场景时,由于光线或角度的问题,终端在有的场景下会出现偏色问题。终端的相机AWB设置好后,如果实际模组或场景超出了调试参数,严重偏离实际场景的色温,拍下的图片就是严重偏色,无法得到正常的图片。示例地,终端相机的调试好的色温为5600K,如果场景光的色温是5600K,那么色彩还原就会准确;如果现场色温是3800K,则会发生色偏现象,照片偏红色;如果现场色温是8000K,也会发生色偏现象,照片偏蓝色。
发明内容
有鉴于此,本发明实施例期望提供一种防偏色方法、终端及计算机存储介质。
为达到上述目的,本发明实施例的技术方案是这样实现的:
一种防偏色方法,所述方法包括:
检测预览图像是否存在偏色;
在检测到所述预览图像存在偏色时,处理获取所述预览图像的偏色类型以及偏色程度;
根据所述预览图像的偏色类型以及偏色程度调整设置终端的AWB。
上述方案中,所述检测预览图像是否存在偏色包括:
获取所述预览图像的RGB直方图,在所述RGB直方图的色度分布为单峰值,且色度平均值大于1.5时,确定所述预览图像存在偏色;否则,确定所述预览图像不存在偏色。
上述方案中,所述处理获取所述预览图像的偏色类型以及偏色程度,包括:
处理所述预览图像获得所述预览图像的Lab直方图,获取所述预览图像中第i行第j列的像素点的a值和b值,按照以下公式计算获得da,db以及K值:
Figure PCTCN2016071214-appb-000001
Figure PCTCN2016071214-appb-000002
K=D/L;
其中,所述M、N分别为所述预览图像的宽和高,以像素为单位;a 值为所述Lab直方图中的a分量值;b值为所述Lab直方图中的b分量值;所述K为偏色因子;
在da>0时,确定所述预览图像的偏色类型为偏红;在da<0时,确定所述预览图像的偏色类型为偏绿;在db>0时,确定所述预览图像的偏色类型为偏黄,在db<0时,确定所述预览图像的偏色类型为偏蓝;获取所述预览图像的偏色程度为K。
上述方案中,根据所述预览图像的偏色类型以及偏色程度调整设置终端的AWB,包括:
获取所述预览图像的b/g值和r/g值;
根据所述预览图像的偏色类型以及偏色程度调整所述预览图像的b/g值和r/g值;
根据调整后的b/g值、r/g值设置终端的AWB。
上述方案中,所述根据所述预览图像的偏色类型以及偏色程度调整所述预览图像的b/g值和r/g值,包括:
在K大于第一阈值时,如果所述预览图像的偏色类型为偏蓝,则r/g值下调第一步长,b/g值上调第一步长;如果所述预览图像的偏色类型为偏黄,则b/g值和r/g值都下调第一步长;如果所述预览图像的偏色类型为偏红,则r/g值上调第一步长,b/g值下调第一步长;如果所述预览图像的偏色类型为偏绿,则b/g值和r/g值上调第一步长;
在K大于第二阈值而小于等于第一阈值时,所述预览图像的偏色类型为偏蓝,则r/g值下调第二步长,b/g值上调第二步长;所述预览图像的偏色类型为偏黄,则b/g值和r/g值都下调第二步长;所述预览图像的偏色类型为偏红,则r/g值上调第二步长,b/g值下调第二步长;所述预览图像的偏色类型为偏绿,则b/g值和r/g值上调第二步长;其中,所述第一步长大于第二步长。
上述方案中,调整所述预览图像的b/g值的总步长不超过0.15;调整所述预览图像的r/g值的总步长不超过0.15。
一种防偏色终端,所述终端包括:
检测单元,配置为检测预览图像是否存在偏色;
处理单元,配置为在所述检测单元检测到所述预览图像存在偏色时,处理获取所述预览图像的偏色类型以及偏色程度;
调整单元,配置为根据所述处理单元获取的预览图像的偏色类型以及偏色程度调整设置终端的AWB。
上述方案中,所述检测单元,配置为获取所述预览图像的RGB直方图,在检测到所述RGB直方图的色度分布为单峰值,且色度平均值大于1.5时,确定所述预览图像存在偏色;否则,确定所述预览图像不存在偏色。
上述方案中,所述处理单元,配置为处理所述预览图像获得所述预览图像的Lab直方图,获取所述预览图像中第i行第j列的像素点的a值和b值,按照以下公式计算获得da,db以及K值:
Figure PCTCN2016071214-appb-000003
Figure PCTCN2016071214-appb-000004
K=D/L;
其中,所述M、N分别为所述预览图像的宽和高,以像素为单位;a值为所述Lab直方图中的a分量值;b值为所述Lab直方图中的b分量值;所述K为偏色因子;
在da>0时,确定所述预览图像的偏色类型为偏红;在da<0时,确定所述预览图像的偏色类型为偏绿;在db>0时,确定所述预览图像的偏色类型 为偏黄,在db<0时,确定所述预览图像的偏色类型为偏蓝;获取所述预览图像的偏色程度为K。
上述方案中,所述调整单元,配置为获取所述预览图像的b/g值和r/g值;根据所述预览图像的偏色类型以及偏色程度调整所述预览图像的b/g值和r/g值;根据调整后的b/g值、r/g值设置终端的AWB。
上述方案中,所述调整单元,配置为在K大于第一阈值时,若所述预览图像的偏色类型为偏蓝,则r/g值下调第一步长,b/g值上调第一步长;若所述预览图像的偏色类型为偏黄,则b/g值和r/g值都下调第一步长;若所述预览图像的偏色类型为偏红,则r/g值上调第一步长,b/g值下调第一步长;若所述预览图像的偏色类型为偏绿,则b/g值和r/g值上调第一步长;
在K大于第二阈值而小于等于第一阈值时,若所述预览图像的偏色类型为偏蓝,则r/g值下调第二步长,b/g值上调第二步长;若所述预览图像的偏色类型为偏黄,则b/g值和r/g值都下调第二步长;若所述预览图像的偏色类型为偏红,则r/g值上调第二步长,b/g值下调第二步长;若所述预览图像的偏色类型为偏绿,则b/g值和r/g值上调第二步长;其中,所述第一步长大于第二步长。
上述方案中,调整所述预览图像的b/g值的总步长不超过0.15;调整所述预览图像的r/g值的总步长不超过0.15。
一种计算机存储介质,所述计算机存储介质包括一组指令,当执行所述指令时,引起至少一个处理器执行上述的防偏色方法。
本发明实施例提供了一种防偏色方法、终端及计算机存储介质,先检测预览图像是否存在偏色;在检测到所述预览图像存在偏色时,处理获取所述预览图像的偏色类型以及偏色程度;然后根据所述预览图像的偏色类型以及偏色程度调整设置终端的AWB,将本该出现偏色的图片矫正,这样就可以避免出现色偏现象,从而获得颜色正常的图片。
附图说明
图1为本发明实施例1提供的一种防偏色方法的流程示意图;
图2为本发明实施例1提供的一种存在色偏的图像的RGB直方图;
图3为本发明实施例1提供的一种不存在色偏的图像的RGB直方图;
图4为本发明实施例2提供的一种防偏色终端的结构框图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。
实施例1
本发明实施例提供了一种防偏色方法,如图1所示,本实施例方法的处理流程包括以下步骤:
步骤101、检测预览图像是否存在偏色。
这里,实际应用时,当用户打开终端的拍摄功能进行拍照时,会先在终端上显示出要拍摄图像的预览图像,此时终端会检测该预览图像是否存在偏色。
对正常图像和偏色图像的RGB直方图进行分析发现,如果该图像的RGB直方图中,色度分布为单峰值即分布集中,且色度平均值较大时,一般都会存在色偏,而且色度平均值越大,色偏越严重(如图2所示为存在色偏的图像的RGB直方图)。然而,如果在RGB直方图中色度分布存在多峰值,而且分散时,图像色偏程度将大大减轻,甚至没有色偏(如图3所示为不存在色偏的图像的RGB直方图)。因此本实施例中,可以通过获取所述预览图像的RGB直方图,根据所述预览图像的RGB直方图判断所述预览图像是否存在偏色。
本实施例中,所述终端可以获取所述预览图像的RGB直方图,在所述RGB直方图的色度分布为单峰值,且色度平均值大于1.5时,确定所述预 览图像存在偏色;否则,确定所述预览图像不存在偏色。
当然,检测预览图像是否存在偏色还有其他多种方法,如灰平衡法、白平衡法等,在此不再一一赘述。
步骤102、在检测到所述预览图像存在偏色时,处理获取所述预览图像的偏色类型以及偏色程度。
终端在检测到所述预览图像存在偏色时,就需要调整终端的AWB使颜色图像回归正常,本实施例中,终端在调整AWB时需要先处理所述预览图像,以获取所述预览图像的偏色类型以及偏色程度,然后再根据所述预览图像的偏色类型以及偏色程度调整设置终端的AWB。
由于RGB颜色空间是最简单的一种颜色空间,但是RGB颜色空间最大的局限性在于当用欧氏距离来刻画两种颜色之间的差异时,所计算出的两种颜色之间的距离无法正确表征人们实际所感知到的这两种颜色之间的真实差异。而CIE Lab颜色空间所计算出来的颜色之间的距离与实际感知上的差别基本一致,Lab直方图可以客观的反映图像的偏色程度,在CIE Lab下进行偏色图像的自动检测更为合理。
Lab直方图中包括L、a、b三个分量,L分量为亮度分量,a分量和b分量为色度分量,a分量为颜色是从深绿色(底亮度值)到灰色(中亮度值)再到亮粉红色(高亮度值)的色度值,b分量为从亮蓝色(底亮度值)到灰色(中亮度值)再到黄色(高亮度值)的色度值。
Lab是由RGB转换来的,需要将RGB先转换成XYZ再转换成Lab,即:RGB——XYZ——Lab。
RGB转换成XYZ的过程如下:
假设r,g,b为像素三个通道,取值范围均为[0,255],则R,G,B的值如下:
Figure PCTCN2016071214-appb-000005
其中,
Figure PCTCN2016071214-appb-000006
将RGB转换成XYZ为:
Figure PCTCN2016071214-appb-000007
其中,
Figure PCTCN2016071214-appb-000008
上面的gamma函数,是用来对图像进行非线性色调编辑的,目的是提高图像对比度,本实施例中gamma函数不是唯一的,上述只是举例说明。
将XYZ转换成Lab为:
L=116f(Y/Yn)-16;a=500[f(X/Xn)-f(Y/Yn)];b=200[f(Y/Yn)-f(Z/Zn)];
其中,
Figure PCTCN2016071214-appb-000009
Xn,Yn,Zn一般默认都是1。
本实施例中引入等效圆的概念,采用图像平均色度D和色度中心距M的比值,即偏色因子K来标识图像的偏色程度。其计算方法如下式:
Figure PCTCN2016071214-appb-000010
Figure PCTCN2016071214-appb-000011
K=D/L;
式中M、N分别为图像的宽和高,以像素为单位。在a-b色度平面上,等效圆的中心坐标为(da,db),半径为L。等效圆的中心到a-b色度平面中性轴原点(a=0,b=0)的距离为D。由等效圆在a-b色度平面上的具体位置,来判断图像整体的偏色类型:da>0时,所述预览图像的偏色类型为偏 红;da<0时,所述预览图像的偏色类型为偏绿;db>0时,所述预览图像的偏色类型为偏黄,db<0时,所述预览图像的偏色类型为偏蓝。
换句话说,本步骤的具体实现包括:处理所述预览图像获得所述预览图像的Lab直方图,获取所述预览图像中第i行第j列的像素点的a值和b值,按照上述公式计算获得da,db以及K值。
偏色因子K标识所述预览图像的偏色程度,K值越大,偏色越严重。
步骤103、根据所述预览图像的偏色类型以及偏色程度调整设置终端的AWB。
在一实施例中,步骤103包括以下流程:
步骤103a、获取所述预览图像的b/g值和r/g值。
终端对所述预览图像进行处理可以获得所述预览图像的b/g(蓝/绿)值和r/g(红/绿)值。
步骤103b、根据所述预览图像的偏色类型以及偏色程度调整所述预览图像的b/g值和r/g值。
终端在步骤102中已知晓所述预览图像的偏色类型以及偏色程度,故所述终端可以在偏色很严重时,大幅度地调整b/g值和r/g值,将偏色类型的颜色向白色方向调整;在偏色不是很严重时,小幅度地调整b/g值和r/g值,将偏色类型的颜色向白色方向调整。
在一实施例中,在K大于第一阈值的条件下,如果所述预览图像的偏色类型为偏蓝,则r/g值下调第一步长,b/g值上调第一步长;如果所述预览图像的偏色类型为偏黄,则b/g值和r/g值都下调第一步长;如果所述预览图像的偏色类型为偏红,则r/g值上调第一步长,b/g值下调第一步长;如果所述预览图像的偏色类型为偏绿,则b/g值和r/g值上调第一步长;
在K大于第二阈值而小于等于第一阈值的条件下,如果所述预览图像的偏色类型为偏蓝,则r/g值下调第二步长,b/g值上调第二步长;如果所 述预览图像的偏色类型为偏黄,则b/g值和r/g值都下调第二步长;如果所述预览图像的偏色类型为偏红,则r/g值上调第二步长,b/g值下调第二步长;如果所述预览图像的偏色类型为偏绿,则b/g值和r/g值上调第二步长;其中,所述第一步长大于第二步长。
示例地,第一阈值可以为3,第二阈值可以为1.5;所述第一步长为0.05;所述第二步长为0.03。
步骤103c、根据调整后的b/g值、r/g值设置终端的AWB。
白平衡,字面上的理解是白色的平衡。白色是指反射到人眼中的光线由于蓝、绿、红三种色光比例相同且具有一定的亮度所形成的视觉反应。我们都知道白色光是由赤、橙、黄、绿、青、蓝、紫七种色光组成的,而这七种色光又是由红、绿、蓝三原色按不同比例混合形成。
自动白平衡通常为终端的默认配置,为了调试AWB,把自然界分成各种单色光,目前人造的标准光源主要有如下10种类型:
模拟蓝天日光——D65光源色温:6500K
模拟北方平均太阳光——D75光源色温:7500K
模拟太阳光——D50光源色温:5000K
模拟欧洲商店灯光——TL84光源色温:4000K
模拟美国商店灯光——CWF光源色温:4100K
模拟另一种美国商店灯光——U30光源色温:3000K
模拟指定的商店灯光——U35光源色温:3500K
模拟家庭酒店暖色灯光——F灯色温:2700K
模拟展示厅射灯——Inca灯色温:2856K
模拟水平日光——Horizon色温:2300K
理论上,一种光对应一组b/g值和r/g值,自然界的各种光都有这些模拟光源组合而成,根据实际自然界的场景色温和各种单色光的b/g,r/g的值 可以算出实际的AWB值;这样根据步骤103b调整后的b/g值、r/g值就可以设置终端的AWB。
设置完成终端的AWB后,终端进行步骤101检测预览图像是否出现偏色,若还存在偏色则继续进行步骤102和103,这样循环进行步骤101-103,直到检测到图片不出现偏色。
在这里需要说明的是,对于一副预览图像,实际应用时,在循环进行步骤101-103的过程中,调整所述预览图像的b/g值的总步长不超过0.15;调整所述预览图像的r/g值的总步长不超过0.15。示例的,对于一副预览图像,在第一次进行步骤101-103时,调整b/g值和r/g值为0.05,此时仍然进行偏色,又进行了第一次和第三次调整,每次调整b/g值和r/g值为0.05;第三次调整完成后,调整所述预览图像的b/g值的总步长为0.15;调整所述预览图像的r/g值的总步长也为0.15,若此时仍检测到预览图像存在偏色,则不再调整b/g值和r/g值,调整结束。
实施例2
本发明实施例提供了一种防偏色终端,如图4所示,所述终端包括:检测单元401、处理单元402、调整单元403,其中,
检测单元401,配置为检测预览图像是否存在偏色;
处理单元402,配置为在所述检测单元401检测到所述预览图像存在偏色时,处理获取所述预览图像的偏色类型以及偏色程度;
调整单元403,配置为根据所述处理单元402获取的预览图像的偏色类型以及偏色程度调整设置终端的自动白平衡AWB。
这里,在一实施例中,所述检测单元401,具体配置为获取所述预览图像的RGB直方图,在检测到所述RGB直方图的色度分布为单峰值,且色度平均值大于1.5时,确定所述预览图像存在偏色;否则,确定所述预览图像不存在偏色。
在一实施例中,所述处理单元402,具体配置为处理所述预览图像获得所述预览图像的Lab直方图,获取所述预览图像中第i行第j列的像素点的a值和b值,按照以下公式计算获得da,db以及K值:
Figure PCTCN2016071214-appb-000012
Figure PCTCN2016071214-appb-000013
K=D/L;
其中,所述M、N分别为所述预览图像的宽和高,以像素为单位;a值为所述Lab直方图中的a分量值;b值为所述Lab直方图中的b分量值;所述K为偏色因子;
在da>0时,确定所述预览图像的偏色类型为偏红;在da<0时,确定所述预览图像的偏色类型为偏绿;在db>0时,确定所述预览图像的偏色类型为偏黄,在db<0时,确定所述预览图像的偏色类型为偏蓝;获取所述预览图像的偏色程度为K。
在一实施例中,所述调整单元403,具体配置为获取所述预览图像的b/g(蓝/绿)值和r/g(红/绿)值;根据所述预览图像的偏色类型以及偏色程度调整所述预览图像的b/g值和r/g值;根据调整后的b/g值、r/g值设置终端的AWB。
所述调整单元,具体配置为在K大于第一阈值的条件下,若所述预览图像的偏色类型为偏蓝,则r/g值下调第一步长,b/g值上调第一步长;若所述预览图像的偏色类型为偏黄,则b/g值和r/g值都下调第一步长;若所述预览图像的偏色类型为偏红,则r/g值上调第一步长,b/g值下调第一步长;若所述预览图像的偏色类型为偏绿,则b/g值和r/g值上调第一步长;
在K大于第二阈值而小于等于第一阈值时,若所述预览图像的偏色类型为偏蓝,则r/g值下调第二步长,b/g值上调第二步长;若所述预览图像的偏色类型为偏黄,则b/g值和r/g值都下调第二步长;若所述预览图像的偏色类型为偏红,则r/g值上调第二步长,b/g值下调第二步长;若所述预览图像的偏色类型为偏绿,则b/g值和r/g值上调第二步长;其中,所述第一步长大于第二步长。
需要说明的是,实际应用时,调整所述预览图像的b/g值的总步长不超过0.15;调整所述预览图像的r/g值的总步长不超过0.15。
在实际应用中,本实施例中所述的检测单元401、处理单元402和调整单元403可以由具有拍摄功能的终端上的中央处理器(CPU)、微处理器(MPU)、数字信号处理器(DSP)或现场可编程门阵列(FPGA)等器件实现。
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
基于此,本发明实施例还提供了一种计算机存储介质,所述计算机存储介质包括一组指令,当执行所述指令时,引起至少一个处理器执行上述的防偏色方法。
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。

Claims (13)

  1. 一种防偏色方法,所述方法包括:
    检测预览图像是否存在偏色;
    在检测到所述预览图像存在偏色时,处理获取所述预览图像的偏色类型以及偏色程度;
    根据所述预览图像的偏色类型以及偏色程度调整设置终端的自动白平衡AWB。
  2. 根据权利要求1所述的方法,其中,所述检测预览图像是否存在偏色包括:
    获取所述预览图像的RGB直方图,在所述RGB直方图的色度分布为单峰值,且色度平均值大于1.5时,确定所述预览图像存在偏色。
  3. 根据权利要求1所述的方法,其中,所述处理获取所述预览图像的偏色类型以及偏色程度,包括:
    处理所述预览图像获得所述预览图像的Lab直方图,获取所述预览图像中第i行第j列的像素点的a值和b值,按照以下公式计算获得da,db以及K值:
    Figure PCTCN2016071214-appb-100001
    Figure PCTCN2016071214-appb-100002
    K=D/L;
    其中,所述M、N分别为所述预览图像的宽和高,以像素为单位;a值为所述Lab直方图中的a分量值;b值为所述Lab直方图中的b分量值;所述K为偏色因子;
    在da>0时,确定所述预览图像的偏色类型为偏红;在da<0时,确定所述预览图像的偏色类型为偏绿;在db>0时,确定所述预览图像的偏色类型为偏黄,在db<0时,确定所述预览图像的偏色类型为偏蓝;获取所述预览图像的偏色程度为K。
  4. 根据权利要求3所述的方法,其中,根据所述预览图像的偏色类型以及偏色程度调整设置终端的AWB,包括:
    获取所述预览图像的b/g值和r/g值;
    根据所述预览图像的偏色类型以及偏色程度调整所述预览图像的b/g值和r/g值;
    根据调整后的b/g值、r/g值设置终端的AWB。
  5. 根据权利要求4所述的方法,其中,所述根据所述预览图像的偏色类型以及偏色程度调整所述预览图像的b/g值和r/g值,包括:
    在K大于第一阈值时,如果所述预览图像的偏色类型为偏蓝,则r/g值下调第一步长,b/g值上调第一步长;如果所述预览图像的偏色类型为偏黄,则b/g值和r/g值都下调第一步长;如果所述预览图像的偏色类型为偏红,则r/g值上调第一步长,b/g值下调第一步长;如果所述预览图像的偏色类型为偏绿,则b/g值和r/g值上调第一步长;
    在K大于第二阈值而小于等于第一阈值时,如果所述预览图像的偏色类型为偏蓝,则r/g值下调第二步长,b/g值上调第二步长;如果所述预览图像的偏色类型为偏黄,则b/g值和r/g值都下调第二步长;如果所述预览图像的偏色类型为偏红,则r/g值上调第二步长,b/g值下调第二步长;如果所述预览图像的偏色类型为偏绿,则b/g值和r/g值上调第二步长;其中,所述第一步长大于第二步长。
  6. 根据权利要求4或5所述的方法,其中,调整所述预览图像的b/g值的总步长不超过0.15;调整所述预览图像的r/g值的总步长不超过0.15。
  7. 一种防偏色终端,所述终端包括:
    检测单元,配置为检测预览图像是否存在偏色;
    处理单元,配置为在所述检测单元检测到所述预览图像存在偏色时,处理获取所述预览图像的偏色类型以及偏色程度;
    调整单元,配置为根据所述处理单元获取的预览图像的偏色类型以及偏色程度调整设置终端的自动白平衡AWB。
  8. 根据权利要求7所述的终端,其中,
    所述检测单元,配置为获取所述预览图像的RGB直方图,在检测到所述RGB直方图的色度分布为单峰值,且色度平均值大于1.5时,确定所述预览图像存在偏色。
  9. 根据权利要求7所述的终端,其中,
    所述处理单元,配置为处理所述预览图像获得所述预览图像的Lab直方图,获取所述预览图像中第i行第j列的像素点的a值和b值,按照以下公式计算获得da,db以及K值:
    Figure PCTCN2016071214-appb-100003
    Figure PCTCN2016071214-appb-100004
    K=D/L;
    其中,所述M、N分别为所述预览图像的宽和高,以像素为单位;a值为所述Lab直方图中的a分量值;b值为所述Lab直方图中的b分量值;所述K为偏色因子;
    在da>0时,确定所述预览图像的偏色类型为偏红;在da<0时,确定所述预览图像的偏色类型为偏绿;在db>0时,确定所述预览图像的偏色类型 为偏黄,在db<0时,确定所述预览图像的偏色类型为偏蓝;获取所述预览图像的偏色程度为K。
  10. 根据权利要求9所述的终端,其中,
    所述调整单元,配置为获取所述预览图像的b/g值和r/g值;根据所述预览图像的偏色类型以及偏色程度调整所述预览图像的b/g值和r/g值;根据调整后的b/g值、r/g值设置终端的AWB。
  11. 根据权利要求10所述的终端,其中,
    所述调整单元,配置为在K大于第一阈值时,若所述预览图像的偏色类型为偏蓝,则r/g值下调第一步长,b/g值上调第一步长;若所述预览图像的偏色类型为偏黄,则b/g值和r/g值都下调第一步长;若所述预览图像的偏色类型为偏红,则r/g值上调第一步长,b/g值下调第一步长;若所述预览图像的偏色类型为偏绿,则b/g值和r/g值上调第一步长;
    在K大于第二阈值而小于等于第一阈值时,若所述预览图像的偏色类型为偏蓝,则r/g值下调第二步长,b/g值上调第二步长;若所述预览图像的偏色类型为偏黄,则b/g值和r/g值都下调第二步长;若所述预览图像的偏色类型为偏红,则r/g值上调第二步长,b/g值下调第二步长;若所述预览图像的偏色类型为偏绿,则b/g值和r/g值上调第二步长;其中,所述第一步长大于第二步长。
  12. 根据权利要求10或11所述的终端,其中,调整所述预览图像的b/g值的总步长不超过0.15;调整所述预览图像的r/g值的总步长不超过0.15。
  13. 一种计算机存储介质,所述计算机存储介质包括一组指令,当执行所述指令时,引起至少一个处理器执行如权利要求1至6任一项所述的防偏色方法。
PCT/CN2016/071214 2015-10-13 2016-01-18 一种防偏色方法、终端及计算机存储介质 WO2016184153A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510657414.6 2015-10-13
CN201510657414.6A CN106572343A (zh) 2015-10-13 2015-10-13 一种防偏色方法及终端

Publications (1)

Publication Number Publication Date
WO2016184153A1 true WO2016184153A1 (zh) 2016-11-24

Family

ID=57319401

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/071214 WO2016184153A1 (zh) 2015-10-13 2016-01-18 一种防偏色方法、终端及计算机存储介质

Country Status (2)

Country Link
CN (1) CN106572343A (zh)
WO (1) WO2016184153A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111402189A (zh) * 2018-12-28 2020-07-10 山东华软金盾软件股份有限公司 一种视频图像偏色检测装置及方法

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108737797B (zh) * 2018-08-17 2020-03-27 Oppo广东移动通信有限公司 白平衡处理方法、装置和电子设备
CN110996173B (zh) * 2019-12-18 2021-11-05 腾讯科技(深圳)有限公司 一种图像数据处理方法、装置及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103020996A (zh) * 2012-12-28 2013-04-03 昆山市工业技术研究院有限责任公司 基于Lab空间的图像偏色的检测方法
CN103037224A (zh) * 2012-12-07 2013-04-10 珠海全志科技股份有限公司 图像白平衡处理方法及装置
CN103200349A (zh) * 2013-04-08 2013-07-10 武汉大学 一种扫描图像色偏自动检测方法
CN104853172A (zh) * 2014-02-19 2015-08-19 联想(北京)有限公司 一种信息处理方法以及一种电子设备

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5178170B2 (ja) * 2007-12-11 2013-04-10 オリンパス株式会社 ホワイトバランス調整装置及びホワイトバランス調整方法
CN103067734B (zh) * 2012-12-12 2014-10-08 成都三泰电子实业股份有限公司 视频质量诊断系统检测视频图像偏色的方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103037224A (zh) * 2012-12-07 2013-04-10 珠海全志科技股份有限公司 图像白平衡处理方法及装置
CN103020996A (zh) * 2012-12-28 2013-04-03 昆山市工业技术研究院有限责任公司 基于Lab空间的图像偏色的检测方法
CN103200349A (zh) * 2013-04-08 2013-07-10 武汉大学 一种扫描图像色偏自动检测方法
CN104853172A (zh) * 2014-02-19 2015-08-19 联想(北京)有限公司 一种信息处理方法以及一种电子设备

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111402189A (zh) * 2018-12-28 2020-07-10 山东华软金盾软件股份有限公司 一种视频图像偏色检测装置及方法
CN111402189B (zh) * 2018-12-28 2023-10-31 山东华软金盾软件股份有限公司 一种视频图像偏色检测装置及方法

Also Published As

Publication number Publication date
CN106572343A (zh) 2017-04-19

Similar Documents

Publication Publication Date Title
CN104796683B (zh) 一种校准图像色彩的方法和系统
CN107197225B (zh) 基于色适应模型的彩色数码相机白平衡校正方法
US11277595B2 (en) White balance method for image and terminal device
KR100441595B1 (ko) 색온도 변환장치 및 방법
Zapryanov et al. Automatic White Balance Algorithms forDigital StillCameras–a Comparative Study
CN105898263B (zh) 一种图像白平衡方法、装置和计算设备
JP2009183010A (ja) 撮像装置、撮像装置のホワイトバランス処理方法、プログラム、及び記録媒体
CN114746728A (zh) 环境光源分类
CN108234971A (zh) 白平衡参数确定方法、白平衡调整方法及装置、存储介质、终端
WO2016184153A1 (zh) 一种防偏色方法、终端及计算机存储介质
Wang et al. Fast automatic white balancing method by color histogram stretching
CN104320641A (zh) 电子照相机的自动白平衡的自动化自我训练的装置及方法
CN101088297A (zh) 自动白平衡控制
WO2016184167A1 (zh) 一种实现自动白平衡功能的方法和装置
US9030575B2 (en) Transformations and white point constraint solutions for a novel chromaticity space
CN105227942B (zh) 一种投影机色温设置方法及色温设置系统
US9036030B2 (en) Color calibration of an image capture device in a way that is adaptive to the scene to be captured
US20150085162A1 (en) Perceptual radiometric compensation system adaptable to a projector-camera system
Zhang et al. Research on the color temperature & white balance for multimedia sensor
CN106061014B (zh) 线性色温数据库构建方法、色温调节方法及装置、led灯具
JP4430656B2 (ja) デジタル影像キャプチャ装置及びホワイトバランス調整方法
US20200228769A1 (en) Lens rolloff assisted auto white balance
CN105872499A (zh) 一种基于rgb传感器的绿区判断方法
JP3835517B2 (ja) ホワイトバランス制御装置及びホワイトバランス制御方法
US20080079749A1 (en) White balance method for image processing

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16795640

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16795640

Country of ref document: EP

Kind code of ref document: A1