CN103327345A - White balance processing method and processing device thereof - Google Patents

White balance processing method and processing device thereof Download PDF

Info

Publication number
CN103327345A
CN103327345A CN2012100729686A CN201210072968A CN103327345A CN 103327345 A CN103327345 A CN 103327345A CN 2012100729686 A CN2012100729686 A CN 2012100729686A CN 201210072968 A CN201210072968 A CN 201210072968A CN 103327345 A CN103327345 A CN 103327345A
Authority
CN
China
Prior art keywords
image
block
cutting apart
input image
weight
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN2012100729686A
Other languages
Chinese (zh)
Other versions
CN103327345B (en
Inventor
彭诗渊
王馨德
周宏隆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Altek Corp
Original Assignee
Altek Corp
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 Altek Corp filed Critical Altek Corp
Priority to CN201210072968.6A priority Critical patent/CN103327345B/en
Publication of CN103327345A publication Critical patent/CN103327345A/en
Application granted granted Critical
Publication of CN103327345B publication Critical patent/CN103327345B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Color Television Image Signal Generators (AREA)
  • Processing Of Color Television Signals (AREA)

Abstract

The invention provides a white balance processing method and a processing device thereof, comprising the following steps: after an input image is divided into a plurality of divided block images, a white point identification is carried out on each divided block image to generate a white point identification result. Then, according to the position of each of the divided block images in the input image and the continuity of the plurality of divided block images around the input image, a weight of the white point identification result corresponding to each of the divided block images is determined. And calculating a white balance estimated value of the input image according to the white point identification results and the weights of the segmented block images, and performing white balance processing on the input image according to the white point estimation value. The invention carries out white balance processing by adding the weight analysis of the input image light source types, the positions of the segmentation block images and the continuity calculation of the segmentation block images and the surrounding segmentation blocks, and can accurately obtain the color of the input image on the premise of highlighting the color of a specific scene.

Description

白平衡处理方法及其处理装置White balance processing method and processing device thereof

技术领域 technical field

本发明有关一种白平衡处理方法及其处理装置,特别是涉及一种将影像分割为多个分割区块,就各分割区块的影像数据个别分析,以达成减少对于影像场景中白点误判情形的白平衡处理方法及其处理装置。The present invention relates to a white balance processing method and a processing device thereof, in particular to a method for dividing an image into a plurality of divided blocks, and analyzing the image data of each divided block individually, so as to reduce white point errors in the image scene. A white balance processing method and processing device for judging situations.

背景技术 Background technique

随着数码相机的相继推出,影像感测器如电荷耦合组件(Charge-coupleddevice,CCD)或互补式金属氧化半导体感测器(CMOS sensor)的地位也日益重要,因为影像感测器无法辨别外界环境光的颜色,故数码相机通常须进行白平衡处理。With the successive introduction of digital cameras, image sensors such as charge-coupled devices (Charge-coupled devices, CCD) or complementary metal-oxide-semiconductor sensors (CMOS sensors) are increasingly important, because image sensors cannot distinguish The color of ambient light, so digital cameras usually need to perform white balance processing.

一般而言,物体反射出光彩颜色视光源色彩而定,人脑可侦测并更正这样的色彩变化,故不论在阳光下、阴霾气候、室内灼光或荧光,人们所看到的白色物体依旧;但因感测装置无法辨别外界环境光的颜色,感测装置所看到的白色物体在不同光源下颜色为不同,有些偏黄或红色,有些偏蓝色。为了贴近人类视觉,数码相机须根据光源来调整色彩,使最终影像能呈现人眼所看到的白色,此调整即称为白平衡。Generally speaking, the color of the light reflected by an object depends on the color of the light source. The human brain can detect and correct such color changes. Therefore, no matter in sunlight, hazy weather, indoor lighting or fluorescent light, the white objects people see are still the same. ; But because the sensing device cannot distinguish the color of the external ambient light, the white objects seen by the sensing device have different colors under different light sources, some are yellowish or red, and some are blue. In order to be close to human vision, digital cameras must adjust the color according to the light source, so that the final image can present the white color seen by human eyes. This adjustment is called white balance.

在传统白平衡技术中,面对具有蓝天背景的构图,因将所有输入影像纳入白平衡统计范围中,使大片高色温的蓝色影像数据被用于白平衡统计分析数据,使影像进行修正白平衡修正后,修正后的影像会呈现较原输入影像偏低色温的颜色。In the traditional white balance technology, facing a composition with a blue sky background, because all input images are included in the white balance statistical range, a large area of blue image data with high color temperature is used for white balance statistical analysis data, so that the image can be corrected. After balance correction, the corrected image will have a lower color temperature than the original input image.

故已知技术有提出将输入影像切割为多框后,就各分割框中影像数据进行白点鉴定,并就位于输入影像位置上方的影像数据,对高色温像点的白点侦测范围予以较高的限制,将高色温像素排除纳入白点侦测的统计分析,避免在进行白平衡时,对于有大片蓝天的场景发生误判,这样的白平衡结果,能够呈现出使用者希望突出显色的蓝色。Therefore, the known technology proposes to divide the input image into multiple frames, then conduct white point identification on the image data in each segmented frame, and evaluate the white point detection range of high color temperature pixels for the image data located above the position of the input image. Higher limit, exclude high color temperature pixels into the statistical analysis of white point detection, to avoid misjudgment of scenes with large blue sky when performing white balance, such white balance results can show the user's desire to highlight colored blue.

但是,因现有技术的分割影像白平衡分析修正方法,仅强调依据分割区块位置的上下关系,并以色温值高低作为进行白点侦测范围的限制,却忽略了对整体构图内容及影像光源作进一步分析,即当影像上方区块多为高色温影像时,仍须依据各分割区块影像的连续性,精确判断当时场景是否为户外蓝天场景,以避免在输入影像中有多个高色温物体位于影像上方时,发生对分割区块的影像内容造成误判,而使白平衡修正结果产生偏差。However, the white balance analysis and correction method of the segmented image in the prior art only emphasizes the up-down relationship based on the position of the segmented block, and uses the color temperature value as the limit of the white point detection range, but ignores the overall composition content and image For further analysis of the light source, that is, when the upper block of the image is mostly a high color temperature image, it is still necessary to accurately judge whether the scene is an outdoor blue sky scene based on the continuity of the images of each segmented block, so as to avoid multiple high color temperature images in the input image. When the color temperature object is located above the image, misjudgment of the image content of the segmented block occurs, which leads to a deviation in the white balance correction result.

此外,前案因是依据各分割区块的位置,限制所述分割范围内影像数据白点侦测范围,若于所述分割区块中无白点信息可做白点鉴定的特殊情况,也会对白平衡修正结果产生偏差。In addition, the reason for the previous case is to limit the white point detection range of the image data within the segmented range based on the position of each segmented block. If there is no white point information in the segmented block for white point identification, it is also It will cause deviation to the white balance correction result.

有鉴于此,本发明针对上述问题,提出一种将撷取影像分割为多框后,针对各框影像数据内容、光源、位置进行分析后进行白平衡处理方法,以有效克服现有白平衡技术的缺失。In view of this, the present invention addresses the above problems, and proposes a white balance processing method after dividing the captured image into multiple frames, analyzing the image data content, light source, and position of each frame, so as to effectively overcome the existing white balance technology. missing.

发明内容 Contents of the invention

为了解决现有的白平衡技术中,忽略了对整体构图内容及影像光源做进一步分析,未分析各分割区块影像的连续性,精确判断当时场景内容,易对分割区块的影像内容误判,而使白平衡修正结果产生偏差的问题,本发明的目的提供一种白平衡处理方法及装置。In order to solve the existing white balance technology, further analysis of the overall composition content and image light source is ignored, and the continuity of the images of each segmented block is not analyzed, so as to accurately judge the scene content at the time, and it is easy to misjudge the image content of the segmented blocks , and make the white balance correction result deviate, the object of the present invention is to provide a white balance processing method and device.

为实现上述目的,本发明采用以下技术方案:To achieve the above object, the present invention adopts the following technical solutions:

一种白平衡处理方法,此方法包含下列步骤:撷取一输入影像,将输入影像分割为多个分割区块影像,接着对每一分割区块影像做一白点鉴定,以产生每一分割区块影像的一白点鉴定结果。接着,依据每一分割区块影像在输入影像中的位置,以及与其周围多个分割区块影像的连续性,决定对应每一分割区块影像的白点鉴定结果的权重。后以所述些分割区块影像的白点鉴定结果及权重,计算出输入影像的一白平衡估算值。A white balance processing method, the method includes the following steps: capturing an input image, dividing the input image into a plurality of segmented block images, and then performing a white point identification on each segmented block image to generate each segmented image A white point identification result of the block image. Then, according to the position of each segmented block image in the input image and the continuity with multiple segmented block images around it, the weight of the white point identification result corresponding to each segmented block image is determined. Afterwards, an estimated white balance value of the input image is calculated based on the white point identification results and weights of the divided block images.

其中,前述的连续性为每一分割区块影像与其周围的多个分割区块影像间的色温差值符合一预设值。Wherein, the aforesaid continuity means that the color temperature difference between each divided block image and multiple surrounding divided block images conforms to a preset value.

其中,前述的决定权重步骤包括:依据输入影像一亮度值动态决定输入影像的一第一光源种类权重;判断各分割区块影像的位置在输入影像的上方、中央或下方;判断各区块影像与其周围区块影像的色温差值是否符合一预设值,以决定一连续性判断结果;依据第一光源种类权重、各分割区块影像的位置、以及各区块影像的连续性判断结果,决定输入影像的一第二光源种类权重,其中第二光源种类权重包括多个室外光源种类权重及多个室内光源种类权重;以及依据各分割区块影像的位置、各所述分割区块影像的连续性判断结果及第二光源种类权重,决定各分割区块影像白点鉴定结果的权重。Wherein, the aforementioned step of determining the weight includes: dynamically determining the weight of a first light source type of the input image according to a brightness value of the input image; Determine whether the color temperature difference of the surrounding block images meets a preset value to determine a continuity judgment result; determine the input according to the weight of the first light source type, the position of each divided block image, and the continuity judgment result of each block image A second light source type weight of the image, wherein the second light source type weight includes a plurality of outdoor light source type weights and a plurality of indoor light source type weights; and according to the position of each segment image, the continuity of each segment image The judgment result and the weight of the second light source type determine the weight of the white point identification result of each segmented block image.

其中的依据输入影像一亮度值动态决定输入影像的一第一光源种类权重,还包括:以输入影像的亮度值及输入影像中与预先设定数据相符的多个色块,决定输入影像的一第一光源种类权重。The dynamically determining the weight of a first light source type of the input image according to a brightness value of the input image further includes: determining a weight of the input image based on the brightness value of the input image and a plurality of color blocks in the input image that match preset data. The weight of the first light source type.

本发明的白平衡处理方法,还包括:于每一分割区块影像中,依据分割区块的一影像特性,选择一个以上的白点鉴定区块,以一个以上的白点鉴定区块影像数据作白点鉴定。其中,影像特性为一中性色或一平坦区块。The white balance processing method of the present invention further includes: in each divided block image, according to an image characteristic of the divided block, selecting more than one white point identification block, and using more than one white point identification block image data For white spot identification. Wherein, the image characteristic is a neutral color or a flat block.

本发明的白平衡处理方法,还包括:依据输入影像决定一输入影像色温门槛值,若白平衡估算值超过输入影像色温门槛值,则依输入影像色温门槛值对白平衡估算值进行修正。若白平衡估算值未超过输入影像色温门槛值,则以白平衡估算值进行白平衡处理。The white balance processing method of the present invention further includes: determining an input image color temperature threshold value according to the input image, and correcting the white balance estimated value according to the input image color temperature threshold value if the estimated white balance value exceeds the input image color temperature threshold value. If the estimated white balance value does not exceed the threshold value of the color temperature of the input image, the estimated white balance value is used for white balance processing.

本发明的白平衡处理方法,还包括:若输入影像的第二光源种类权重的多个室外光源权重高于一预设比例。且位于输入影像上方的每一分割区块影像的色温高于一门槛值。分割区块影像与其周围多个分割区块影像色温值具连续性,其中,连续性为分割区块影像间的色温差值符合一预设值。则降低位于输入影像上方的至少一分割区块影像的白点鉴定结果的权重。The white balance processing method of the present invention further includes: if the weights of the plurality of outdoor light sources of the second light source type weight of the input image are higher than a preset ratio. In addition, the color temperature of each divided block image located above the input image is higher than a threshold value. The color temperature values of the segmented block image and the plurality of segmented block images around it have continuity, wherein the continuity means that the color temperature difference between the segmented block images conforms to a preset value. Then reduce the weight of the white point identification result of at least one segmented block image located above the input image.

本发明的白平衡处理方法,还包括:若输入影像的第二光源种类权重的多个室外光源权重低于一预设比例。且位于输入影像上方的每一分割区块影像的色温高于一门槛值。分割区块与其周围多个分割区块影像色温值具连续性,其中,连续性为分割区块影像间的色温差值符合一预设值。则不调整位于输入影像上方的至少一分割区块影像的白点鉴定结果的权重。The white balance processing method of the present invention further includes: if the weights of the plurality of outdoor light sources of the second light source type weight of the input image are lower than a preset ratio. In addition, the color temperature of each divided block image located above the input image is higher than a threshold value. The color temperature values of the segmented block and the images of the plurality of segmented blocks around it have continuity, wherein the continuity means that the color temperature difference between the images of the segmented block conforms to a preset value. Then the weight of the white point identification result of at least one segment image located above the input image is not adjusted.

本发明的白平衡处理方法,还包括:若输入影像中央的多个分割区块影像的色温低于一门槛值,且每一分割区块影像与其周围多个分割区块影像色温值具连续性,其中,连续性为分割区块影像间的色温差值符合一预设值。则降低位于输入影像中央的至少一分割区块影像的白点鉴定结果的权重。The white balance processing method of the present invention further includes: if the color temperature of the plurality of segmented block images in the center of the input image is lower than a threshold value, and the color temperature value of each segmented block image and the plurality of segmented block images around it is continuous , wherein, continuity means that the color temperature difference between the images of the divided blocks conforms to a preset value. Then reduce the weight of the white point identification result of at least one segmented block image located in the center of the input image.

本发明的白平衡处理方法,还包括:若输入影像的第二光源种类权重的多个室外光源权重高于一预设比例。输入影像上方的分割区块影像为一第一色温,且每一分割区块影像与其周围多个分割区块影像色温值具连续性,其中,连续性为分割区块影像间的色温差值符合一预设值。而输入影像下方的分割区块影像为一第二色温,且每一分割区块影像与其周围多个分割区块影像色温值具连续性,其中,连续性为分割区块间的色温差值符合一预设值。则不调整些分割区块影像的白点鉴定结果的权重。The white balance processing method of the present invention further includes: if the weights of the plurality of outdoor light sources of the second light source type weight of the input image are higher than a preset ratio. The segmented block image above the input image has a first color temperature, and each segmented block image has continuity with the color temperature values of multiple segmented block images around it, wherein the continuity is that the color temperature difference between the segmented block images conforms to a default value. The segmented image below the input image is a second color temperature, and the color temperature values of each segmented image and multiple segmented images around it are continuous, wherein the continuity is that the color temperature difference between the segmented blocks conforms to a default value. Then the weights of the white point identification results of some segmented block images are not adjusted.

对照现有技术的功效:本发明通过加入对输入影像光源种类权重分析、分割区块影像的位置及其与周围分割区块的连续性计算,以进行白平衡处理,在突显特定场景呈色的前提下,精确求得输入影像的呈色。Compared with the effect of the prior art: the present invention performs white balance processing by adding the weight analysis of the input image light source type, the position of the segmented block image and the continuity calculation with the surrounding segmented blocks, and highlights the color of a specific scene. Under the premise, the color rendering of the input image is accurately obtained.

本发明也提供一种白平衡处理装置,其包括:The present invention also provides a white balance processing device, which includes:

一影像撷取单元,用于撷取一输入影像。一分割单元,耦接于影像撷取单元,用于将输入影像分割为多个分割区块影像。一白点鉴定单元,耦接于分割单元,对每一分割区块影像做一白点鉴定,产生每一分割区块影像的一白点鉴定结果。一白点权重决定单元,耦接于白点鉴定单元,其可依据每一分割区块影像在输入影像的位置,以及与其周围多个分割区块影像的一连续性决定对应每一分割区块影像的白点鉴定结果的一权重。一计算单元,耦接于白点权重单元,以些分割区块影像的白点鉴定结果及权重,计算出对输入影像的一白平衡估算值。一白平衡处理单元,耦接于计算单元,用于以白平衡估算值对输入影像进行一白平衡处理。An image capturing unit is used for capturing an input image. A division unit, coupled to the image capture unit, is used to divide the input image into a plurality of divided block images. A white point identification unit, coupled to the segmentation unit, conducts a white point identification for each segmented block image, and generates a white point identification result for each segmented block image. A white point weight determination unit, coupled to the white point identification unit, which can determine each segmented block according to the position of each segmented block image in the input image and the continuity of multiple segmented block images around it A weight for the white point identification result of the image. A calculation unit, coupled to the white point weight unit, calculates an estimated value of white balance for the input image by using the white point identification results and weights of the divided block images. A white balance processing unit, coupled to the computing unit, is used for performing a white balance process on the input image by using a white balance estimated value.

本发明的白平衡处理装置,还包括:一白点选取单元,耦接于所述分割单元及所述白点鉴定单元,可用于在每一分割区块影像中,依据分割区块的一影像特性,决定一个以上的白点鉴定区块,以其影像数据作白点鉴定。其中,影像特性为一中性色或一平坦区块。The white balance processing device of the present invention further includes: a white point selection unit, coupled to the segmentation unit and the white point identification unit, which can be used in each segmented block image according to an image of the segmented block characteristics, determine more than one white point identification block, and use its image data for white point identification. Wherein, the image characteristic is a neutral color or a flat area.

本发明的白平衡处理装置,还包括:一修正单元,耦接于计算单元及白平衡处理单元,用于当白平衡估算值超过输入影像色温门槛值,可依输入影像色温门槛值对白平衡估算值进行修正;若白平衡估算值未超过输入影像色温门槛值,则以白平衡估算值进行白平衡处理。The white balance processing device of the present invention further includes: a correction unit, coupled to the calculation unit and the white balance processing unit, used for estimating the white balance according to the input image color temperature threshold when the white balance estimation value exceeds the input image color temperature threshold If the estimated value of white balance does not exceed the threshold value of the color temperature of the input image, the estimated value of white balance will be used for white balance processing.

其中,白点权重决定单元还包括:一光源种类权重计算单元,用于决定一第一光源种类权重。一位置决定单元,耦接于所述光源种类权重决定单元,用于决定分割区块影像在输入影像中的位置。一连续性决定单元,耦接于所述位置决定单元,用于决定每一分割区块影像与其周围的多个分割区块影像的色温差值是否符合一预设值,以决定分割区块与其周围的分割区块色温值的连续性。又光源种类权重决定单元可依据第一光源种类权重、各分割区块影像的位置、各区块影像与其周围区块影像的色温差值的连续性,决定输入影像的一第二光源种类权重。又白点权重决定单元可依据各分割区块影像的位置、各区块影像与其周围区块影像的色温差值的连续性、第二光源种类权重,决定各分割区块影像白点鉴定结果的权重。Wherein, the white point weight determination unit further includes: a light source type weight calculation unit for determining a first light source type weight. A position determination unit, coupled to the light source type weight determination unit, is used to determine the position of the segmented block image in the input image. A continuity determination unit, coupled to the position determination unit, is used to determine whether the color temperature difference between each divided block image and a plurality of surrounding divided block images conforms to a preset value, so as to determine whether the divided block and its surrounding Continuity of color temperature values around the segmented blocks. In addition, the light source type weight determining unit can determine a second light source type weight of the input image according to the first light source type weight, the position of each divided block image, and the continuity of the color temperature difference between each block image and its surrounding block images. In addition, the white point weight determination unit can determine the weight of the white point identification result of each divided block image according to the position of each divided block image, the continuity of the color temperature difference between each block image and its surrounding block images, and the weight of the second light source type. .

关于本发明的优点与精神可以通过以下的具体实施例及附图得到进一步的了解。The advantages and spirit of the present invention can be further understood through the following specific embodiments and accompanying drawings.

附图说明 Description of drawings

图1是本发明的白平衡处理方法的流程图;Fig. 1 is a flow chart of the white balance processing method of the present invention;

图2是本发明的色温门槛值修正机制流程图;Fig. 2 is a flow chart of the color temperature threshold correction mechanism of the present invention;

图3是本发明的白平衡处理装置的方块图;Fig. 3 is a block diagram of the white balance processing device of the present invention;

图4A及图4B是本发明对蓝天主题的布景进行白平衡处理的示意图;FIG. 4A and FIG. 4B are schematic diagrams of the present invention performing white balance processing on a background with a blue sky theme;

图5A及图5B是本发明对并列多个特定色温物体的布景进行白平衡处理的示意图;FIG. 5A and FIG. 5B are schematic diagrams of the present invention performing white balance processing on a scene with multiple objects of a specific color temperature arranged side by side;

图6A及图6B是本发明对不同连续色温区块的布景进行白平衡处理的示意图;以及6A and 6B are schematic diagrams of the present invention performing white balance processing on scenes with different continuous color temperature blocks; and

图7A及图7B是本发明对中央为人脸主题的布景进行白平衡处理的示意图。7A and 7B are schematic diagrams of the present invention performing white balance processing on a scene with a human face in the center.

具体实施方式 Detailed ways

以下在实施方式中详细叙述本发明的详细特征以及优点,其内容足以使任何本领域技术人员了解本发明的技术内容并据以实施,且根据本说明书所揭露的内容、申请专利范围及附图,任何本领域技术人员可轻易地理解本发明相关的目的及优点。The detailed features and advantages of the present invention are described in detail below in the embodiments, the content of which is sufficient to enable any person skilled in the art to understand the technical content of the present invention and implement it accordingly, and according to the content disclosed in this specification, the patent scope of the application and the accompanying drawings , any person skilled in the art can easily understand the related objects and advantages of the present invention.

大多数相机均装设有白平衡装置,本发明是利用相机的既有的白平衡装置,辅以分割、位置鉴定及分割区块周围关系判断方法,以达成精确的白平衡。本发明的白平衡修正方法是利用一影像撷取装置如数码相机,可进行白平衡处理,请参考图1,其绘示本发明的白平衡处理方法的流程图。如图,此方法包括下列步骤。Most cameras are equipped with a white balance device. The present invention utilizes the existing white balance device of the camera, supplemented by segmentation, position identification, and methods for judging the surrounding relationship of the segmented blocks to achieve accurate white balance. The white balance correction method of the present invention uses an image capture device such as a digital camera to perform white balance processing. Please refer to FIG. 1 , which shows a flow chart of the white balance processing method of the present invention. As shown in the figure, this method includes the following steps.

首先,在步骤S10,撷取一输入影像,并决定此输入影像的一色温门槛值及一亮度值;以步骤S13将此输入影像分割为多个分割区块影像,于每一分割区块影像中,以步骤S15,依据影像特性,侦测每一分割区块中可作为白点分析的一个以上部分区块的影像数据来源,选择其作步骤S16的各分割区块影像数据的白点鉴定,即选择各分割区块中最能代表其颜色的参考点,其是依据一预设的特性曲线,并利用标准差(Standard deviation)

Figure BDA0000144652770000051
及平均值(Mean value)
Figure BDA0000144652770000052
在各分割区块影像中,选择接近中性色及属平坦区的区块做白点鉴定。First, in step S10, an input image is captured, and a color temperature threshold value and a brightness value of the input image are determined; in step S13, the input image is divided into a plurality of divided block images, and each divided block image In step S15, according to the image characteristics, detect the image data source of more than one partial block in each segmented block that can be used as white point analysis, and select it as the white point identification of each segmented block image data in step S16 , that is, select the reference point that best represents its color in each segmented block, which is based on a preset characteristic curve, and uses the standard deviation (Standard deviation)
Figure BDA0000144652770000051
and mean value
Figure BDA0000144652770000052
In each segmented block image, select a block that is close to the neutral color and belongs to the flat area for white point identification.

在步骤S13将输入影像分割为多个分割区块影像后,于步骤S14依输入影像的亮度值决定输入影像的一第一光源种类权重;以步骤S17侦测每一分割区块影像在输入影像的位置、步骤S18侦测每一分割区块影像与周围分割区块影像的连续性、步骤S19依据S17及S18的构图分析结果决定输入影像的一第二光源种类权重,在步骤S20中以S17~S19的信息计算每一分割区块影像白点鉴定结果的权重。After the input image is divided into a plurality of divided block images in step S13, a first light source type weight of the input image is determined according to the brightness value of the input image in step S14; each divided block image is detected in the input image by step S17 position, step S18 detects the continuity of each divided block image and the surrounding divided block images, step S19 determines a second light source type weight of the input image according to the composition analysis results of S17 and S18, and steps S20 with S17 The information in ~ S19 calculates the weight of the white point identification result of each segmented block image.

接着,在步骤S21,依据每一分割区块影像白点鉴定结果及步骤S20得到的权重,决定一白平衡估算值;若步骤S21所得出的白平衡估算值超过输入影像色温门槛值,则执行步骤S22,依据输入影像色温门槛值对白平衡估算值进行修正,如图2所示,在步骤S201撷取影像并决定一色温门坎值,后依步骤S203计算区块影像白点鉴定权重,于步骤S205得到一白平衡估算值,于步骤S207若所述白平衡估算值符合所述色温门坎值,则直接于步骤S211以所述白平衡估算值进行白平衡处理。若于步骤S207中判定所述白平衡估算值与色温门坎值不相符,则于步骤S209中依输入影像的色温门坎值进行修正,并于步骤S211中以所述修正过后的白平衡估算值进行所述白平衡处理。其中,此修正方法可为一动态内插,若色温门槛值与白平衡估算值差额增加,则所进行的修正值增加;若色温门槛值与白平衡估算值差额减少,则所进行的修正值减少。反之,若白平衡估算值未超过输入影像色温门槛值,则于步骤S23中,直接以白平衡估算值对输入影像进行一白平衡处理。其中,上述白点鉴定的技术已为本领域的公知技术,故在此不再赘述。Next, in step S21, an estimated white balance value is determined according to the white point identification result of each divided block image and the weight obtained in step S20; if the estimated white balance value obtained in step S21 exceeds the color temperature threshold of the input image, execute Step S22, correct the white balance estimation value according to the input image color temperature threshold value, as shown in Figure 2, capture the image in step S201 and determine a color temperature threshold value, then calculate the block image white point identification weight in step S203, S205 obtains an estimated white balance value. If the estimated white balance value meets the color temperature threshold in step S207 , then directly perform white balance processing with the estimated white balance value in step S211 . If it is determined in step S207 that the white balance estimated value does not match the color temperature threshold value, then in step S209 the color temperature threshold value of the input image is corrected, and in step S211 the corrected white balance estimated value is used. The white balance handles. Wherein, the correction method can be a dynamic interpolation, if the difference between the color temperature threshold value and the estimated value of white balance increases, the correction value increases; if the difference between the color temperature threshold value and the estimated value of white balance decreases, the correction value performed reduce. On the contrary, if the estimated white balance value does not exceed the color temperature threshold of the input image, then in step S23 , a white balance process is directly performed on the input image by using the estimated white balance value. Wherein, the above white point identification technology is a well-known technology in the art, so it will not be repeated here.

以上所述仅为本发明的一较佳具体实例,其中所述影像可为数码摄影机、一具有相机的行动电话或一具有相机的笔记型电脑等具有同样功能者,不可以此为限。The above is only a preferred example of the present invention, wherein the image can be a digital video camera, a mobile phone with a camera, or a notebook computer with a camera, etc., which have the same function, and should not be limited thereto.

至此,本发明的技术特征已说明完毕,以下特以具体实施例说明详验本发明的方法,以使本领域技术人员,可将获得足够知识而据以实施。So far, the technical characteristics of the present invention have been described, and the method for verifying the present invention will be described in detail below with specific examples, so that those skilled in the art can acquire sufficient knowledge to implement it.

请参考图4A,在大晴天的蓝天风景构图范例中,蓝天占据所述影像的大半部,利用本发明的白平衡处理方法的各步骤如下:Please refer to FIG. 4A , in the blue sky landscape composition example on a sunny day, the blue sky occupies most of the image, and the steps of using the white balance processing method of the present invention are as follows:

撷取一输入影像后,决定所述输入影像的色温门槛值及亮度值;将输入影像切割为多个分割区块影像,并对每一所述分割区块影像做白点鉴定;依据所述输入影像一亮度值动态决定所述输入影像的一第一光源种类权重,具体而言,依据输入影像的亮度值及输入影像中与预先设定数据相符的多个色块,决定输入影像的第一光源种类权重;依据所述第一光源种类权重、各所述分割区块影像的位置、各区块影像与其周围区块影像的色温差值是否符合一预设值,决定所述输入影像的一第二光源种类权重,依据每一所述分割区块影像在所述输入影像的位置、其与周围多个分割区块影像的连续性、第二光源种类权重,决定对应每一所述分割区块影像的白点鉴定结果的一权重,其中,第二光源种类权重包括多个室外光源种类权重及多个室内光源种类权重;此时输入影像的上半部为高色温的蓝天影像数据(图4A的51区块),其中,位于所述输入影像上方的每一分割区块影像与其周围多个分割区块影像色温值为连续(图4B中,以「5000」为某一选定为判断的分割区块影像,其与周围的分割区块影像5001、5002、5003、5004、5005、5006、5007、5008、5009、5010及5011的色温值为连续),又所述输入影像的第二光源种类权重的室外光源权重高于预设比例,故调降上述这些区块的白点鉴定结果权重,进而避免将大片蓝色影像纳入白平衡统计范围内,而造成有大片蓝天影像呈色偏白,而可获得准确的白平衡,使有大片蓝天的影像呈色更符合人眼所见;白平衡估算结果与输入影像的色温值差异值低,未超过所述输入影像的色温门槛值,不需调整所述白平衡估算结果,直接以其为依据进行白平衡修正。After capturing an input image, determine the color temperature threshold value and brightness value of the input image; cut the input image into a plurality of segmented block images, and perform white point identification on each of the segmented block images; according to the A brightness value of the input image dynamically determines the weight of a first light source type of the input image, specifically, according to the brightness value of the input image and a plurality of color blocks in the input image that match preset data, determine the first light source type weight of the input image. A light source type weight; according to the weight of the first light source type, the position of each of the divided block images, and whether the color temperature difference between each block image and its surrounding block images conforms to a preset value, determine a value of the input image The weight of the second light source type is determined to correspond to each of the segmented regions according to the position of each segmented block image in the input image, its continuity with the surrounding images of multiple segmented blocks, and the weight of the second light source type. A weight of the white point identification result of the block image, wherein, the second light source type weight includes a plurality of outdoor light source type weights and a plurality of indoor light source type weights; at this time, the upper half of the input image is blue sky image data with high color temperature (Fig. 4A, 51 blocks), wherein, the color temperature values of each segmented block image located above the input image and its surrounding multiple segmented block images are continuous (in FIG. The segmented block images, which have continuous color temperature values with the surrounding segmented block images 5001, 5002, 5003, 5004, 5005, 5006, 5007, 5008, 5009, 5010 and 5011), and the second input image The weight of the outdoor light source in the weight of the light source type is higher than the preset ratio, so the weight of the white point identification results of the above-mentioned blocks is lowered, so as to avoid including large blue images in the white balance statistical range, resulting in color cast in large blue sky images white, and accurate white balance can be obtained, so that the color rendering of the image with a large blue sky is more in line with what the human eye sees; the difference between the white balance estimation result and the color temperature value of the input image is low, and does not exceed the color temperature threshold of the input image. There is no need to adjust the white balance estimation result, and the white balance correction is performed directly based on it.

请参考图5A,在有多个高色温物体并列于影像上方的室内场景构图范例,利用本发明的白平衡处理方法的各步骤如下:Please refer to FIG. 5A , in an example of indoor scene composition with multiple high color temperature objects juxtaposed above the image, the steps of using the white balance processing method of the present invention are as follows:

撷取一输入影像后,决定所述输入影像的色温门槛值及亮度值;将输入影像切割为多个分割区块影像,并对每一所述分割区块影像做白点鉴定;依据所述输入影像一亮度值动态决定所述输入影像的一第一光源种类权重;依据所述第一光源种类权重、各所述分割区块影像的位置、各所述区块影像与其周围区块影像的色温差值是否符合一预设值,决定所述输入影像的一第二光源种类权重;后依据每一所述分割区块影像在所述输入影像的位置,及与其周围多个分割区块影像的连续性、第二光源种类权重,决定对应每一所述分割区块影像的白点鉴定结果的一权重;此时虽所述输入影像的上半部为多个高色温的影像数据(图5A的612、613、614、615、616、617、618),但位于所述输入影像上方的每一分割区块影像与其周围多个分割区块影像色温值为不连续(图5B中,以「600」为某一选定为判断的分割区块影像,其与周围的分割区块影像6001、6002、6003、6004、6005、6006、6007、6008、6009、6010及6011的色温值皆不连续),又所述输入影像的第二光源种类权重的室外光源权重低于预设比例,判断属非一般大片蓝天室外布景,需顾及整体影像呈色均衡,故不调降位于所述输入影像上方的多个分割区块影像的白点鉴定结果的权重,而进行白平衡估算;白平衡估算结果与输入影像的色温值差异值低,未超过所述输入影像的色温门槛值,不需调整所述白平衡估算结果,直接以其为依据进行白平衡修正。After capturing an input image, determine the color temperature threshold value and brightness value of the input image; cut the input image into a plurality of segmented block images, and perform white point identification on each of the segmented block images; according to the A brightness value of the input image dynamically determines a first light source type weight of the input image; according to the first light source type weight, the position of each of the divided block images, and the relationship between each of the block images and its surrounding block images Determine whether the color temperature difference value conforms to a preset value, and determine a second light source type weight of the input image; and then according to the position of each segmented block image in the input image, and a plurality of segmented block images around it The continuity and the weight of the second light source type determine a weight corresponding to the white point identification result of each of the divided block images; at this time, although the upper half of the input image is a plurality of image data with high color temperature (Fig. 5A, 612, 613, 614, 615, 616, 617, 618), but the color temperature values of each segmented block image above the input image and its surrounding multiple segmented block images are discontinuous (in FIG. 5B, represented by "600" is a segment image selected as a judgment, and its color temperature value is different from that of the surrounding segment images 6001, 6002, 6003, 6004, 6005, 6006, 6007, 6008, 6009, 6010, and 6011. Continuous), and the outdoor light source weight of the second light source type weight of the input image is lower than the preset ratio, it is judged that it is an unusual large blue sky outdoor scene, and the overall image color balance needs to be taken into account, so it is not lowered in the input image The weight of the white point identification results of the multiple segmented block images above is used to estimate the white balance; the difference between the white balance estimation result and the color temperature value of the input image is low, does not exceed the color temperature threshold of the input image, and does not need to be adjusted The white balance estimation result is directly used as a basis for white balance correction.

请参考图6A,为蓝天绿地的室外风景构图范例,利用本发明的白平衡处理方法的各步骤如下:Please refer to FIG. 6A , which is an example of outdoor landscape composition with blue sky and green space. The steps of using the white balance processing method of the present invention are as follows:

撷取一输入影像后,决定所述输入影像的色温门槛值及亮度值;将输入影像切割为多个分割区块影像,并对每一所述分割区块影像做白点鉴定;依据所述输入影像一亮度值动态决定所述输入影像的一第一光源种类权重;依据所述第一光源种类权重、各所述分割区块影像的位置、各所述区块影像与其周围区块影像的色温差值是否符合一预设值,决定所述输入影像的一第二光源种类权重;后依据每一所述分割区块影像在所述输入影像的位置,及与其周围多个分割区块影像连续性、第二光源种类权重,决定对应每一所述分割区块影像的白点鉴定结果的一权重;此时因所述输入影像的上半部为大片高色温的影像数据(图6A的71区块),其中,位于所述输入影像上方的每一所述分割区块影像与其周围多个分割区块影像色温值为连续(图6B中,以「701」为某一选定为判断的分割区块影像,其与周围的分割区块影像7011、7012、7013、7014、7015、7016、7017的色温值为连续),又所述输入影像的第二光源种类权重的室外光源权重高于预设比例,故判断为室外蓝天的场景,原应调降位于所述输入影像上方的多个分割区块影像的白点鉴定结果的权重,而进行白平衡估算。但所述输入影像的下方分割区块影像为第二色温(图6A的72区块),且每一所述分割区块影像与其周围多个分割区块影像色温值为连续(图6B中,以「702」为某一选定为判断的分割区块影像,其与周围的分割区块影像7021、7022、7023、7024、7025、7026、7027的色温值为连续),此时判断不调整所有多个分割区块影像的白点鉴定结果的权重,以避免着重图6A的71或72的某一区块呈色而导致另一区块呈色色温失衡的情况;白平衡估算结果与输入影像的色温值差异值低,未超过所述输入影像的色温门槛值,不需调整所述白平衡估算结果,直接以其为依据进行白平衡修正。After capturing an input image, determine the color temperature threshold value and brightness value of the input image; cut the input image into a plurality of segmented block images, and perform white point identification on each of the segmented block images; according to the A brightness value of the input image dynamically determines a first light source type weight of the input image; according to the first light source type weight, the position of each of the divided block images, and the relationship between each of the block images and its surrounding block images Determine whether the color temperature difference value conforms to a preset value, and determine a second light source type weight of the input image; and then according to the position of each segmented block image in the input image, and a plurality of segmented block images around it Continuity, the weight of the second light source type, determine a weight corresponding to the white point identification result of each of the divided block images; at this time, because the upper half of the input image is a large piece of image data with high color temperature (Fig. 6A 71 blocks), wherein, the color temperature values of each of the segmented block images located above the input image and a plurality of segmented block images around it are continuous (in FIG. The segmented block image of the input image, whose color temperature value is continuous with the surrounding segmented block images 7011, 7012, 7013, 7014, 7015, 7016, 7017), and the second light source type weight of the input image has a high outdoor light source weight In the preset ratio, the scene judged to be an outdoor blue sky scene should reduce the weight of the white point identification results of the plurality of segmented block images located above the input image to perform white balance estimation. However, the segmented block image below the input image is the second color temperature (block 72 in FIG. 6A ), and the color temperature values of each segmented block image and its surrounding multiple segmented block images are continuous (in FIG. 6B, "702" is selected as a selected block image, and its color temperature value is continuous with the surrounding block images 7021, 7022, 7023, 7024, 7025, 7026, and 7027), and the judgment is not adjusted at this time The weight of the white point identification results of all multiple divided block images, so as to avoid emphasizing the color rendering of a certain block of 71 or 72 in FIG. 6A and causing the color temperature imbalance of another block; the white balance estimation result and input The color temperature value difference of the image is low and does not exceed the color temperature threshold value of the input image, and the white balance estimation result does not need to be adjusted, and the white balance correction is performed directly based on it.

请参考图7A,在中央有人脸出现的一般构图范例,利用本发明的白平衡处理方法的各步骤如下:Please refer to FIG. 7A , an example of a general composition with a human face appearing in the center, the steps of using the white balance processing method of the present invention are as follows:

撷取一输入影像后,决定所述输入影像的色温门槛值及其亮度值;将输入影像切割为多个分割区块影像,并对每一所述分割区块影像做白点鉴定;依据所述输入影像一亮度值动态决定所述输入影像的一第一光源种类权重;依据所述第一光源种类权重、各所述分割区块影像的位置、各所述区块影像与其周围区块影像的色温差值是否符合一预设值,决定所述输入影像的一第二光源种类权重;后依据每一所述分割区块影像在所述输入影像的位置,及与其周围多个分割区块影像连续性、第二光源种类权重,决定对应每一所述分割区块影像的白点鉴定结果的一权重;此时因所述输入影像的中央为大片低温的影像数据(图7A的82区块),其中,位于所述输入影像中央的每一所述分割区块影像与其周围多个分割区块影像色温值为连续(图7B中,以801为某一选定为判断的分割区块影像,其与周围的分割区块影像8011、8012、8013、8014、8015、8016、8017、8018的色温值为连续),故判断为人脸为主的布景,调降位于所述输入影像中央多个分割区块影像的白点鉴定结果的权重,而进行白平衡估算,以避免使人脸区块呈现惨白的呈色;白平衡估算结果与输入影像的色温值差异值低,未超过所述输入影像的色温门槛值,不需调整所述白平衡估算结果,直接以其为依据进行白平衡修正。After capturing an input image, determine the color temperature threshold value and brightness value of the input image; cut the input image into a plurality of segmented block images, and perform white point identification on each of the segmented block images; A brightness value of the input image dynamically determines a first light source type weight of the input image; according to the first light source type weight, the position of each of the divided block images, each of the block images and its surrounding block images Determine whether the color temperature difference value of the input image conforms to a preset value, and determine a second light source type weight of the input image; then, according to the position of each segmented block image in the input image, and a plurality of segmented blocks around it Image continuity and the weight of the second light source type determine a weight corresponding to the white point identification result of each of the divided block images; at this time, because the center of the input image is a large piece of low-temperature image data (the 82 area of FIG. 7A block), wherein, the color temperature values of each of the divided block images located in the center of the input image and its surrounding multiple divided block images are continuous (in FIG. 7B, 801 is a selected divided block image, its color temperature value is continuous with the surrounding segmented block images 8011, 8012, 8013, 8014, 8015, 8016, 8017, and 8018), so it is judged that the scene is dominated by human faces, and the background located in the center of the input image is lowered. The weight of the white point identification result of each segmented block image is used to perform white balance estimation to avoid the pale color rendering of the face block; the difference between the white balance estimation result and the color temperature value of the input image is low, and does not exceed the stated value. The color temperature threshold value of the input image is directly used as a basis for white balance correction without adjusting the white balance estimation result.

在输入影像为极低色温的场景,如隧道内的输入影像,利用本发明的白平衡处理方法的各步骤如下:In a scene where the input image has an extremely low color temperature, such as an input image in a tunnel, the steps of using the white balance processing method of the present invention are as follows:

撷取一输入影像后,决定所述输入影像的色温门槛值为低色温及其亮度值低于一门槛值属室内场景;将所述输入影像分割为多个分割区块影像;对每一所述分割区块影像做白点鉴定;依据所述输入影像一亮度值动态决定所述输入影像的一第一光源种类权重;依据所述第一光源种类权重、各所述分割区块影像的位置、各所述区块影像与其周围区块影像的色温差值是否符合一预设值,决定所述输入影像的一第二光源种类权重;后依据每一所述分割区块影像在所述输入影像的位置,及与其周围多个分割区块影像的连续性、第二光源种类权重决定对应每一所述分割区块影像的白点鉴定结果的一权重;因多个分割区块影像皆为低色温影像,故不调整各区块白点鉴定结果的权重;以所述些分割区块影像的所述白点鉴定结果及所述权重,计算出对所述输入影像的一白平衡估算值;白平衡估算结果(将影像修正为偏白)与输入影像的色温值(偏低色温)差异值高,超过所述输入影像的色温门槛值,故以动态内插的方式,往色温门槛值所在的色温区块做修正,以贴近人眼观察的结果。After capturing an input image, it is determined that the color temperature threshold value of the input image is a low color temperature and its brightness value is lower than a threshold value, which belongs to an indoor scene; the input image is divided into a plurality of segmented block images; for each Identifying the white point of the segmented block image; dynamically determining a first light source type weight of the input image according to a brightness value of the input image; according to the first light source type weight, the position of each segmented block image , whether the color temperature difference between each of the block images and its surrounding block images meets a preset value, and determine a second light source type weight of the input image; and then according to each of the divided block images in the input The position of the image, the continuity of the images of multiple division blocks around it, and the weight of the second light source type determine a weight corresponding to the white point identification result of each of the division block images; because the plurality of division block images are all Low color temperature images, so the weights of the white point identification results of each block are not adjusted; an estimated white balance value for the input image is calculated based on the white point identification results and the weights of the divided block images; The difference between the white balance estimation result (correcting the image to be whiter) and the color temperature value of the input image (lower color temperature) is high, exceeding the color temperature threshold of the input image, so the dynamic interpolation method is used to move towards the color temperature threshold Correct the color temperature block to get close to the result observed by human eyes.

请参阅图3,其绘示本发明的一种白平衡处理装置的方块图。图中,白平衡处理装置包括一影像撷取单元101、一分割单元103、一白点选取单元104、一白点鉴定单元105、白点权重决定单元107、一光源种类权重计算单元108、一位置决定单元109、连续性决定单元110、一计算单元111、一修正单元113以及一白平衡处理单元115。Please refer to FIG. 3 , which shows a block diagram of a white balance processing device of the present invention. In the figure, the white balance processing device includes an image capture unit 101, a segmentation unit 103, a white point selection unit 104, a white point identification unit 105, a white point weight determination unit 107, a light source type weight calculation unit 108, a A position determination unit 109 , a continuity determination unit 110 , a calculation unit 111 , a correction unit 113 and a white balance processing unit 115 .

影像撷取单元101用于撷取一输入影像,而分割单元103耦接于影像撷取单元,用于将输入影像分割为多个分割区块影像。白点选取单元104耦接于分割单元和白点鉴定单元,可在每一分割区块影像中,依据分割区块的影像特性(中性色或平坦区块),决定一个以上的白点鉴定区块,以白点鉴定区块影像数据作所述白点鉴定。白点鉴定单元105耦接于分割单元,是对每一分割区块影像做一白点鉴定,以产生每一所述分割区块影像的一白点鉴定结果。白点权重决定单元107耦接于白点鉴定单元,可依据每一分割区块影像在输入影像的位置,以及与其周围所述多个分割区块影像的连续性决定对应每一所述分割区块影像的所述白点鉴定结果的权重;其中所述白点权重决定单元107还包括:一光源种类权重计算单元108,用于决定一第一光源种类权重;一位置决定单元109,耦接于所述光源种类权重决定单元,用于决定所述分割区块影像在所述输入影像中的位置;一连续性决定单元110,耦接于所述位置决定单元,用于决定每一所述分割区块影像与其周围的多个分割区块影像的色温差值是否符合一预设值;又所述光源种类权重决定单元可依据所述第一光源种类权重、各所述分割区块影像的位置、各所述区块影像与其周围区块影像的色温差值是否符合一预设值,决定所述输入影像的一第二光源种类权重;又所述白点权重决定单元107可依据各所述分割区块影像的位置、各所述区块影像与其周围区块影像的色温差值是否符合一预设值、所述第二光源种类权重,决定各所述分割区块影像白点鉴定结果的权重。The image capture unit 101 is used to capture an input image, and the segmentation unit 103 is coupled to the image capture unit and used to divide the input image into a plurality of divided block images. The white point selection unit 104 is coupled to the segmentation unit and the white point identification unit, and can determine more than one white point identification in each segmented block image according to the image characteristics of the segmented block (neutral color or flat block) For the block, use the white point identification block image data for the white point identification. The white point identification unit 105 is coupled to the segmentation unit, and performs a white point identification on each segmented block image to generate a white point identification result for each segmented block image. The white point weight determination unit 107 is coupled to the white point identification unit, and can determine each of the segmented regions according to the position of each segmented block image in the input image and the continuity of the plurality of segmented block images around it. The weight of the white point identification result of the block image; wherein the white point weight determination unit 107 also includes: a light source type weight calculation unit 108, used to determine a first light source type weight; a position determination unit 109, coupled to The light source type weight determination unit is used to determine the position of the divided block image in the input image; a continuity determination unit 110 is coupled to the position determination unit and used to determine each of the whether the color temperature difference between the segmented block image and multiple segmented block images around it meets a preset value; position, whether the color temperature difference between each block image and its surrounding block images conforms to a preset value, determines a second light source type weight of the input image; and the white point weight determination unit 107 can be based on each The position of the divided block image, whether the color temperature difference between each said block image and its surrounding block images conform to a preset value, and the weight of the second light source type determine the white point identification result of each said divided block image the weight of.

一计算单元111,耦接于白点权重决定单元,可以此些分割区块影像的白点鉴定结果及权重,计算出对所述输入影像的一白平衡估算值;一修正单元113,耦接于计算单元及白平衡处理单元,其功用在于:若所述白平衡估算值超过所述输入影像色温门槛值,则依所述输入影像色温门槛值对所述白平衡估算值进行修正;若所述白平衡估算值未超过所述输入影像色温门槛值,则以所述白平衡估算值进行所述白平衡处理。一白平衡处理单元115,耦接于计算单元,用于以所述白平衡估算值对所述输入影像进行一白平衡处理。A calculation unit 111, coupled to the white point weight determination unit, can calculate a white balance estimation value for the input image based on the white point identification results and weights of the divided block images; a correction unit 113, coupled to In the calculation unit and the white balance processing unit, its function is: if the white balance estimated value exceeds the input image color temperature threshold value, the white balance estimated value is corrected according to the input image color temperature threshold value; if the If the estimated white balance value does not exceed the color temperature threshold of the input image, the white balance process is performed with the estimated white balance value. A white balance processing unit 115 , coupled to the calculation unit, is used for performing a white balance process on the input image by using the estimated white balance value.

以上所述是通过实施例说明本发明的特点,其目的在于使本领域技术人员能了解本发明的内容并据以实施,而非限定本发明的专利范围,故,凡其它未能脱离本发明所揭示的精神所完成的等效修饰或修改,仍应包含在以下所述的专利范围中。The above is to illustrate the characteristics of the present invention through the embodiments, and its purpose is to enable those skilled in the art to understand the content of the present invention and implement it accordingly, rather than to limit the patent scope of the present invention. Equivalent modifications or modifications accomplished by the disclosed spirit should still be included in the scope of patents described below.

Claims (14)

1. a white balancing treatment method is characterized in that, comprising:
Acquisition one input image;
Be a plurality of block images of cutting apart with described input Image Segmentation;
Each described block image of cutting apart is done white point evaluation, produce each described white point qualification result of cutting apart the block image;
According to each described block image of cutting apart in the position of described input image, and with described a plurality of continuitys of cutting apart the block image around it, determine corresponding each described weight of cutting apart the described white point qualification result of block image;
With more described described white point qualification result and the described weight of cutting apart the block image, calculate the white balance estimated value to described input image; And
With described white balance estimated value described input image being carried out a white balance processes.
2. white balancing treatment method as claimed in claim 1 is characterized in that, described continuity cuts apart the block image for each and a plurality of colour temperature differences of cutting apart between the block image around it meet a preset value.
3. white balancing treatment method as claimed in claim 1 is characterized in that, determines that the step of described weight also comprises:
Dynamically determine one first light source kind weight of described input image according to described input image one brightness value;
Judge each described position of cutting apart the block image above the described input image, central authorities or below;
Judge that whether each described colour temperature difference of cutting apart the block image around block image and its of cutting apart meets a preset value, obtains a continuity judged result;
According to described the first light source kind weight, each described position and described continuity judged result of cutting apart the block image, determine a secondary light source kind weight of described input image, wherein said secondary light source kind weight comprises a plurality of outdoor optical source category weights and a plurality of room light source category weight; And
According to each the described position of block image, described continuity judged result and described secondary light source kind weight cut apart, determine each described described weight of cutting apart block image white point qualification result.
4. white balancing treatment method as claimed in claim 3 is characterized in that, described weight dynamically determines the described first light source kind weight of described input image according to the described brightness value of described input image, also comprise:
With a plurality of color lumps that conform to preliminary setting data in the brightness value of described input image and the described input image, determine one first light source kind weight of described input image.
5. white balancing treatment method as claimed in claim 1 is characterized in that, also comprises:
Each described cutting apart in the block image, according to a described image characteristics of cutting apart the block image, select more than one white point to identify block, make white point with described more than one white point evaluation block image data and identify; Wherein, described image characteristics is a muted color or a smooth block.
6. white balancing treatment method as claimed in claim 1 is characterized in that, also comprises:
Determine an input photo dazzle color temperature threshold value according to described input image, if described white balance estimated value surpasses described input photo dazzle color temperature threshold value, then according to described input photo dazzle color temperature threshold value described white balance estimated value is revised;
If described white balance estimated value does not surpass described input photo dazzle color temperature threshold value, then carry out described white balance with described white balance estimated value and process.
7. white balancing treatment method as claimed in claim 1 is characterized in that, also comprises:
If a plurality of outdoor light source weight of a secondary light source kind weight of described input image is higher than a preset ratio;
And each the described colour temperature of cutting apart the block image that is positioned at described input image top is higher than a threshold value;
Describedly cut apart a plurality of block photo dazzle color temperature value tool continuitys of cutting apart around block image and its, wherein, described continuity is that the colour temperature difference of cutting apart between the block image meets a preset value;
Then reduce the described at least one described weight of cutting apart the described white point qualification result of block image that is positioned at described input image top.
8. white balancing treatment method as claimed in claim 1 is characterized in that, also comprises:
If a plurality of outdoor light source weight of a secondary light source kind weight of described input image is lower than a preset ratio;
And each the described colour temperature of cutting apart the block image that is positioned at described input image top is higher than a threshold value;
Describedly cut apart a plurality of block photo dazzle color temperature value tool continuitys of cutting apart around block and its, wherein, described continuity is that the colour temperature difference of cutting apart between the block image meets a preset value;
Then do not adjust the described at least one described weight of cutting apart the described white point qualification result of block image that is positioned at described input image top.
9. white balancing treatment method as claimed in claim 1 is characterized in that, also comprises:
If a plurality of colour temperatures of cutting apart the block image of described input image central authorities are lower than a threshold value, and each is described cuts apart the block image and a plurality of block photo dazzle color temperature value tool continuitys of cutting apart around it, wherein, described continuity is that the colour temperature difference of cutting apart between the block image meets a preset value;
Then reduce the described at least one described weight of cutting apart the described white point qualification result of block image be positioned at described input image central authorities.
10. white balancing treatment method as claimed in claim 1 is characterized in that, also comprises:
If a plurality of outdoor light source weight of a secondary light source kind weight of described input image is higher than a preset ratio;
The described block image of cutting apart of described input image top is one first colour temperature, and each is described cuts apart the block image and a plurality of block photo dazzle color temperature value tool continuitys of cutting apart around it, wherein, described continuity is that the colour temperature difference of cutting apart between the block image meets a preset value;
And the described block image of cutting apart of described input image below is one second colour temperature, and each is described cuts apart the block image and a plurality of block photo dazzle color temperature value tool continuitys of cutting apart around it, wherein, described continuity is that the colour temperature difference of cutting apart between the block image meets a preset value;
Then do not adjust the more described described weight of cutting apart the described white point qualification result of block image.
11. a white balance processing equipment is characterized in that, comprising:
One image acquisition unit is used for acquisition one input image;
One cutting unit is coupled to described image acquisition unit, and being used for described input Image Segmentation is a plurality of block images of cutting apart;
One white point is identified the unit, is coupled to described cutting unit, and each described block image of cutting apart is done white point evaluation, produces each described white point qualification result of cutting apart the block image;
One white point weight determining means, be coupled to described white point and identify the unit, it can be according to each described block image of cutting apart in the position of described input image, and determines corresponding each described weight of cutting apart the described white point qualification result of block image with described a plurality of continuitys of cutting apart the block image around it;
One computing unit is coupled to described white point weight determining means, with more described described white point qualification result and the described weight of cutting apart the block image, calculates the white balance estimated value to described input image; And
One white balance processing unit is coupled to described computing unit, is used for described white balance estimated value described input image being carried out a white balance and processes.
12. white balance processing equipment as claimed in claim 11 is characterized in that, also comprises:
One white point is chosen the unit, be coupled to described cutting unit and described white point and identify the unit, it is used at each described block image of cutting apart, according to a described image characteristics of cutting apart block, determine more than one white point evaluation block, make described white point with described more than one white point evaluation block image data and identify; Wherein, described image characteristics is a muted color or a smooth block.
13. white balance processing equipment as claimed in claim 11 is characterized in that, also comprises:
One amending unit is coupled to described computing unit and described white balance processing unit, if described white balance estimated value surpasses described input photo dazzle color temperature threshold value, then according to described input photo dazzle color temperature threshold value described white balance estimated value is revised; And
If described white balance estimated value does not surpass described input photo dazzle color temperature threshold value, then carry out white balance with described white balance estimated value and process.
14. white balance processing equipment as claimed in claim 11 is characterized in that, described white point weight determining means also comprises:
One light source kind weight calculation unit is used for determining one first light source kind weight;
One determining positions unit is coupled to described light source kind weight determining means, is used for determining that the described block image of cutting apart is in the position of described input image;
One continuity determining means, be coupled to described determining positions unit, be used for to determine whether each described block image of cutting apart meets a preset value with a plurality of colour temperature differences of cutting apart the block image around it, to determine described block image and its continuity judged result of cutting apart the block color temperature value on every side cut apart;
Described light source kind weight determining means can according to described the first light source kind weight, each described position, each described continuity judged result of cutting apart the block image of cutting apart the block image, determine a secondary light source kind weight of described input image again; And
Described white point weight determining means can according to each described position, each the described continuity judged result of block image, described secondary light source kind weight cut apart of cutting apart the block image, determine each described weight of cutting apart block image white point qualification result again.
CN201210072968.6A 2012-03-19 2012-03-19 White balance processing method and processing device thereof Expired - Fee Related CN103327345B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210072968.6A CN103327345B (en) 2012-03-19 2012-03-19 White balance processing method and processing device thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210072968.6A CN103327345B (en) 2012-03-19 2012-03-19 White balance processing method and processing device thereof

Publications (2)

Publication Number Publication Date
CN103327345A true CN103327345A (en) 2013-09-25
CN103327345B CN103327345B (en) 2015-03-11

Family

ID=49195839

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210072968.6A Expired - Fee Related CN103327345B (en) 2012-03-19 2012-03-19 White balance processing method and processing device thereof

Country Status (1)

Country Link
CN (1) CN103327345B (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104581105A (en) * 2015-02-03 2015-04-29 中国人民解放军国防科学技术大学 Automatic white balance method based on color temperature range conversion weight map
CN104683780A (en) * 2015-03-24 2015-06-03 广东本致科技有限公司 Automatic white balance method and device of video surveillance camera
CN104702941A (en) * 2013-12-09 2015-06-10 展讯通信(上海)有限公司 White-dot area indicating and judging method
CN104994362A (en) * 2015-07-02 2015-10-21 广东欧珀移动通信有限公司 Method and device for white balance processing
CN105120247A (en) * 2015-09-10 2015-12-02 联想(北京)有限公司 White-balance adjusting method and electronic device
CN105898263A (en) * 2016-05-24 2016-08-24 厦门美图之家科技有限公司 Method and device for white balance of image and computing device
CN106416238A (en) * 2014-05-29 2017-02-15 诺基亚技术有限公司 Method and device for image processing
WO2017202218A1 (en) * 2016-05-26 2017-11-30 努比亚技术有限公司 Device and method for acquiring image processing mode, and storage medium
CN107820070A (en) * 2017-10-25 2018-03-20 长沙云知检信息科技有限公司 White balance adjustment method
CN108093234A (en) * 2017-12-29 2018-05-29 努比亚技术有限公司 A kind of image processing method, terminal and storage medium
CN108766378A (en) * 2018-05-29 2018-11-06 深圳市华星光电技术有限公司 The white balance method and device of liquid crystal display panel
CN108769510A (en) * 2018-05-02 2018-11-06 Oppo广东移动通信有限公司 Image processing method, device, computer readable storage medium and electronic equipment
CN110012278A (en) * 2019-04-30 2019-07-12 腾讯科技(深圳)有限公司 A kind of image rendering method, device, computer equipment and storage medium
WO2020118977A1 (en) * 2018-12-15 2020-06-18 深圳市华星光电半导体显示技术有限公司 Image color temperature correction method and device
CN111953955A (en) * 2020-08-26 2020-11-17 维沃移动通信有限公司 White balance compensation method and device and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020101516A1 (en) * 2001-01-31 2002-08-01 Junichi Ikeda White balance control apparatus and method, and image pickup apparatus
CN101159879A (en) * 2006-10-08 2008-04-09 普立尔科技股份有限公司 Digital image acquisition device and white balance adjustment method thereof

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020101516A1 (en) * 2001-01-31 2002-08-01 Junichi Ikeda White balance control apparatus and method, and image pickup apparatus
CN101159879A (en) * 2006-10-08 2008-04-09 普立尔科技股份有限公司 Digital image acquisition device and white balance adjustment method thereof

Cited By (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104702941A (en) * 2013-12-09 2015-06-10 展讯通信(上海)有限公司 White-dot area indicating and judging method
CN104702941B (en) * 2013-12-09 2017-03-08 展讯通信(上海)有限公司 A kind of white point region representation and decision method
CN106416238A (en) * 2014-05-29 2017-02-15 诺基亚技术有限公司 Method and device for image processing
US10321110B2 (en) 2014-05-29 2019-06-11 Nokia Technologies Oy Method and apparatus for image processing
CN104581105B (en) * 2015-02-03 2016-01-20 中国人民解放军国防科学技术大学 Based on the auto white balance method of colour temperature range conversion weight map and the correction of block reliability
CN104581105A (en) * 2015-02-03 2015-04-29 中国人民解放军国防科学技术大学 Automatic white balance method based on color temperature range conversion weight map
CN104683780A (en) * 2015-03-24 2015-06-03 广东本致科技有限公司 Automatic white balance method and device of video surveillance camera
CN104683780B (en) * 2015-03-24 2017-01-04 广东本致科技有限公司 The auto white balance method of a kind of video monitoring camera and device
CN104994362A (en) * 2015-07-02 2015-10-21 广东欧珀移动通信有限公司 Method and device for white balance processing
CN105120247B (en) * 2015-09-10 2017-12-26 联想(北京)有限公司 A kind of white balance adjustment method and electronic equipment
CN105120247A (en) * 2015-09-10 2015-12-02 联想(北京)有限公司 White-balance adjusting method and electronic device
CN105898263A (en) * 2016-05-24 2016-08-24 厦门美图之家科技有限公司 Method and device for white balance of image and computing device
CN105898263B (en) * 2016-05-24 2017-08-25 厦门美图之家科技有限公司 A kind of image white balance method, device and computing device
WO2017202218A1 (en) * 2016-05-26 2017-11-30 努比亚技术有限公司 Device and method for acquiring image processing mode, and storage medium
CN107820070A (en) * 2017-10-25 2018-03-20 长沙云知检信息科技有限公司 White balance adjustment method
CN108093234A (en) * 2017-12-29 2018-05-29 努比亚技术有限公司 A kind of image processing method, terminal and storage medium
CN108769510A (en) * 2018-05-02 2018-11-06 Oppo广东移动通信有限公司 Image processing method, device, computer readable storage medium and electronic equipment
CN108769510B (en) * 2018-05-02 2021-03-23 Oppo广东移动通信有限公司 Image processing method, image processing device, computer-readable storage medium and electronic equipment
CN108766378A (en) * 2018-05-29 2018-11-06 深圳市华星光电技术有限公司 The white balance method and device of liquid crystal display panel
CN108766378B (en) * 2018-05-29 2019-12-24 深圳市华星光电技术有限公司 White balance method and device for liquid crystal display panel
WO2020118977A1 (en) * 2018-12-15 2020-06-18 深圳市华星光电半导体显示技术有限公司 Image color temperature correction method and device
CN110012278A (en) * 2019-04-30 2019-07-12 腾讯科技(深圳)有限公司 A kind of image rendering method, device, computer equipment and storage medium
CN110012278B (en) * 2019-04-30 2020-07-07 腾讯科技(深圳)有限公司 Image rendering method and device, computer equipment and storage medium
CN111953955A (en) * 2020-08-26 2020-11-17 维沃移动通信有限公司 White balance compensation method and device and electronic equipment

Also Published As

Publication number Publication date
CN103327345B (en) 2015-03-11

Similar Documents

Publication Publication Date Title
CN103327345B (en) White balance processing method and processing device thereof
TWI532385B (en) White balance method and apparatus thereof
WO2019148912A1 (en) Image processing method, apparatus, electronic device and storage medium
EP3554070B1 (en) Photograph-capture method, apparatus and storage medium
US8941755B2 (en) Image processing device with automatic white balance
CN106611415B (en) Skin region detection method and device
US20140133774A1 (en) Image processor and image dead pixel detection method thereof
US9307213B2 (en) Robust selection and weighting for gray patch automatic white balancing
US9378564B2 (en) Methods for color correcting digital images and devices thereof
US8698918B2 (en) Automatic white balancing for photography
JP2007097178A (en) Method for removing "red-eyes" by face detection
CN101442679B (en) Automatic white balance control system and method thereof
CN104243793B (en) Camera device with image identification mechanism and method
CN108063926B (en) Image processing method and device, computer readable storage medium and computer device
WO2022257396A1 (en) Method and apparatus for determining color fringe pixel point in image and computer device
CN108012134A (en) Photographing method and apparatus, computer-readable storage medium, and computer device
CN107135384A (en) White balance adjusting method, device, image processing terminal and storage medium
WO2013114803A1 (en) Image processing device, image processing method therefor, computer program, and image processing system
KR20130064556A (en) Apparatus and method for face detection using multi detection
JP6525503B2 (en) Image processing apparatus and imaging apparatus
WO2023025239A1 (en) Automatic makeup method and apparatus for lips in portrait, and device, storage medium and program product
US9030575B2 (en) Transformations and white point constraint solutions for a novel chromaticity space
JP2009004966A (en) Imaging device
US20140327796A1 (en) Method for estimating camera response function
TW201412135A (en) Image white balancing method and image capturing device using same

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150311

CF01 Termination of patent right due to non-payment of annual fee