CN101355634B - Method and system for regulating image chromaticity - Google Patents

Method and system for regulating image chromaticity Download PDF

Info

Publication number
CN101355634B
CN101355634B CN 200810118880 CN200810118880A CN101355634B CN 101355634 B CN101355634 B CN 101355634B CN 200810118880 CN200810118880 CN 200810118880 CN 200810118880 A CN200810118880 A CN 200810118880A CN 101355634 B CN101355634 B CN 101355634B
Authority
CN
China
Prior art keywords
image
adjusting
matrix
rgb
chroma
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.)
Active
Application number
CN 200810118880
Other languages
Chinese (zh)
Other versions
CN101355634A (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.)
Beijing Zhongxingtianshi Technology Co ltd
Original Assignee
Vimicro 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 Vimicro Corp filed Critical Vimicro Corp
Priority to CN 200810118880 priority Critical patent/CN101355634B/en
Publication of CN101355634A publication Critical patent/CN101355634A/en
Application granted granted Critical
Publication of CN101355634B publication Critical patent/CN101355634B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Color Image Communication Systems (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

The invention provides a method and a system for adjusting image chroma. The method comprises the following: the relational expression of an RGB value after the image chroma is adjusted and an RGB value before the image chroma is adjusted is preset, preset relational expression is obtained by calculating the formula for converting the RGB into YUV, the formula for adjusting the image chroma, and the formula for converting the YUV to the RGB; the parameter for adjusting the image chroma is received; aiming at the RGB value of the image to be adjusted, the parameter is substituted to the preset relational expression, the RGB value after the chroma is adjusted is obtained by calculation; the RGB value after the image chroma is adjusted is outputted to finish the adjustment of the image chroma. When the image chroma is adjusted, because the converting process of the RGB and the YUV consumes resources, while the conversion needed in each time of adjustment in the prior art is simplified to one time of conversion, therefore, the method and the system greatly save the calculation resources and improve the efficiency of adjusting the chroma.

Description

A kind of method and system of adjusting image chroma
Technical field
The present invention relates to image processing field, particularly relate to a kind of method and system of adjusting image chroma.
Background technology
RGB (red, green, blue) the most frequently used purposes of color space is exactly display system, for example, color cathode ray tube, the display of chromatic grating figure etc. all uses R, G, B numerical value to drive R, G, B electron gun electron emission, and R, the G on the fluorescence excitation screen, the fluorescent material of three kinds of colors of B send the light of different brightness respectively, and mix the generation shades of colour by addition.Scanner is also by absorbing R, G, the B composition of original copy in the light that reflection or transmission are sent, and represents the color of original copy with it.
A kind of colour coding method that YUV (also claiming YCrCb) is adopted by the eurovision system, wherein Y represents brightness, and UV represents colourity (Chrominance or Chroma), and colourity has defined two aspect-saturations and the tone of color.In modern vitascan, usually adopt three pipe colour camera or colored CCD (Charge Coupled Device, being charge coupled device) video camera carries out capture, then the color picture signal of obtaining through color separation, obtain RGB after amplification correction respectively, obtain brightness signal Y and two color difference signal R-Y (being U), B-Y (being V) through matrixer again, last transmitting terminal is encoded brightness and three signals of aberration respectively, sends with same channel.The expression of this color is exactly so-called YUV color space.
General, in the image of prior art is processed, as digital camera, camera, the display systems such as Digital Television are when needs are adjusted the colourity of image, want first by color picture signal through color separation, the RGB that obtains after amplification correction respectively, be converted to YUV through the matrix varying circuit; Then according to the colourity adjustment formula, by adjusting the parameter of colourity, YUV is adjusted; After adjustment is completed, then YUV is converted to RGB shows.Often do once and to adjust, just need to repeat aforesaid operations once, and in the adjustment process of reality, usually will adjust repeatedly and just can reach customer satisfaction system effect.
Because the calculating of the conversion between RGB and YUV need to take larger computational resource, and above-mentioned processing procedure needs conversion computational process repeatedly, thereby causes adopting the process of above-mentioned prior art adjustment image chroma complicated, and amount of calculation is large, and consumption of natural resource is many.
Thus, need the urgent technical problem that solves of those skilled in the art to be exactly: to simplify the process of adjusting image chroma, saving resource.
Summary of the invention
Technical problem to be solved by this invention is to provide a kind of method and system of adjusting image chroma, can be good at simplifying the process of adjusting image chroma, saving resource greatly.
In order to address the above problem, the invention discloses a kind of method of adjusting image chroma, comprise the following steps: the relational expression of rgb value before rgb value and Image Adjusting colourity after prediction picture adjustment colourity, described preset relation formula is converted to the formula of YUV by RGB, adjust the formula of image chroma, and YUV is converted to the formula of RGB, calculates; Receive the parameter of adjusting image chroma; For the rgb value of the image of required adjustment, described parameter is brought in described preset relation formula, calculate the rgb value of adjusting after colourity; Export the rgb value after the described Image Adjusting colourity that calculates, complete the adjustment to image chroma.
Further, described image chroma comprises the saturation of image and the tone of image.
Preferably, described preset relation formula can represent with the form of matrix.
The invention also discloses a kind of method of being adjusted image chroma by color matrices, comprise the following steps: preset relation matrix, described relational matrix are multiplied each other by color matrices and parameter matrix and obtain; Described parameter matrix has been described after Image Adjusting colourity the relation between rgb value before rgb value and Image Adjusting colourity with matrix form; Described parameter matrix is converted to the formula of YUV by RGB, adjust the formula of image chroma, and YUV is converted to the formula of RGB, calculates and with matrix representation; Receive the parameter of adjusting image chroma; For the rgb matrix of the image of required adjustment, described parameter is brought in the described relational matrix that presets, calculate the rgb value after described Image Adjusting; Export the rgb value after the described Image Adjusting that calculates, complete the adjustment to image; Described adjustment comprises the adjustment to image chroma.
Further, described image chroma comprises the saturation of image and the tone of image.
In order to address the above problem, the invention also discloses a kind of system that adjusts image chroma, described system can comprise:
Memory cell is used for storage one relational expression that sets in advance, and described relational expression is used for Description Image and adjusts after colourity the relation of rgb value before rgb value and Image Adjusting colourity; Described preset relation formula is converted to the formula of YUV by RGB, adjust the formula of image chroma, and YUV is converted to the formula of RGB, calculates;
Interface unit is used for receiving the parameter of adjusting image chroma;
Computing unit is used for the rgb value for the image of required adjustment, and the adjustment parameter that receives is brought in described preset relation formula, calculates the rgb value of adjusting after colourity;
Output unit is used for exporting the rgb value after the described Image Adjusting colourity that calculates, and completes the adjustment to image chroma.
Further, described image chroma comprises the saturation of image and the tone of image.
Preferably, described preset relation formula represents with the form of matrix.
The invention also discloses a kind of system that is adjusted image chroma by color matrices, described system can comprise:
Memory module is used for storage one relational matrix that sets in advance, and described relational matrix is multiplied each other by color matrices and parameter matrix and obtains; Described parameter matrix has been described after Image Adjusting colourity the relation between rgb value before rgb value and Image Adjusting colourity with matrix form; Described parameter matrix is converted to the formula of YUV by RGB, adjust the formula of image chroma, and YUV is converted to the formula of RGB, calculates and with matrix representation;
Interface module is used for receiving the parameter of adjusting image chroma;
Computing module is used for the rgb matrix for the image of required adjustment, and the adjustment parameter that receives is brought in the described relational matrix that presets, and calculates the rgb value after described Image Adjusting;
Output module is used for exporting the rgb value after the described Image Adjusting that calculates, and completes the adjustment to image; Described adjustment comprises the adjustment to image chroma.
Further, described image chroma comprises the saturation of image and the tone of image.
Compared with prior art, the present invention has the following advantages:
The present invention is by first calculating rgb value after described Image Adjusting colourity and the relational expression of the rgb value before described Image Adjusting colourity, then calling such relational expression in each colourity adjustment calculates, adjusting the described relational expression of parameter substitution, can be adjusted the rgb value of rear image, complete the adjustment to image.Be the present invention when color is adjusted, (in the process that obtains relational expression) calculated in the conversion that only needs to do between RGB and YUV.Because transfer process between RGB and YUV is unusual consumes resources, and the present invention only is reduced to once conversion with RGB and the conversion between YUV that each adjustment in prior art all needs to carry out, therefore the present invention has greatly saved computational resource, has improved the efficient that colourity is adjusted, and satisfies the needs of chip design.
Secondly, color matrices is also a kind of Image Adjusting means commonly used, and the present invention can also unite two into one color matrices adjustment process and aforesaid colourity adjustment process, namely can realize also having adjusted image chroma when adjusting image by color matrices; Further the process of simplified image colourity adjustment, raise the efficiency.
Description of drawings
Fig. 1 is a kind of flow chart of steps of adjusting the embodiment of the method for image chroma of the present invention;
Fig. 2 is a kind of flow chart of steps of adjusting the embodiment of the method for image saturation of the present invention;
Fig. 3 is a kind of flow chart of steps of adjusting the embodiment of the method for picture tone of the present invention;
A kind of flow chart of steps of adjusting the embodiment of the method for image (adjusting simultaneously saturation) with color matrices of Fig. 4 the present invention;
A kind of flow chart of steps of adjusting the embodiment of the method for image (adjusting simultaneously tone) with color matrices of Fig. 5 the present invention;
Fig. 6 is a kind of structured flowchart of adjusting the system embodiment of image chroma of the present invention;
Fig. 7 is a kind of structured flowchart of adjusting the system embodiment of image with color matrices of the present invention.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, the present invention is further detailed explanation below in conjunction with the drawings and specific embodiments.
With reference to Fig. 1, show a kind of embodiment of the method for adjusting image chroma, can be used at digital camera, camera is adjusted image chroma in the display systems such as Digital Television, specifically can comprise:
Step 101, prediction picture are adjusted after colourity the relational expression of rgb value before rgb value and Image Adjusting colourity, and described preset relation formula is converted to the formula of YUV by RGB, adjust the formula of image chroma, and YUV is converted to the formula of RGB, calculate; Preferably, described preset relation formula can adopt the form of matrix to represent.
The parameter of image chroma is adjusted in step 102, reception.
Step 103, for the rgb value of the image of required adjustment, described parameter is brought in described preset relation formula, calculate the rgb value of adjusting after colourity.
Rgb value after step 104, the described Image Adjusting colourity that calculates of output is completed the adjustment to image chroma.
General, image chroma can comprise two dimensions, and one is saturation, and one is tone; Therefore, adjustment image chroma of the present invention can comprise the adjustment image saturation and adjust picture tone.Wherein, saturation (Saturation) refers to intensity or the purity of color, and it represents the ratio of grey and tone; Tone (Hue) refers to the wavelength of object conduction or reflection, and commonly with color such as redness, orange or green are come identification.
Colourity adjustment of the present invention can be used in the adjustment of above-mentioned arbitrary dimension, and is as follows, and Fig. 2 and Fig. 3 show respectively the adjustment embodiment to saturation and tone.
With reference to Fig. 2, show a kind of embodiment of the method for adjusting image saturation, specifically can comprise:
Step 201, prediction picture are adjusted after saturation the relational expression of rgb value before rgb value and Image Adjusting saturation, and described preset relation formula is converted to the formula of YUV by RGB, adjust the formula of image saturation, and YUV is converted to the formula of RGB, calculate.
Concrete example is described as follows:
General, the formula that described RGB is converted to YUV can be expressed as:
Y=0.299*R+0.587*G+0.114*B
U=-0.172*R-0.339*G+0.511*B............(1)
V=0.511*R-0.428*G-0.083*B
The formula of adjusting image saturation on YUV can be expressed as:
Y=Y
U=k*U............(2)
V=k*V
Wherein, k is the parameter of the adjustment image saturation that receives;
The formula that described YUV is converted to RGB can be expressed as:
R=Y+1.371*V
G=Y-0.698*V-0.336*U............(3)
B=Y+1.732*U
(2) formula is brought in (3) formula obtains:
R=Y+1.371*k*V
G=Y-0.698*k*V-0.336*k*U............(4)
B=Y+1.732*k*U
In (1) formula substitution (4) formula, obtain relational expression (5) through calculating abbreviation again, as follows:
R=(0.299+0.701*k)*R+(0.587-0.587*k)*G+(0.114-0.114*k)*B
G=(0.299-0.299*k)*R+(0.587+0.413*k)*G+(0.114-0.114*k)*B
B=(0.299-0.298*k)*R+(0.587-0.587*k)*G+(0.114+0.885*k)*B
Above-mentioned relational expression (5) has just been described after the Image Adjusting saturation relation between rgb value before rgb value and Image Adjusting saturation.The R on the relational expression left side, G, B component are the rgb value after the Image Adjusting saturation, and R, G, the B component on relational expression the right is the rgb value before the Image Adjusting saturation.
In the image processing process of reality, described relational expression (5) also can convert the form of matrix to and express, and the matrix form of expression is as follows:
R 1 , G 1 , B 1 , R 2 , G 2 , B 2 , R 3 , G 3 , B 3 , . . . . . . Rn , Gn , Bn , = R 1 G 1 B 1 R 2 G 2 B 2 R 3 G 3 B 3 . . . . . . Rn Gn Bn * 0.299 + 0.701 * k 0.299 - 0.299 * k 0.299 - 0.298 * k 0.587 - 0.587 * k 0.587 + 0.413 * k 0.587 - 0.587 * k 0.114 - 0.114 * k 0.114 - 0.114 * k 0.114 + 0.885 * k
General, in the formula of described (1)-(5), the span of U is [128,128], and the span of V is [128,128], and the span of k is [0,2], and k is the parameter of the adjustment image saturation that receives.
The parameter k of image saturation is adjusted in step 202, reception.
Step 203, for the rgb value of the image of required adjustment, described parameter k is brought in described preset relation formula (5), calculate the rgb value after described Image Adjusting saturation.
Rgb value after step 204, the described Image Adjusting saturation that calculates of output is completed the adjustment to image saturation.
With reference to Fig. 3, show a kind of embodiment of the method for adjusting picture tone, specifically can comprise:
Step 301, prediction picture are adjusted after tone the relational expression of rgb value before rgb value and Image Adjusting tone, and described preset relation formula is converted to the formula of YUV by RGB, adjust the formula of picture tone, and YUV is converted to the formula of RGB, calculate.Specifically describe as follows:
The formula that described RGB is converted to YUV is formula (1) as previously mentioned; The formula that described YUV is converted to RGB is formula (3) as previously mentioned; The formula of concrete adjustment picture tone can be expressed as:
Y=Y
U=U*cosθ+V*sinθ............(6)
V=V*cosθ-U*sinθ
Wherein, θ is the parameter of the adjustment picture tone that receives.
Concrete computational process is as follows:
(6) formula is brought in (3) formula obtains:
R=Y+1.371*(V*cosθ-U*sinθ)
G=Y-0.698*(V*cosθ-U*sinθ)-0.336*(U*cosθ+V*sinθ)......(7)
B=Y+1.732*(U*cosθ+V*sinθ)
In (1) formula substitution (7) formula, obtain relational expression (8) through calculating abbreviation again, as follows:
R=(0.299+0.701*cosθ+0.236*sinθ)*R+(0.587-0.587*cosθ+0.465*sinθ)*G+(0.114-0.114*cosθ-0.701*sinθ)*B
G=(0.299-0.317*cosθ-0.292*sinθ)*R+(0.587+0.413*cosθ-0.093*sinθ)*G+(0.114-0.114*cosθ+0.385*sinθ)*B
B=(0.299-0.298*cosθ+0.885*sinθ)*R+(0.587-0.587*cosθ-0.741*sinθ)*G+(0.114+0.885*cosθ-0.144*sinθ)*B
Above-mentioned relation formula (8) is after the Image Adjusting tone relational expression of rgb value before rgb value and Image Adjusting tone.The R on the relational expression left side, G, B component are the rgb value after the Image Adjusting tone, and R, G, the B component on relational expression the right is the rgb value before the Image Adjusting tone.
In the image processing process of reality, described relational expression (8) can convert the form of matrix to and express, and the matrix form of expression is as follows:
R 1 , G 1 , B 1 , R 2 , G 2 , B 2 , R 3 , G 3 , B 3 , . . . . . . Rn , Gn , Bn , = R 1 G 1 B 1 R 2 G 2 B 2 R 3 G 3 B 3 . . . . . . Rn Gn Bn *
0.299 + 0.701 * cos θ + 0.236 * sin θ 0.299 - 0.317 * cos θ - 0.292 * sin θ 0.299 - 0 . 298 * cos θ + 0.885 * sin θ 0.587 - 0.587 * cos θ + 0.465 * sin θ 0.587 + 0.413 * cos θ - 0.093 * sin θ 0.587 - 0.587 * cos θ - 0.741 * sin θ 0.114 - 0.114 * cos θ - 0.701 * sin θ 0.114 - 0.114 * cos θ + 0.385 * sin θ 0.114 + 0.885 * cos θ - 0.144 * sin θ
General, in the formula of described (6)-(8), the span of U is [128,128], and the span of V is [128,128], and the span of θ is [30 °, 30 °], and θ is the parameter of the adjustment picture tone that receives.
The parameter θ of picture tone is adjusted in step 302, reception.
Step 303, for the rgb value of the image of required adjustment, described parameter θ is brought in described preset relation formula (8), calculate the rgb value after described Image Adjusting tone.
Rgb value after step 304, the described Image Adjusting tone that calculates of output is completed the adjustment to picture tone.
In the image of prior art is processed, except adjust image with the means of adjusting colourity, can also carry out whole adjusting to image color by color matrices, the present invention can realize adjustment process and the colourity adjustment process of color matrices to image united two into one, namely when adjusting image by color matrices, also adjusted image chroma, raised the efficiency.With reference to Fig. 4 and Fig. 5, show respectively the embodiment of the method for adjusting image (adjusting simultaneously the saturation of image) with color matrices, and the embodiment of the method for adjusting image (adjusting simultaneously the tone of image) with color matrices.
The below simply introduces color matrices.
Color matrices (ColorMatrix) is a kind of matrix that is commonly used to adjust image color.
At digital camera, camera, Digital Television, in the display systems such as computer, image can be regarded set a little as, and point itself is the set of red (R) green (G) blue (B), so image can be expressed as rgb matrix, as follows:
R 1 G 1 B 1 R 2 G 2 B 2 R 3 G 3 B 3 . . . . . . Rn Gn Bn
Wherein, every delegation of matrix has just represented R, G, the B component of a pixel.
Usually, color matrices can be set as the matrix of a 3*3 according to the adjustment needs, as follows:
C 11 C 12 C 13 C 21 C 22 C 23 C 31 C 32 C 33
The step of image color being regulated by color matrices adopts rgb matrix and color matrices to multiply each other on processing procedure, and the rgb matrix after can being adjusted is as follows:
R 1 G 1 B 1 R 2 G 2 B 2 R 3 G 3 B 3 . . . . . . Rn Gn Bn * C 11 C 12 C 13 C 21 C 22 C 23 C 31 C 32 C 33 =
R 1 * C 11 + G 1 * C 21 + B 1 * C 31 R 1 * C 12 + G 1 * C 22 + B 1 * C 32 R 1 * C 13 + G 1 * C 23 + B 1 * C 33 ΛΛ ΛΛ ΛΛ ΛΛ ΛΛ ΛΛ
In described rgb matrix and color matrices multiply each other the new matrix that obtains, can see, the R of new matrix the first row (namely first point of new picture), G, B component equal the new mixed number of all RGB of first point of former picture.Namely multiply each other by original rgb matrix and color matrices, can change the value of each component of picture pixel RGB on picture original basis, thereby reach the adjusting to picture color.
With reference to Fig. 4, show a kind of embodiment of the method for adjusting image (adjusting simultaneously the saturation of image) with color matrices, specifically can comprise:
Step 401, preset relation matrix, described relational matrix are multiplied each other by color matrices and parameter matrix and obtain; Described parameter matrix has been described after the Image Adjusting saturation relation between rgb value before rgb value and Image Adjusting saturation with matrix form; Described parameter matrix is converted to the formula of YUV by RGB, adjust the formula of image saturation, and YUV is converted to the formula of RGB, calculates and with matrix representation.
As previously mentioned, is converted to the formula of YUV by RGB, adjusts the formula of image saturation, and YUV is converted to the formula of RGB, calculate following relational expression:
R 1 , G 1 , B 1 , R 2 , G 2 , B 2 , R 3 , G 3 , B 3 , . . . . . . Rn , Gn , Bn , = R 1 G 1 B 1 R 2 G 2 B 2 R 3 G 3 B 3 . . . . . . Rn Gn Bn * 0.299 + 0.701 * k 0.299 - 0.299 * k 0.299 - 0.298 * k 0.587 - 0.587 * k 0.587 + 0.413 * k 0.587 - 0.587 * k 0.114 - 0.114 * k 0.114 - 0.114 * k 0.114 + 0.885 * k
Wherein, R 1 G 1 B 1 R 2 G 2 B 2 R 3 G 3 B 3 . . . . . . Rn Gn Bn Rgb matrix (a) for the image of required adjustment;
R 1 , G 1 , B 1 , R 2 , G 2 , B 2 , R 3 , G 3 , B 3 , . . . . . . Rn , Gn , Bn , Be the R ' G ' B ' matrix after described Image Adjusting saturation (a ');
0.299 + 0.701 * k 0.299 - 0.299 * k 0.299 - 0.298 * k 0.587 - 0.587 * k 0.587 + 0.413 * k 0.587 - 0.587 * k 0.114 - 0.114 * k 0.114 - 0.114 * k 0.114 + 0.885 * k Be described parameter matrix (b);
Described parameter matrix (b) has just been described after the Image Adjusting saturation relation between rgb value before rgb value and Image Adjusting saturation.
The color matrix of filling in colors on a sketch is matrix (c), and is as follows:
C 11 C 12 C 13 C 21 C 22 C 23 C 31 C 32 C 33 ... matrix (c)
Relational matrix can be multiplied each other by color matrices (c) and parameter matrix (b) and obtain;
Relational matrix can be expressed as thus:
d 11 d 12 d 13 d 21 d 22 d 23 d 31 d 32 d 33 ... matrix (d)
Wherein,
d11=c11*(0.299+0.701*k)+c12*(0.587-0.587*k)+c13*(0.114-0.114*k)
d12=c11*(0.299-0.299*k)+c12*(0.587+0.413*k)+c13*(0.114-0.114*k)
d13=c11*(0.299-0.298*k)+c12*(0.587-0.587*k)+c13*(0.114+0.885*k)
d21=c21*(0.299+0.701*k)+c22*(0.587-0.587*k)+c23*(0.114-0.114*k)
d22=c21*(0.299-0.299*k)+c22*(0.587+0.413*k)+c23*(0.114-0.114*k)
d23=c21*(0.299-0.298*k)+c22*(0.587-0.587*k)+c23*(0.114+0.885*k)
d31=c31*(0.299+0.701*k)+c32*(0.587-0.587*k)+c33*(0.114-0.114*k)
d32=c31*(0.299-0.299*k)+c32*(0.587+0.413*k)+c33*(0.114-0.114*k)
d33=c31*(0.299-0.298*k)+c32*(0.587-0.587*k)+c33*(0.114+0.885*k)
The parameter k of saturation is adjusted in step 402, reception.
Step 403, for the rgb matrix of the image of required adjustment, described parameter k is brought in the described relational matrix that presets, calculate the rgb value after described Image Adjusting.
Rgb value after step 404, the described Image Adjusting that calculates of output is completed the adjustment to image.
With reference to Fig. 5, show a kind of embodiment of the method for adjusting image (adjusting simultaneously the tone of image) with color matrices, specifically can comprise:
Step 501, preset relation matrix, described relational matrix are multiplied each other by color matrices and parameter matrix and obtain; Described parameter matrix has been described after the Image Adjusting tone relation between rgb value before rgb value and Image Adjusting tone with matrix form; Described parameter matrix is converted to the formula of YUV by RGB, adjust the formula of picture tone, and YUV is converted to the formula of RGB, calculates and with matrix representation.
As previously mentioned, is converted to the formula of YUV by RGB, adjusts the formula of picture tone, and YUV is converted to the formula of RGB, calculate following relational expression:
R 1 , G 1 , B 1 , R 2 , G 2 , B 2 , R 3 , G 3 , B 3 , . . . . . . Rn , Gn , Bn , = R 1 G 1 B 1 R 2 G 2 B 2 R 3 G 3 B 3 . . . . . . Rn Gn Bn *
0.299 + 0.701 * cos θ + 0.236 * sin θ 0.299 - 0.317 * cos θ - 0.292 * sin θ 0.299 - 0 . 298 * cos θ + 0.885 * sin θ 0.587 - 0.587 * cos θ + 0.465 * sin θ 0.587 + 0.413 * cos θ - 0.093 * sin θ 0.587 - 0.587 * cos θ - 0.741 * sin θ 0.114 - 0.114 * cos θ - 0.701 * sin θ 0.114 - 0.114 * cos θ + 0.385 * sin θ 0.114 + 0.885 * cos θ - 0.144 * sin θ
Wherein, R 1 G 1 B 1 R 2 G 2 B 2 R 3 G 3 B 3 . . . . . . Rn Gn Bn Rgb matrix (A) for the image of required adjustment;
R 1 , G 1 , B 1 , R 2 , G 2 , B 2 , R 3 , G 3 , B 3 , . . . . . . Rn , Gn , Bn , Be the R ' G ' B ' matrix after described Image Adjusting tone (A ');
0.299 + 0.701 * cos θ + 0.236 * sin θ 0.299 - 0.317 * cos θ - 0.292 * sin θ 0.299 - 0 . 298 * cos θ + 0.885 * sin θ 0.587 - 0.587 * cos θ + 0.465 * sin θ 0.587 + 0.413 * cos θ - 0.093 * sin θ 0.587 - 0.587 * cos θ - 0.741 * sin θ 0.114 - 0.114 * cos θ - 0.701 * sin θ 0.114 - 0.114 * cos θ + 0.385 * sin θ 0.114 + 0.885 * cos θ - 0.144 * sin θ
Be described parameter matrix (b ');
Described parameter matrix (b ') has just been described after the Image Adjusting tone relation between rgb value before rgb value and Image Adjusting tone.
The color matrix of filling in colors on a sketch is matrix (c '), and is as follows:
c , 11 c , 12 c , 13 c , 21 c , 22 c , 23 c , 31 c , 32 c , 33 ... matrix (c ')
Relational matrix can multiplying each other obtains by color matrices (c ') and parameter matrix (b ');
Relational matrix can be expressed as thus:
d , 11 d , 12 d , 13 d , 21 d , 22 d , 23 d , 31 d , 32 d , 33 ... matrix (d ')
Wherein,
d’11=c’11*(0.299+0.701*cosθ+0.236*sinθ)+c’12*(0.587-0.587*cosθ+ 0.465*sinθ)+c’13*(0.114-0.114*cosθ-0.701*sinθ)
d’12=c’11*(0.299-0.317*cosθ-0.292*sinθ)+c’12*(0.587+0.413*cosθ- 0.093*sinθ)+c’13*(0.114-0.114*cosθ+0.385*sinθ)
d’13=c’11*(0.299-0.298*cosθ+0.885*sinθ)+c’12*(0.587-0.587*cosθ- 0.741*sinθ)+c’13*(0.114+0.885*cosθ-0.144*sinθ)
d’21=c’21*(0.299+0.701*cosθ+0.236*sinθ)+c’22*(0.587-0.587*cosθ+ 0.465*sinθ)+c’23*(0.114-0.114*cosθ-0.701*sinθ)
d’22=c’21*(0.299-0.317*cosθ-0.292*sinθ)+c’22*(0.587+0.413*cosθ- 0.093*sinθ)+c’23*(0.114-0.114*cosθ+0.385*sinθ)
d’23=c’21*(0.299-0.298*cosθ+0.885*sinθ)+c’22*(0.587-0.587*cosθ- 0.741*sinθ)+c’23*(0.114+0.885*cosθ-0.144*sinθ)
d’31=c’31*(0.299+0.701*cosθ+0.236*sinθ)+c’32*(0.587-0.587*cosθ+ 0.465*sinθ)+c’33*(0.114-0.114*cosθ-0.701*sinθ)
d’32=c’31*(0.299-0.317*cosθ-0.292*sinθ)+c’32*(0.587+0.413*cosθ- 0.093*sinθ)+c’33*(0.114-0.114*cosθ+0.385*sinθ)
d’33=c’31*(0.299-0.298*cosθ+0.885*sinθ)+c’32*(0.587-0.587*cosθ- 0.741*sinθ)+c’33*(0.114+0.885*cosθ-0.144*sinθ)
The parameter θ of tone is adjusted in step 502, reception.
Step 503, for the rgb matrix of the image of required adjustment, described parameter θ is brought in the described relational matrix that presets, calculate the rgb value after described Image Adjusting.
Rgb value after step 504, the described Image Adjusting that calculates of output is completed the adjustment to image.
With reference to Fig. 6, show a kind of system embodiment of adjusting image chroma, specifically can comprise:
Memory cell 601 is used for storage one relational expression that sets in advance, and described relational expression is used for Description Image and adjusts after colourity the relation of rgb value before rgb value and Image Adjusting colourity; Described preset relation formula is converted to the formula of YUV by RGB, adjust the formula of image chroma, and YUV is converted to the formula of RGB, calculates.The colourity of described image can comprise the saturation of image or two dimensions of tone of image.
Interface unit 602 is used for receiving the parameter of adjusting image chroma.
Computing unit 603 is used for the rgb value for the image of required adjustment, and the adjustment parameter that receives is brought in described preset relation formula, calculates the rgb value of adjusting after colourity.
Output unit 604 is used for exporting the rgb value after the described Image Adjusting colourity that calculates, and completes the adjustment to image chroma.
Preferably, described preset relation formula represents with the form of matrix.
With reference to Fig. 7, show a kind of system embodiment of adjusting image with color matrices, specifically can comprise:
Memory module 701 is used for storage one relational matrix that sets in advance, and described relational matrix is multiplied each other by color matrices and parameter matrix and obtains; Described parameter matrix has been described after Image Adjusting colourity the relation between rgb value before rgb value and Image Adjusting colourity with matrix form; Described parameter matrix is converted to the formula of YUV by RGB, adjust the formula of image chroma, and YUV is converted to the formula of RGB, calculates and with matrix representation.The colourity of described image can comprise the saturation of image or two dimensions of tone of image.
Interface module 702 is used for receiving the parameter of adjusting image chroma.
Computing module 703 is used for the rgb matrix for the image of required adjustment, and the adjustment parameter that receives is brought in the described relational matrix that presets, and calculates the rgb value after described Image Adjusting.
Output module 704 is used for exporting the rgb value after the described Image Adjusting that calculates, and completes the adjustment to image; Described adjustment comprises the adjustment to image chroma.
For system embodiment, substantially corresponding to embodiment of the method, so description is fairly simple, relevant part gets final product referring to the part explanation of embodiment of the method due to it.
Above for the method and system for adjusting image chroma provided by the present invention, be described in detail, used specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (10)

1. a method of adjusting image chroma, is characterized in that, comprising:
Prediction picture is adjusted after colourity the relational expression of rgb value before rgb value and Image Adjusting colourity, and described relational expression is converted to the formula of YUV by RGB, adjust the formula of image chroma, and the formula that YUV is converted to RGB calculates;
Receive the parameter of adjusting image chroma;
For the rgb value of the image of required adjustment, described parameter is brought in described relational expression, calculate the rgb value of adjusting after colourity;
Export the rgb value after the described Image Adjusting colourity that calculates, complete the adjustment to image chroma.
2. method according to claim 1, is characterized in that,
Described image chroma comprises the saturation of image and the tone of image.
3. method according to claim 1, is characterized in that,
Described relational expression represents with the form of matrix.
4. a method of adjusting image chroma, is characterized in that, comprising:
Preset relation matrix, described relational matrix are multiplied each other by color matrices and parameter matrix and obtain; Described parameter matrix has been described after Image Adjusting colourity the relation between rgb value before rgb value and Image Adjusting colourity with matrix form; Described parameter matrix is converted to the formula of YUV by RGB, adjust the formula of image chroma, and the YUV formula that is converted to RGB calculates and with matrix representation;
Receive the parameter of adjusting image chroma;
For the rgb matrix of the image of required adjustment, described parameter is brought in the described relational matrix that presets, calculate the rgb value after described Image Adjusting;
Export the rgb value after the described Image Adjusting that calculates, complete the adjustment to image; Described adjustment comprises the adjustment to image chroma.
5. method according to claim 4, is characterized in that,
Described image chroma comprises the saturation of image and the tone of image.
6. a system that adjusts image chroma, is characterized in that, comprising:
Memory cell is used for storage one relational expression that sets in advance, and described relational expression is used for Description Image and adjusts after colourity the relation of rgb value before rgb value and Image Adjusting colourity; Described relational expression is converted to the formula of YUV by RGB, adjust the formula of image chroma, and the formula that YUV is converted to RGB calculates;
Interface unit is used for receiving the parameter of adjusting image chroma;
Computing unit is used for the rgb value for the image of required adjustment, and the adjustment parameter that receives is brought in described relational expression, calculates the rgb value of adjusting after colourity;
Output unit is used for exporting the rgb value after the described Image Adjusting colourity that calculates, and completes the adjustment to image chroma.
7. system according to claim 6, is characterized in that,
Described image chroma comprises the saturation of image and the tone of image.
8. system according to claim 6, is characterized in that,
Described relational expression represents with the form of matrix.
9. a system that adjusts image chroma, is characterized in that, comprising:
Memory module is used for storage one relational matrix that sets in advance, and described relational matrix is multiplied each other by color matrices and parameter matrix and obtains; Described parameter matrix has been described after Image Adjusting colourity the relation between rgb value before rgb value and Image Adjusting colourity with matrix form; Described parameter matrix is converted to the formula of YUV by RGB, adjust the formula of image chroma, and the YUV formula that is converted to RGB calculates and with matrix representation;
Interface module is used for receiving the parameter of adjusting image chroma;
Computing module is used for the rgb matrix for the image of required adjustment, and the adjustment parameter that receives is brought in the described relational matrix that presets, and calculates the rgb value after described Image Adjusting;
Output module is used for exporting the rgb value after the described Image Adjusting that calculates, and completes the adjustment to image; Described adjustment comprises the adjustment to image chroma.
10. system according to claim 9, is characterized in that,
Described image chroma comprises the saturation of image and the tone of image.
CN 200810118880 2008-08-26 2008-08-26 Method and system for regulating image chromaticity Active CN101355634B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200810118880 CN101355634B (en) 2008-08-26 2008-08-26 Method and system for regulating image chromaticity

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200810118880 CN101355634B (en) 2008-08-26 2008-08-26 Method and system for regulating image chromaticity

Publications (2)

Publication Number Publication Date
CN101355634A CN101355634A (en) 2009-01-28
CN101355634B true CN101355634B (en) 2013-06-05

Family

ID=40308196

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200810118880 Active CN101355634B (en) 2008-08-26 2008-08-26 Method and system for regulating image chromaticity

Country Status (1)

Country Link
CN (1) CN101355634B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101923455B (en) * 2010-09-01 2012-02-08 武汉大学 Method for displaying and analyzing digital image in YUV format
CN102231787B (en) * 2011-07-18 2013-02-13 格科微电子(上海)有限公司 Image color correction method and device
CN102752476A (en) * 2011-11-30 2012-10-24 新奥特(北京)视频技术有限公司 Method and device for adjusting image printing light in real time
CN103533322B (en) * 2012-07-03 2015-09-30 深圳深讯和科技有限公司 YUV frame is transcoded into method and the device of RGB frame
US9584811B2 (en) * 2013-06-17 2017-02-28 Dolby Laboratories Licensing Corporation Adaptive reshaping for layered coding of enhanced dynamic range signals
CN103399767A (en) * 2013-07-31 2013-11-20 深圳创维数字技术股份有限公司 Interface skin-changing method and device
CN104883552B (en) * 2015-05-22 2017-01-11 深圳市载德光电技术开发有限公司 YUV (Luma and Chroma) coded format-based image adjusting method and system
CN111279680A (en) * 2017-08-31 2020-06-12 深圳传音通讯有限公司 Square cutting photographing method, photographing system and photographing device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001054134A (en) * 1999-08-11 2001-02-23 Casio Comput Co Ltd Video encoder circuit
CN101035300A (en) * 2007-04-10 2007-09-12 北京中星微电子有限公司 Image enhancing method and device
CN101076125A (en) * 2007-06-18 2007-11-21 山东经济学院 Algorithm for optimizing RGB and YCbCr conversion computing in image compression
CN101080027A (en) * 2006-05-22 2007-11-28 普立尔科技股份有限公司 Method for improving difference of LCD image quality under different watching mode

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001054134A (en) * 1999-08-11 2001-02-23 Casio Comput Co Ltd Video encoder circuit
CN101080027A (en) * 2006-05-22 2007-11-28 普立尔科技股份有限公司 Method for improving difference of LCD image quality under different watching mode
CN101035300A (en) * 2007-04-10 2007-09-12 北京中星微电子有限公司 Image enhancing method and device
CN101076125A (en) * 2007-06-18 2007-11-21 山东经济学院 Algorithm for optimizing RGB and YCbCr conversion computing in image compression

Also Published As

Publication number Publication date
CN101355634A (en) 2009-01-28

Similar Documents

Publication Publication Date Title
CN101355634B (en) Method and system for regulating image chromaticity
RU2710291C2 (en) Methods and apparatus for encoding and decoding colour hdr image
CN1910901B (en) Smart clipper for mobile displays
US9472162B2 (en) Method of mapping source colors from a source color gamut into a target color gamut
US10666990B2 (en) Method and device for matching colors between color pictures of different dynamic range
CN1722773A (en) The color signal-processing method and the device that are used for color rendering equipment
US8411206B2 (en) Apparatus and method for decoding extended color space data
Eliav et al. Application driven design of multi-primary displays
Spaulding et al. Reference input/output medium metric rgb color encodings
JP4958638B2 (en) Color processing apparatus and method
US20110187891A1 (en) Methods and Systems for Automatic White Balance
US8456511B2 (en) Method and apparatus for reproducing image using output prediction
US8466936B2 (en) Color gamut mapping method for multimedia equipment, a television and a color processing apparatus
JP2007286120A (en) Device and method for displaying image
US20100156956A1 (en) Grayscale characteristic for non-crt displays
CN101501751B (en) Display device, method for generating four or more primary color signals
WO2018049754A1 (en) Color gamut maintaining system and method
CN101378515A (en) Method for transferring video signal colors and television set
CN102752605A (en) Method and system for regulating image/video color saturation degree
CN107371006A (en) Metadata transmission method for expanded color gamut
CN109348218B (en) Method for identifying YUV three-primary-color component under condition of multiple primary colors
KR101137611B1 (en) System and method for effectively performing an image data transformation procedure
CN114999363A (en) Color shift correction method, device, equipment, storage medium and program product
RU2705013C2 (en) Method and device for colour image encoding and decoding
Spaulding et al. Optimized extended gamut color encoding for scene-referred and output-referred image states

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
TR01 Transfer of patent right

Effective date of registration: 20210128

Address after: No. 602, 6th floor, shining building, 35 Xueyuan Road, Haidian District, Beijing 100083

Patentee after: BEIJING ZHONGXINGTIANSHI TECHNOLOGY Co.,Ltd.

Address before: 100083, Haidian District, Xueyuan Road, Beijing No. 35, Nanjing Ning building, 16 floor

Patentee before: Vimicro Corp.

TR01 Transfer of patent right