[go: up one dir, main page]

CN101159878B - Color matching method, and image capturing apparatus and electronic device using the same - Google Patents

Color matching method, and image capturing apparatus and electronic device using the same Download PDF

Info

Publication number
CN101159878B
CN101159878B CN2006101317601A CN200610131760A CN101159878B CN 101159878 B CN101159878 B CN 101159878B CN 2006101317601 A CN2006101317601 A CN 2006101317601A CN 200610131760 A CN200610131760 A CN 200610131760A CN 101159878 B CN101159878 B CN 101159878B
Authority
CN
China
Prior art keywords
color
twenty
matrix
correction
lab
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.)
Expired - Fee Related
Application number
CN2006101317601A
Other languages
Chinese (zh)
Other versions
CN101159878A (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.)
Sony Taiwan Ltd
Original Assignee
Sony Taiwan Ltd
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 Sony Taiwan Ltd filed Critical Sony Taiwan Ltd
Priority to CN2006101317601A priority Critical patent/CN101159878B/en
Publication of CN101159878A publication Critical patent/CN101159878A/en
Application granted granted Critical
Publication of CN101159878B publication Critical patent/CN101159878B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Processing Of Color Television Signals (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Image Processing (AREA)
  • Color Image Communication Systems (AREA)

Abstract

一种色彩匹配方法,包括:撷取数位影像中复数个主要颜色讯号;转换步骤,从该复数个主要颜色讯号取得3×3的色彩矩阵,及将该复数个主要颜色讯号分别转换成3×1的照明度、色调、饱合度(LAB)座标矩阵;以及,色差计算步骤,根据该色彩矩阵、预设的权重矩阵及校正矩阵所组成的色彩校正式,递回地迭代计算该复数个颜色的输出及色差,直至该色差小于临界值为止。

Figure 200610131760

A color matching method includes: capturing a plurality of main color signals in a digital image; a conversion step of obtaining a 3×3 color matrix from the plurality of main color signals, and converting the plurality of main color signals into 3×1 illumination, hue, and saturation (LAB) coordinate matrices respectively; and a color difference calculation step of recursively iterating and calculating the output and color difference of the plurality of colors according to a color correction formula composed of the color matrix, a preset weight matrix, and a correction matrix until the color difference is less than a critical value.

Figure 200610131760

Description

色彩匹配方法及使用其之影像捕捉装置和电子设备Color matching method and image capturing device and electronic equipment using same

【技术领域】【Technical field】

本发明系关于色彩匹配方法,及使用其之影像捕捉装置或设有影像捕捉装置的电子设备,特别关于处理电子数位影像的色彩匹配方法,以及使用其之影像捕捉装置或设有影像捕捉装置的电子设备。The present invention relates to a color matching method, an image capturing device using the same or an electronic device equipped with an image capturing device, especially a color matching method for processing electronic digital images, and an image capturing device using the same or an electronic device equipped with an image capturing device Electronic equipment.

【背景技术】【Background technique】

近年来,例如数位相机、电子式摄影机、电话手机等具有彩色影像捕捉装置的电子装置广为流行。一般而言,这些电子设备中设有半导体影像感测器以将摄取的影像转换成电讯号。由于影像感测器对于色彩感测性能的固有限制,使得根据其输出的影像之色彩通常需要校正。此外,影像之色彩也会视光照条件而不同,举例而言,在月光及户外日光下,视觉上对色彩的感知是相当不同的。所以,所取得之电子影像在色彩处理上,要符合人类视觉感官的感知是非常重要的。In recent years, electronic devices with color image capture devices such as digital cameras, electronic video cameras, and mobile phones have become popular. Generally speaking, semiconductor image sensors are installed in these electronic devices to convert captured images into electrical signals. Due to the inherent limitation of the color sensing performance of the image sensor, the color of the output image based on the image sensor usually needs to be corrected. In addition, the color of the image will also vary depending on the lighting conditions. For example, the visual perception of color is quite different under moonlight and outdoor sunlight. Therefore, it is very important for the color processing of the obtained electronic images to conform to the perception of human visual senses.

在这些电子装置中,由影像感测器输出之影像讯号会经过一系列讯号处理,其中,色彩匹配处理会对取得的影像之色彩进行校正以使输出影像具有不失真的色彩表现。In these electronic devices, the image signal output by the image sensor will undergo a series of signal processing, wherein the color matching process will correct the color of the obtained image so that the output image has an undistorted color expression.

关于色彩校正处理,已知有很多先前技术使用校正矩阵以校正影像的色彩。举例而言,2006年5月30日公告之美国专利号7053935,已揭示人类视觉系统与独特的光谱响应曲线组之间的匹配结果并仅使用预设之校正矩阵于色彩校正处理,但是,由于使用的是预定之校正矩阵,故其校正处理之结果并无法动态地调整,因而难以取得快速、准确的色彩校正结果,而无法提供高品质的影像。由于先前技术系使用固定的校正矩阵来校正色彩,故其色差大且无法快速地收敛至预定值。With regard to color correction processing, many prior art techniques using correction matrices to correct the color of images are known. For example, U.S. Patent No. 7,053,935 published on May 30, 2006, has disclosed the matching result between the human visual system and a unique set of spectral response curves and only uses a preset correction matrix in the color correction process. However, due to A predetermined correction matrix is used, so the result of the correction process cannot be dynamically adjusted, so it is difficult to obtain fast and accurate color correction results, and cannot provide high-quality images. Since the prior art uses a fixed correction matrix to calibrate the color, the chromatic aberration is large and cannot quickly converge to a predetermined value.

因此,需要能够动态地调整色差并快速地收敛至预定值之色彩匹配方法以取得高度准确的色彩显示。Therefore, a color matching method capable of dynamically adjusting the color difference and quickly converging to a predetermined value is required to obtain highly accurate color display.

【发明内容】【Content of invention】

虑及上述,本发明以可动态地调整的校正矩阵,高准确度地及快速地达到色差收敛以显示高逼真的色彩影像。Considering the above, the present invention uses a dynamically adjustable correction matrix to achieve color difference convergence with high accuracy and speed to display high-fidelity color images.

本发明之一目的系提供色彩匹配方法,能够对数位影像执行色彩校正,其会根据取得的影像中复数个主要颜色以对取得的影像进行色彩校正处理。An object of the present invention is to provide a color matching method capable of performing color correction on digital images, which performs color correction processing on acquired images according to a plurality of main colors in the acquired images.

根据本发明之一态样,提供色彩匹配方法,包括:撷取数位影像中复数个主要颜色讯号;转换步骤,从该复数个主要颜色讯号取得3×3的色彩矩阵,及将该复数个主要颜色讯号分别转换成3×1的照明度、色调、饱合度(LAB)座标矩阵;以及,色差计算步骤,根据该色彩矩阵、预设的权重矩阵及校正矩阵所组成的色彩校正式,递回地迭代计算该复数个颜色的输出及色差,直至该色差小于临界值为止。According to an aspect of the present invention, a color matching method is provided, including: extracting a plurality of main color signals in a digital image; a conversion step, obtaining a 3×3 color matrix from the plurality of main color signals, and taking the plurality of main color signals The color signals are respectively converted into a 3×1 illuminance, hue, saturation (LAB) coordinate matrix; and, in the color difference calculation step, according to the color correction formula formed by the color matrix, the preset weight matrix and the correction matrix, iteratively The outputs and color differences of the plurality of colors are iteratively calculated until the color difference is smaller than a critical value.

此外,校正矩阵中各元素的值是可依目前的色差及之前的色差而动态地改变以快速地取得小于临界值之色差。而且,可以对多维颜色进行不限次数的递回运算而取得色差很小之高逼真的彩色影像显示。In addition, the value of each element in the correction matrix can be dynamically changed according to the current color difference and the previous color difference to quickly obtain the color difference smaller than the critical value. Moreover, unlimited number of recursive calculations can be performed on multi-dimensional colors to obtain highly realistic color image display with very small color difference.

根据本发明之另一态样,提供影像捕捉装置和电子设备,其能够对取得的影像进行快速的、高准确的色彩校正,以提供色差小之高逼真的彩色影像显示。According to another aspect of the present invention, an image capture device and an electronic device are provided, which can perform fast and highly accurate color correction on the captured image, so as to provide a highly realistic color image display with small color difference.

【图式简单说明】[Simple description of the diagram]

图1系流程图,说明数位影像处理流程;Fig. 1 is a flowchart illustrating the digital image processing flow;

图2系流程图,说明根据本发明的实施例之色彩匹配方法;Fig. 2 is a flowchart illustrating a color matching method according to an embodiment of the present invention;

图3系色彩图,用于说明根据本发明的实施例之色彩匹配方法;Fig. 3 is a color diagram for illustrating a color matching method according to an embodiment of the present invention;

图4系显示不同的PID系数时的迭算次数及最大超量;及Figure 4 shows the number of iterations and the maximum excess for different PID coefficients; and

图5系显示根据本发明的色彩匹配处理之前及之后的色彩图及色彩座标图。FIG. 5 shows a color diagram and a color coordinate diagram before and after the color matching process according to the present invention.

【实施方式】【Implementation】

将参考附图,说明根据本发明的实施例。Embodiments according to the present invention will be described with reference to the drawings.

图1系流程图,说明一般数位影像处理流程。Figure 1 is a flow chart illustrating the general digital image processing process.

如图1所示,由影像捕捉装置中的影像感测器取得之原始影像讯号输出会于步骤101中接受数位箝位处理。在步骤101中,以光学黑色作为色彩感测器中的黑色参考基准,使取得之例如红、绿、蓝(以下简称RGB)等色彩频道的值与光学黑色位准相减而使各色彩频道之基值不因感测器对不同色彩的物理表现而变化很大或造成显著误差。As shown in FIG. 1 , the original image signal output obtained by the image sensor in the image capture device will be digitally clamped in step 101 . In step 101, optical black is used as the black reference standard in the color sensor, and the obtained values of color channels such as red, green, blue (hereinafter referred to as RGB) are subtracted from the optical black level to make each color channel The base value does not vary greatly or cause significant errors due to the physical performance of the sensor for different colors.

接著,进行至步骤102以执行频道偏移处理。在步骤102中,对经过箝位处理的例如RGB等色彩频道进行频道偏移处理,以使这些色彩频道值具有相等或极相近的位准。经过这些处理之颜色频道(RGB)会具有相同的颜色基值且其数值解析度可以成为最大。Then, proceed to step 102 to perform channel shift processing. In step 102, channel offset processing is performed on the clamped color channels such as RGB, so that the values of these color channels have equal or very similar levels. The color channels (RGB) after these processes will have the same color base value and their numerical resolution can be maximized.

然后,进行至步骤103。在步骤103中,进行色彩白平衡处理以使得色彩性能与灰阶相同。Then, proceed to step 103 . In step 103, a color white balance process is performed so that the color performance is the same as the grayscale.

之后,进行至步骤104以执行影像内插,将取得之影像的三原色影像相组合而形成要显示的影像画面。Afterwards, proceed to step 104 to perform image interpolation, and combine the three primary color images of the obtained image to form an image frame to be displayed.

在影像内插后,取得之影像的色彩可能不过准确,因而需要色彩匹配处理以将影像需调整成准确的色彩,因而会进行步骤105以执行色彩匹配处理。After the image interpolation, the color of the obtained image may not be accurate, so color matching processing is required to adjust the image to an accurate color, so step 105 is performed to perform color matching processing.

最后,经过上述处理的影像讯号会接受步骤106之伽玛校正,以视不同的输出装置而使补捉到的画面能够谐调地显示,然后将影像讯号输出(步骤107)。Finally, the image signal processed above will undergo gamma correction in step 106, so that the captured image can be displayed harmoniously depending on different output devices, and then the image signal is output (step 107).

一般之数位影像处理均需经过上述处理步骤而完成,其中,有关色彩匹配处理,先前技术均以预定的固定校正矩阵来执行色彩匹配处理,因而难以快速准确地取得色彩准确的高品质影像。将于下详述根据本发明的影像处理中之色彩匹配处理。General digital image processing needs to be completed through the above processing steps. Regarding color matching processing, the prior art uses a predetermined fixed correction matrix to perform color matching processing, so it is difficult to quickly and accurately obtain high-quality images with accurate colors. The color matching process in the image processing according to the present invention will be described in detail below.

图2系流程图,说明根据本发明的实施例之色彩匹配方法。FIG. 2 is a flowchart illustrating a color matching method according to an embodiment of the present invention.

如图2所示,首先在步骤201取得三个主要光谱颜色蓝绿红之讯号,亦即如图3所示之第三列第一行的蓝色、同列第二行的绿色、及同列第三行的红色。图3系由影像捕捉装摄得的色彩图以用于影像处理。As shown in Figure 2, at first in step 201, the signals of the three main spectral colors blue, green and red are obtained, that is, the blue in the first row of the third column as shown in Figure 3, the green in the second row of the same column, and the green in the second row of the same column as shown in Figure 3 Three rows of red. Figure 3 is a color map captured by an image capture device for image processing.

接著,进行至步骤202,根据著名的CIE(CommisionInternationale De L′Eclairage)转换,从红绿蓝(RGB)三色彩讯号取得用于色彩校正之3×3矩阵(1),同时将三颜色RGB转换成对应的3x1矩阵(2)。矩阵(1)及(2)如下所述:Then, proceed to step 202, according to the famous CIE (Commission Internationale De L'Eclairage) conversion, obtain a 3×3 matrix (1) for color correction from the red, green and blue (RGB) three-color signal, and simultaneously convert the three-color RGB into a corresponding 3x1 matrix (2). The matrices (1) and (2) are as follows:

a 11 a 12 a 13 a 21 a 22 a 23 a 31 a 32 a 33 矩阵(1) a 11 a 12 a 13 a twenty one a twenty two a twenty three a 31 a 32 a 33 matrix(1)

L in a in b in 矩阵(2) L in a in b in matrix(2)

其中,矩阵(1)系根据CIE及取得的色彩影像讯号,计算而得,在矩阵(2)中,Lin表示色彩讯号的照度、ain表示色调、bin表示饱和度,一般称为Lab座标。Among them, the matrix (1) is calculated based on CIE and the color image signal obtained. In the matrix (2), Lin represents the illuminance of the color signal, a in represents the hue, and bin represents the saturation, which is generally called Lab coordinate.

在本实施例中,依据红蓝绿取得之矩阵(1)及(2)分别如下:In this embodiment, the matrices (1) and (2) obtained according to red, blue and green are as follows:

aa 1111 aa 1212 aa 1313 aa 21twenty one aa 22twenty two aa 23twenty three aa 3131 aa 3232 aa 3333 == 0.940.94 -- 0.080.08 0.140.14 0.130.13 0.810.81 0.080.08 -- 0.270.27 0.320.32 0.600.60

对蓝色而言 L in a in b in = 25.408 - 17.46 - 52.8 for blue L in a in b in = 25.408 - 17.46 - 52.8

对绿色而言 L in a in b in = 57 . 993 - 43 . 63 42.28 for green L in a in b in = 57 . 993 - 43 . 63 42.28

对红色而言 L in a in b in = 53.75 95.18 9.35 for red L in a in b in = 53.75 95.18 9.35

如上所述般,根据CIE标准,将RGB转换后所产生的基本线性颜色矩阵以用于后述的颜色校正。As mentioned above, according to the CIE standard, the basic linear color matrix generated after RGB conversion is used for color correction described later.

接著,进行至步骤203,将上述取得之矩阵应用至下述等式(1)以进行色彩校正的迭代运算。Then, proceed to step 203 , apply the obtained matrix to the following equation (1) to perform an iterative operation of color correction.

LL outout aa outout bb outout == (( aa 1111 aa 1212 aa 1313 aa 21twenty one aa 22twenty two aa 23twenty three aa 3131 aa 3232 aa 3333 ++ ww 1111 ww 1212 ww 1313 ww 21twenty one ww 22twenty two ww 23twenty three ww 3131 ww 3232 ww 3333 kk 1111 kk 1212 kk 1313 kk 21twenty one kk 22twenty two kk 23twenty three kk 3131 kk 3232 kk 3333 )) xx LL inin aa inin bb inin

等式(1)Equation (1)

其中, w 11 w 12 w 13 w 21 w 22 w 23 w 31 w 32 w 33 称为权重矩阵in, w 11 w 12 w 13 w twenty one w twenty two w twenty three w 31 w 32 w 33 called the weight matrix

k 11 k 12 k 13 k 21 k 22 k 23 k 31 k 32 k 33 称为校正矩阵 k 11 k 12 k 13 k twenty one k twenty two k twenty three k 31 k 32 k 33 called the correction matrix

权重矩阵中各元素的值系为预设值,在本实施例中为The value of each element in the weight matrix is a preset value, in this embodiment is

ww 1111 ww 1212 ww 1313 ww 21twenty one ww 22twenty two ww 23twenty three ww 3131 ww 3232 ww 3333 == 0.980.98 0.010.01 0.010.01 0.010.01 0.980.98 0.010.01 0.010.01 0.010.01 0.980.98

根据本发明,将校正矩阵中各元素定义如下:According to the present invention, each element in the correction matrix is defined as follows:

kij=Pij+Dij+Iij,关于Pij、Dij、及Iij将于后述中详述k ij =P ij +D ij +I ij , P ij , D ij , and I ij will be described in detail later

上述之ΔE系为色差函数,根据CIEI 976,ΔE系定义为The above ΔE system is a color difference function, according to CIEI 976, ΔE system is defined as

ΔEΔE == (( LL outout -- LL RefRef )) 22 ++ (( aa outout -- aa RefRef )) ++ (( bb outout -- bb RefRef )) 22

其中,Lout、aout、bout系计算而得之输出色彩讯号的Lab座标,而LRef、aRef、bRef系取得之色彩讯号的Lab座标基准值。换言之,色差系指输出的颜色与摄得的真正颜色之间的差异,色彩ΔE可以以Lab座标间之距离来表示。Among them, L out , a out , b out are the calculated Lab coordinates of the output color signal, and L Ref , a Ref , b Ref are the Lab coordinate reference values of the obtained color signal. In other words, the color difference refers to the difference between the output color and the captured real color, and the color ΔE can be represented by the distance between Lab coordinates.

在步骤203中,根据等式1,对各颜色进行迭代运算并将各颜色的运算结果与基准值相比较,而取得色差值。根据本实施例,系对如上所述之红绿蓝三色进行运算,但是,根据本发明,也可以对更多不同颜色进行运算,亦即,可以进行多维的颜色运算。In step 203, according to Equation 1, an iterative operation is performed on each color and the operation result of each color is compared with a reference value to obtain a color difference value. According to this embodiment, calculations are performed on the above-mentioned three colors of red, green and blue. However, according to the present invention, calculations can also be performed on more different colors, that is, multi-dimensional color calculations can be performed.

接著,进行至步骤204,比较步骤203中取得色差值与预设的临界值,若色差值小于临界值,则表示色彩校正已达到所需,则结束色彩匹配处理,若大于临界值,则进行至步骤205,以根据下述等式,计算出新的Pij、Dij、及IijThen, proceed to step 204, compare the color difference value obtained in step 203 with the preset critical value, if the color difference value is smaller than the critical value, it means that the color correction has reached the requirement, and then end the color matching process, if it is greater than the critical value, Then proceed to step 205 to calculate new P ij , D ij , and I ij according to the following equation,

Pij=Ep=KpxΔE(t)Pij=Ep= Kp xΔE(t)

Dij=Ed=Kdx(ΔE(t)-ΔE(t-1))D ij = Ed = K d x (ΔE(t)-ΔE(t-1))

Iij=Ei=Ki_∞ΔE(t)dtI ij =Ei=K i_∞ ΔE(t)dt

其中,Kp、Kd、及Ki分别为比例控制系数、微分控制系数、及积分控制系数,ΔE(t)代表目前色差值,ΔE(t-1)代表先前所储存的色差值。Among them, K p , K d , and K i are proportional control coefficients, differential control coefficients, and integral control coefficients respectively, ΔE(t) represents the current color difference value, and ΔE(t-1) represents the previously stored color difference value .

接著,回至步骤203,将取得之Pij、Dij、及Iij代入等式(1)之校正矩阵中,进行迭代运算。Then, returning to step 203, the obtained P ij , D ij , and I ij are substituted into the correction matrix in equation (1) for iterative calculation.

如此,执行迭代运算直至色差小于临界值为止。In this way, the iterative operation is performed until the color difference is smaller than the critical value.

根据本实例,Kp、Kd、及Ki的值,在i=j与i≠J情形中是不同的,亦即,根据本实施例之校正矩阵如下:According to this example, the values of K p , K d , and K i are different in the case of i=j and i≠J, that is, the correction matrix according to this embodiment is as follows:

1.211.21 EpEp ++ 2.132.13 EdEd ++ 0.530.53 EiEi 1.11.1 EpEp ++ 22 EdEd ++ 0.50.5 EiEi 1.11.1 EpEp ++ 22 EdEd ++ 0.50.5 EiEi 1.11.1 EpEp ++ 22 EdEd ++ 0.50.5 EiEi 1.211.21 EpEp ++ 2.132.13 EdEd ++ 0.530.53 EiEi 1.11.1 EpEp ++ 22 EdEd ++ 0.50.5 EiEi 1.11.1 EpEp ++ 22 EdEd ++ 0.50.5 EiEi 1.11.1 EpEp ++ 22 EdEd ++ 0.50.5 EiEi 1.211.21 EpEp ++ 2.132.13 EdEd ++ 0.530.53 EiEi

根据上述,以不同的Kp、Kd、及Ki系数,分别执行色彩匹配处理,取得之结果显示于图4中。图4显示根据本实施例之色彩匹配处理,在不同的Kp、Kd、及Ki值时,达到所需色差之迭算次数及最大的超量值。根据本实施例之结果,可知误差愈大时,愈大的Kp值意指更快的响应,这也意指要补偿的回馈愈大。较大的Kd会降低受调整的补偿之超量并可区别色差方向。Ki愈大意指在稳定状态中消除误差,但代价是在补偿时造成更大的超量并减缓趋近标的值。According to the above, the color matching process is performed with different K p , K d , and K i coefficients, and the obtained results are shown in FIG. 4 . FIG. 4 shows the number of calculations and the maximum excess value to achieve the desired color difference under different values of K p , K d , and K i according to the color matching process of this embodiment. According to the results of this embodiment, it can be seen that when the error is larger, a larger K p value means a faster response, which also means that the feedback to be compensated is larger. A larger K d reduces the overshoot of the adjusted compensation and can distinguish the direction of chromatic aberration. Larger K i means that the error is eliminated in the steady state, but at the cost of causing a larger excess in compensation and slowing down the approach to the target value.

经由如上所述的运算步骤,以作为参考之标准色彩图中的三种主要颜色RGB,可以取得用于影像处理之色彩匹配中所需的校正矩阵。在处理任意摄得的影像之色彩匹配时,此校正矩阵中的各元素值可以视每次迭代运算的色差变化而变,因而可以动态地改变,以致于色差可以快速地缩小,而取得高度逼真的彩色影像。此处,虽然以RGB三个颜色来说明本实施例,但是,本发明可以使用三个以上的颜色来执行色彩匹配处理,而且,执行的迭代运算之次数可以不受限制。Through the above-mentioned operation steps, the correction matrix required for the color matching of the image processing can be obtained by using the three main colors RGB in the standard color map as a reference. When dealing with the color matching of any captured image, the value of each element in this correction matrix can be changed according to the color difference of each iterative operation, so it can be changed dynamically, so that the color difference can be quickly reduced to achieve a high degree of fidelity color image. Here, although three colors of RGB are used to illustrate this embodiment, the present invention can use more than three colors to perform color matching processing, and the number of iterative operations performed is not limited.

下列表1,显示根据本发明之色彩匹配方法的实施例中,各控制系数调变时所产生的效果。Table 1 below shows the effect produced when each control coefficient is modulated in the embodiment of the color matching method according to the present invention.

表1Table 1

在经过如上所述的处理之后,取得之最后的色彩校正结果显示于图5中。图5a系校正前的影像及其CIE LAB座标图,图5b系校正后的影像及其CIE LAB座标图,从图5b中,明显可知经过校正后的色差大幅地收敛。After processing as described above, the final color correction result obtained is shown in FIG. 5 . Figure 5a is the image before correction and its CIE LAB coordinate diagram, and Figure 5b is the image after correction and its CIE LAB coordinate diagram. From Figure 5b, it is obvious that the chromatic aberration after correction has largely converged.

根据本发明,由于可以对多维颜色执行色差匹配处理,且要达到最佳误差值(亦即色差最小)之迭代次数不受限定,亦即,根据本发明,由于可采用多维颜色迭代,迭代可以一直执行及更新3×3矩阵中的内容值,直到误差(色差)在预设的临界值之下为止。According to the present invention, since the color difference matching process can be performed on multi-dimensional colors, and the number of iterations to achieve the best error value (that is, the minimum color difference) is not limited, that is, according to the present invention, since multi-dimensional color iterations can be used, the iterations can Execute and update the content values in the 3×3 matrix until the error (chromatic aberration) is below a preset threshold.

根据本发明,根据目前量测到的色差资讯及先前的色差资讯,而动态地调变校正矩阵的各元素值,以用于下一迭代计算及更进一步的计算,可以使色差快速地收敛至最佳值。According to the present invention, according to the currently measured color difference information and the previous color difference information, the value of each element of the correction matrix is dynamically adjusted for the next iterative calculation and further calculation, so that the color difference can be quickly converged to best value.

根据本发明之色彩匹配方法,可以以软体、或韧体方式实施。The color matching method according to the present invention can be implemented in software or firmware.

根据本发明的色彩匹配方法可以用于例如数位相机、数位录影机、行动电话等设有彩色影像捕捉装置或显示器的电子设备中,以处理摄得的彩色影像,或是用于电脑系统中,以对彩色影像进行色彩匹配处理。The color matching method according to the present invention can be used in electronic devices such as digital cameras, digital video recorders, mobile phones, etc. that are provided with color image capture devices or displays, to process the captured color images, or in computer systems, To perform color matching processing on color images.

虽然参考目前视为较佳的实施例,说明本发明,但是,应了解本发明不限于所揭示的实施例。相反地,发明系用以涵盖包含于后附申请专利范围的精神及范围内之不同修改及均等性。下述申请专利范围的范围系以最广义的解释包含所有此种修改及等效结构和功能。While the present invention has been described with reference to what are presently considered to be the preferred embodiments, it is to be understood that the invention is not limited to the disclosed embodiments. On the contrary, the invention is intended to cover various modifications and equivalents included within the spirit and scope of the appended claims. The scope of the following claims is to be construed in the broadest sense to encompass all such modifications and equivalent structures and functions.

Claims (7)

1.一种用于数位影像之色彩匹配方法,包括下列步骤:1. A color matching method for digital images, comprising the following steps: 撷取数位影像中复数个主要颜色讯号作为输入讯号;Capture a plurality of main color signals in digital images as input signals; 转换步骤,从该复数个主要颜色讯号取得3×3的色彩矩阵,及将该复数个输入颜色讯号分别转换成3×1的照明度、色调、饱合度(LAB)座标矩阵,该色彩矩阵及输入的LAB座标矩阵分别表示如下:The conversion step is to obtain a 3×3 color matrix from the plurality of main color signals, and convert the plurality of input color signals into a 3×1 illuminance, hue, saturation (LAB) coordinate matrix, the color matrix and the input LAB coordinate matrix are expressed as follows: 色彩矩阵: a 11 a 12 a 13 a 21 a 22 a 23 a 31 a 32 a 33 - - - ( 1 ) Color matrix: a 11 a 12 a 13 a twenty one a twenty two a twenty three a 31 a 32 a 33 - - - ( 1 ) 输入矩阵: L in a in b in - - - ( 2 ) Input matrix: L in a in b in - - - ( 2 ) 色彩矩阵之各元素a11至a33系为实数,Lin、ain、bin分别表示各颜色转换后之LAB座标;及Each element a 11 to a 33 of the color matrix is a real number, and Lin, a in , and bin represent the LAB coordinates of each color after conversion ; and 色差计算步骤,根据该色彩矩阵、权重矩阵及校正矩阵所组成的色彩校正式,递回地迭代计算该复数个颜色的输出及色差,直至该色差小于临界值,该色差系定义为
Figure F061D1760120061026C000013
Figure F061D1760120061026C000014
其中,Lout、aout、及bout系该颜色输出的LAB座标,LRef、aRef、及bRef系该颜色的LAB基准座标,而该色彩校正式(1)为
The color difference calculation step is to recursively iteratively calculate the output and color difference of the plurality of colors according to the color correction formula formed by the color matrix, the weight matrix and the correction matrix, until the color difference is less than a critical value, and the color difference is defined as
Figure F061D1760120061026C000013
Figure F061D1760120061026C000014
Among them, L out , a out , and b out are the LAB coordinates of the color output, L Ref , a Ref , and b Ref are the LAB reference coordinates of the color, and the color correction formula (1) is
LL outout aa outout bb outout == (( aa 1111 aa 1212 aa 1313 aa 21twenty one aa 22twenty two aa 23twenty three aa 3131 aa 3232 aa 3333 ++ ww 1111 ww 1212 ww 1313 ww 21twenty one ww 22twenty two ww 23twenty three ww 3131 ww 3232 ww 3333 kk 1111 kk 1212 kk 1313 kk 21twenty one kk 22twenty two kk 23twenty three kk 3131 kk 3232 kk 3333 )) xx LL inin aa inin bb inin -- -- -- (( 11 )) 其中, L out a out b out 为该颜色输出之LAB座标矩阵, w 11 w 12 w 13 w 21 w 22 w 23 w 31 w 32 w 33 为该权重矩阵,in, L out a out b out is the LAB coordinate matrix of the color output, w 11 w 12 w 13 w twenty one w twenty two w twenty three w 31 w 32 w 33 is the weight matrix, k 11 k 12 k 13 k 21 k 22 k 23 k 31 k 32 k 33 为该校正矩阵,该校正矩阵中各元素定义如下: k 11 k 12 k 13 k twenty one k twenty two k twenty three k 31 k 32 k 33 For the correction matrix, each element in the correction matrix is defined as follows: kij=Pij+Dij+Iij k ij =P ij +D ij +I ij 其中,Pij=Ep=KpxΔE(t)Among them, P ij =Ep=K p xΔE(t) Dij=Ed=Kdx(ΔE(t)-ΔE(t-1))D ij = Ed = K d x (ΔE(t)-ΔE(t-1)) II ijij == EiEi == KK ii ∫∫ -- ∞∞ ΔEΔE (( tt )) dtdt 其中,Kp、Kd、及Ki分别为比例控制系数、微分控制系数、及积分控制系数。Wherein, K p , K d , and K i are proportional control coefficients, differential control coefficients, and integral control coefficients, respectively.
2.如申请专利范围第1项之方法,其中,该转换步骤系依据国际照明协会(CIE)标准而执行。2. The method as claimed in item 1 of the scope of the patent application, wherein the converting step is performed according to the standards of the International Council of Illumination (CIE). 3.如申请专利范围第1项之方法,其中,该校正矩阵中各元素的关系为i=j的各元素与i≠j的各元素不相等,但是,i=j的各元素彼此相等,且i≠j的各元素也彼此相等。3. The method as claimed in claim 1, wherein the relationship between the elements in the correction matrix is that each element of i=j is not equal to each element of i≠j, but each element of i=j is equal to each other, And the elements of i≠j are also equal to each other. 4.一种彩色影像捕捉装置,使用如申请专利范围第1至3项中任一项之方法以对捕捉到的彩色影像执行色彩匹配处理。4. A color image capture device, using the method according to any one of items 1 to 3 of the scope of the patent application to perform color matching processing on the captured color image. 5.一种数位相机,具有彩色影像捕捉器及显示器,其中,该彩色影像捕捉器使用如申请专利范围第1至3项中任一项的方法,对摄得的彩色影像执行色彩匹配处理。5. A digital camera with a color image capture and a display, wherein the color image capture uses the method in any one of items 1 to 3 of the scope of the patent application to perform color matching processing on the captured color images. 6.一种行动电话,具有彩色影像捕捉器及显示器,其中,该彩色影像捕捉器使用如申请专利范围第1至3项中任一项的方法,对摄得的彩色影像执行色彩匹配处理。6. A mobile phone with a color image capturer and a display, wherein the color image capturer uses the method according to any one of items 1 to 3 in the scope of the patent application to perform color matching processing on the captured color image. 7.一种电脑系统,使用如申请专利范围第1至3项中任一项的方法,对彩色影像执行色彩匹配处理。7. A computer system that performs color matching processing on color images by using the method of any one of items 1 to 3 in the scope of the patent application.
CN2006101317601A 2006-10-06 2006-10-06 Color matching method, and image capturing apparatus and electronic device using the same Expired - Fee Related CN101159878B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2006101317601A CN101159878B (en) 2006-10-06 2006-10-06 Color matching method, and image capturing apparatus and electronic device using the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2006101317601A CN101159878B (en) 2006-10-06 2006-10-06 Color matching method, and image capturing apparatus and electronic device using the same

Publications (2)

Publication Number Publication Date
CN101159878A CN101159878A (en) 2008-04-09
CN101159878B true CN101159878B (en) 2011-07-13

Family

ID=39307774

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2006101317601A Expired - Fee Related CN101159878B (en) 2006-10-06 2006-10-06 Color matching method, and image capturing apparatus and electronic device using the same

Country Status (1)

Country Link
CN (1) CN101159878B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5199864B2 (en) * 2008-01-30 2013-05-15 三洋電機株式会社 Signal processing apparatus and projection display apparatus
US9350899B2 (en) * 2012-09-14 2016-05-24 Qualcomm Incorporated Methods and device for efficient resampling and resizing of digital images
CN106952231B (en) * 2017-03-20 2019-06-11 南京大学 A real-time image correction method based on mobile phone platform
CN108668122A (en) * 2017-03-31 2018-10-16 宁波舜宇光电信息有限公司 Color rendition method and equipment for spectral response curve
CN108495101B (en) * 2018-04-08 2019-10-11 北京大恒图像视觉有限公司 A kind of method for correcting image, device, image capture device and readable storage medium storing program for executing
CN115918066A (en) * 2020-08-24 2023-04-04 华为技术有限公司 Display method and device and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003079327A1 (en) * 2002-03-18 2003-09-25 Seiko Epson Corporation Image display apparatus, image processing method, program, and recording medium
WO2004002167A1 (en) * 2002-06-21 2003-12-31 Samsung Electronics Co., Ltd. Color calibrator for flat panel display and method thereof
CN1764231A (en) * 2004-10-18 2006-04-26 汤姆森许可贸易公司 Apparatus and method for color correction of an input image

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003079327A1 (en) * 2002-03-18 2003-09-25 Seiko Epson Corporation Image display apparatus, image processing method, program, and recording medium
WO2004002167A1 (en) * 2002-06-21 2003-12-31 Samsung Electronics Co., Ltd. Color calibrator for flat panel display and method thereof
CN1764231A (en) * 2004-10-18 2006-04-26 汤姆森许可贸易公司 Apparatus and method for color correction of an input image

Also Published As

Publication number Publication date
CN101159878A (en) 2008-04-09

Similar Documents

Publication Publication Date Title
JP2008092565A (en) Color matching method and imaging apparatus
CN102137272B (en) Method for calibrating colors of multiple cameras in open environment
CN111292246B (en) Image color correction method, storage medium, and endoscope
KR100886099B1 (en) Automatic calculation device and method of gamma correction curve
KR101092539B1 (en) Imaging device that automatically adjusts white balance and its white balance adjustment method
US8547450B2 (en) Methods and systems for automatic white balance
JP6530751B2 (en) Image processing apparatus, imaging apparatus, information processing apparatus, image processing method and program
CN104935900B (en) Image sensing device, color correction matrix correction method and lookup table establishment method
US20090147098A1 (en) Image sensor apparatus and method for color correction with an illuminant-dependent color correction matrix
CN101159878B (en) Color matching method, and image capturing apparatus and electronic device using the same
JP2009050003A (en) Nonlinear color correction
US20150348245A1 (en) Color correction parameter computation method, color correction parameter computation device, and image output system
CN104574371A (en) High dynamic color digital camera characterization calibration method
CN115426487B (en) Color correction matrix adjustment method, device, electronic equipment and readable storage medium
US20130093915A1 (en) Multi-Illuminant Color Matrix Representation and Interpolation Based on Estimated White Points
CN113850738B (en) Correction device and method for purple fringing of image
CN111010557B (en) White point range determining method, white balance correcting method and device, and storage medium
JP4136820B2 (en) Color conversion matrix calculation method and color correction method
US8284260B2 (en) Optimal raw RGB determination for color calibration
US20240331604A1 (en) Calibration of a color display device
US9066056B2 (en) Systems for constant hue and adaptive color correction image processing
KR101143834B1 (en) Aparatus and metod for controlling auto white balance
JP6413210B2 (en) Image processing apparatus, imaging apparatus, and program
JP4051171B2 (en) White balance adjustment device
CN105812761A (en) Image color reduction method and terminal

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
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20110713

Termination date: 20131006