CN103079077A - Image processing method - Google Patents

Image processing method Download PDF

Info

Publication number
CN103079077A
CN103079077A CN2011103288981A CN201110328898A CN103079077A CN 103079077 A CN103079077 A CN 103079077A CN 2011103288981 A CN2011103288981 A CN 2011103288981A CN 201110328898 A CN201110328898 A CN 201110328898A CN 103079077 A CN103079077 A CN 103079077A
Authority
CN
China
Prior art keywords
matrix
color correction
image processing
processing method
image
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
CN2011103288981A
Other languages
Chinese (zh)
Other versions
CN103079077B (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.)
BYD Semiconductor Co Ltd
Original Assignee
BYD Co 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 BYD Co Ltd filed Critical BYD Co Ltd
Priority to CN201110328898.1A priority Critical patent/CN103079077B/en
Publication of CN103079077A publication Critical patent/CN103079077A/en
Application granted granted Critical
Publication of CN103079077B publication Critical patent/CN103079077B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

The invention relates to an image processing method, which belongs to the field of digital image processing. The image processing method comprises the following steps that S1 a red component, a green component and a blue component of each pixel of an image are obtained; S2 in the process that an image frame is invalid, a color correction matrix, a color gamut space transformation matrix or a combined matrix for calculating the product of the color correction coefficient calculation matrix and the color gamut space transformation matrix is set; and S3 in the process that an image line is valid, the color correction matrix, the color gamut space transformation matrix or the combined matrix is utilized to correct the red component, the green component and the blue component of each pixel of the image. According to the image processing method, image processing can be selected as required; if color correction and space transformation are performed simultaneously, the combination of the color correction coefficient matrix and the color gamut space transformation matrix and image correction are at different time; a multiplier can be recycled; and the use of the multiplier is reduced, thereby achieving the effect of reducing a circuit area.

Description

A kind of image processing method
Technical field
The invention belongs to digital image processing field, relate in particular to a kind of image processing method.
Background technology
In the prior art, because the impact of color filters (color filter) characteristic, the image color of taking with the cmos image sensing device often not just, namely out color of image has colour cast from cmos sensor, need certain method to proofread and correct, a kind of known bearing calibration is:
Take the picture of a color verification sheet (color checker)-Standard colour board, calculate the mean value of each piece color lump in the captured image, compare with the standard value of corresponding color lump in the Standard colour board, estimate each correction coefficient (color coefficient) should be transferred in the color correction matrix (color matrix) direction and scope, until reach the purpose of colour correction.The color correction formula is as follows:
(1’)
Wherein, R ', G ', B ' are the standard value in the Standard colour board, and R, G, B are value corresponding to image after taking, and Color correction matrix is the color correction matrix.
In the cmos sensor device, be generally the 3X3 matrix as known color in common use correction matrix:
Figure 530863DEST_PATH_IMAGE002
(2’)
And need to satisfy: M11+M12+M13=1; (3 ')
M21+M22+M23=1; (4’)
M31+M32+M33=1; (5‘)
It is as follows that the rgb space data are transformed into the formula in YCbCr space:
Figure 565946DEST_PATH_IMAGE003
(6’)
Figure 916156DEST_PATH_IMAGE004
Be the color gamut space transition matrix.
Figure 364062DEST_PATH_IMAGE005
Be the YCbCr spatial data,
Figure 483327DEST_PATH_IMAGE006
Be the rgb space data after the process colour correction.
The colour correction of prior art and rgb space are transformed into the YCbCr space, all carry out respectively step by step, can not select on demand.In addition, if need to carry out simultaneously colour correction and space translation operation, need to carry out repeatedly multiplying, required multiplier is also many, so that the area of image processing circuit is larger.
Summary of the invention
The present invention provides a kind of image processing method for solving the technical problem that exists in the conventional images processing method.
A kind of image processing method comprises the steps:
S1, the red component that obtains each pixel of image, green component, blue component;
S2, at picture frame between dynamic stage, set color correction matrix or set the color gamut space transition matrix or calculate the combinatorial matrix of the product of color correction matrix and described color gamut space transition matrix;
S3, in the image line valid period, utilize described color correction matrix or described color gamut space transition matrix or described combinatorial matrix that red component, green component, the blue component of described each pixel of image are proofreaied and correct.
Image processing method of the present invention, is set color correction matrix or is set the color gamut space transition matrix or the combinatorial matrix of calculating color correction matrix and color gamut space transition matrix product between dynamic stage at picture frame; In the image line valid period, utilize described color correction matrix or described color gamut space transition matrix or described combinatorial matrix that red component, green component, the blue component of described each pixel of image are proofreaied and correct.This image processing method can carry out the selection that image is processed on demand, if and carry out simultaneously colour correction and space conversion process, in the method color correction matrix is in the different time periods from merging and the image rectification of color gamut space transition matrix, can reuse multiplier, reduce the use of multiplier, thereby reach the effect that reduces circuit area.
Description of drawings
Fig. 1 is the image processing method flow chart that the embodiment of the invention 1 provides.
Fig. 2 is the frame synchronizing signal that provides of the embodiment of the invention and the oscillogram of line synchronizing signal.
Fig. 3 be the embodiment of the invention 2 provide the image processing method flow chart.
Fig. 4 is the method flow diagram according to the current time of integration and current global gain value adjustment color correction matrix that the embodiment of the invention provides.
Embodiment
In order to make technical problem solved by the invention, technical scheme and beneficial effect clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, is not intended to limit the present invention.
The embodiment of a kind of image processing method of the present invention as shown in Figure 1, comprises the steps:
S1, the red component that obtains each pixel of image, green component, blue component;
S2, at picture frame between dynamic stage, set color correction matrix or set the color gamut space transition matrix or calculate the combinatorial matrix of the product of color correction matrix and color gamut space transition matrix;
S3, in the image line valid period, utilize described color correction matrix or described color gamut space transition matrix or described combinatorial matrix that red component, green component, the blue component of described each pixel of image are proofreaied and correct.
As shown in Figure 2, T1 is picture frame section ineffective time, and T2 is image line section effective time.In order to determine frame between dynamic stage, need detection to be in invalid time started of frame and concluding time.In order to determine the row valid period, need detection to be in frame effectively and effective time started of row and concluding time.
Described color correction matrix is:
Figure 125530DEST_PATH_IMAGE007
(1)
And need to satisfy: M11+M12+M13=1; (2)
M21+M22+M23=1; (3)
M31+M32+M33=1; (4)
Described color correction matrix is color correction matrix, and described M11, M12, M13, M21, M22, M23, M31, M32, M33 are color correction coefficient;
The color gamut space transition matrix is
Figure 963036DEST_PATH_IMAGE008
A11, a12, a13, a21, a21, a23, a31, a32, a33 are the color gamut space conversion coefficient.
The formula that calculates the combinatorial matrix of presetting color correction matrix and default color gamut space transition matrix product is as follows:
Figure 155245DEST_PATH_IMAGE009
(6)
Figure 378285DEST_PATH_IMAGE010
Be combinatorial matrix,
Figure 942122DEST_PATH_IMAGE011
Be the color gamut space transition matrix,
Figure 952410DEST_PATH_IMAGE012
Be color correction matrix.
Image processing method of the present invention, is set color correction matrix or is set the color gamut space transition matrix or the combinatorial matrix of calculating color correction matrix and color gamut space transition matrix product between dynamic stage at picture frame; In the image line valid period, utilize described color correction matrix or described color gamut space transition matrix or described combinatorial matrix that red component, green component, the blue component of described each pixel of image are proofreaied and correct.This image processing method can carry out the selection that image is processed on demand, if and carry out simultaneously colour correction and space translation operation, in the method color correction matrix is in the different time periods from merging and the image rectification of color gamut space transition matrix, can reuse multiplier, reduce the use of multiplier, thereby reach the effect that reduces circuit area.
Constant color correction matrix with 3*3 is carried out linear transformations to input picture, and multiplication calculates introduces extra noise, and the image noise stack that each processing links is introduced under low light shines will cause the noise level of final image bad luck.Color representation and noise level are two large important indicators of evaluation map image quality.All very large in dark scene lower integral time and global gain, corresponding noise also is in high level.Consider that low light shows even more important reality according to noise control level under the scene than color, then adopt the coefficient that reduces color correction matrix to reduce noise.
A kind of processing method is, adds following steps: S4 between the step S1 of described image processing method and step S2: between dynamic stage, obtain the current time of integration and current global gain value at picture frame;
S5: at picture frame between dynamic stage, according to the described current time of integration and described current global gain value adjusting color correction matrix.
As shown in Figure 3, then whole image processing method comprises the steps: S1, obtains red component, green component, the blue component of each pixel of image;
S4: between dynamic stage, obtain the current time of integration and current global gain value at picture frame;
S5: at picture frame between dynamic stage, according to the described current time of integration and described current global gain value adjusting color correction matrix;
S2, at picture frame between dynamic stage, set the color correction matrix after the described adjustment or set the color gamut space transition matrix or calculate described adjustment after color correction matrix and the combinatorial matrix of the product of color gamut space transition matrix;
S3, in the image line valid period, utilize color correction matrix after the described adjustment or described color gamut space transition matrix or described combinatorial matrix that red component, green component, the blue component of described each pixel of image are proofreaied and correct.
As the embodiment of the invention, as shown in Figure 4, described step S5 specifically comprises:
S51, judge the described current time of integration whether greater than described time of integration of threshold value, when the described current time of integration greater than described time of integration during threshold value, then judge to enter the low light scene;
S52, under the low light scene, whether judge described current global gain value greater than described global gain threshold value, if described current global gain value greater than described global gain threshold value, judgement need to be adjusted automatically to color correction matrix;
Need automatically to adjust color correction matrix if S53 judges, calculate the difference of described current global gain value and global gain threshold value, utilize difference to determine to adjust coefficient k;
S54, utilization are adjusted coefficient k described color correction matrix are adjusted.
The difference of described current global gain value and global gain threshold value is larger, then adjusts the coefficient k value less, and the span of described adjustment coefficient k is [0,1], namely when difference is larger, and the current half-light environment that is in then, corresponding noise also is in high level.Consider that low light shows even more important reality according to noise control level under the scene than color, then K gets minimum value 0, and the coefficient that reduces color correction matrix reaches the purpose that reduces picture noise.When difference hour, then K gets maximum 1, makes image have higher color representation.
Color correction matrix after the described adjustment is as follows:
Figure 243582DEST_PATH_IMAGE013
(5) described For adjusting rear color correction matrix, k is for adjusting coefficient.
As embodiments of the invention, then among the corresponding step S2, between dynamic stage, the color correction matrix after calculating is adjusted and the combinatorial matrix of color gamut space transition matrix product are specific as follows at picture frame:
Combinatorial matrix is:
Figure 822911DEST_PATH_IMAGE015
(7)
Figure 202987DEST_PATH_IMAGE010
Be combinatorial matrix,
Figure 314162DEST_PATH_IMAGE004
Be the color gamut space transition matrix,
Figure 449477DEST_PATH_IMAGE016
Be the color correction matrix after adjusting.
Image processing method of the present invention is at picture frame between dynamic stage, according to the current time of integration and current global gain value color correction matrix being adjusted, to satisfy the demand of under the different light scene image being carried out colour correction, between dynamic stage, also set color correction matrix or the color correction matrix after setting color gamut space transition matrix or the calculating adjustment and the combinatorial matrix of color gamut space transition matrix product after adjusting at picture frame; In the image line valid period, utilize after the described adjustment color correction matrix or described color gamut space transition matrix or described combinatorial matrix that red component, green component, the blue component of described each pixel of image are proofreaied and correct.This image processing method can carry out the selection that image is processed on demand, if and carry out simultaneously colour correction and space conversion process, in the method color correction matrix is in the different time periods from merging and the image rectification of color gamut space transition matrix, can reuse multiplier, reduce the use of multiplier, thereby reach the effect that reduces circuit area.
The above only is preferred embodiment of the present invention, not in order to limiting the present invention, all any modifications of doing within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (8)

1. an image processing method is characterized in that, comprises the steps:
S1, the red component that obtains each pixel of image, green component, blue component;
S2, at picture frame between dynamic stage, set color correction matrix or set the color gamut space transition matrix or calculate the combinatorial matrix of the product of color correction matrix and color gamut space transition matrix;
S3, in the image line valid period, utilize described color correction matrix or described color gamut space transition matrix or described combinatorial matrix that red component, green component, the blue component of described each pixel of image are proofreaied and correct.
2. image processing method as claimed in claim 1 is characterized in that, also comprises the steps: between the step S1 of described image processing method and the step S2
S4: between dynamic stage, obtain the current time of integration and current global gain value at picture frame;
S5: at picture frame between dynamic stage, according to the described current time of integration and described current global gain value adjusting color correction matrix.
3. image processing method as claimed in claim 2 is characterized in that, described step S5 comprises:
S51, judge the described current time of integration whether greater than described time of integration of threshold value, when the described current time of integration greater than described time of integration during threshold value, then judge to enter the low light scene;
S52, under the low light scene, whether judge described current global gain value greater than described global gain threshold value, if described current global gain value greater than described global gain threshold value, judgement need to be adjusted automatically to color correction matrix;
Need automatically to adjust color correction matrix if S53 judges, calculate the difference of described current global gain value and global gain threshold value, utilize difference to determine to adjust coefficient k;
S54, utilization are adjusted coefficient k described color correction matrix are adjusted.
4. image processing method as claimed in claim 3 is characterized in that, described step S54 is specially: described difference is larger, then adjusts the coefficient k value less.
5. image processing method as claimed in claim 4 is characterized in that, the span of described adjustment coefficient k is [0,1].
6. image processing method as claimed in claim 3 is characterized in that, described color correction matrix is:
(1)
And need to satisfy: M11+M12+M13=1; (2)
M21+M22+M23=1; (3)
M31+M32+M33=1; (4)
Described color correction matrix is color correction matrix, and described M11, M12, M13, M21, M22, M23, M31, M32, M33 are color correction coefficient;
Matrix is after the described adjustment:
Figure 904590DEST_PATH_IMAGE002
(5)
Described
Figure 767504DEST_PATH_IMAGE003
For adjusting rear color correction matrix, k is for adjusting coefficient.
7. image processing method as claimed in claim 1 is characterized in that, described image processing method also comprises: detection is in invalid time started of frame and concluding time.
8. image processing method as claimed in claim 1 is characterized in that, described image processing method also comprises: detection is in frame effectively and effective time started of row and concluding time.
CN201110328898.1A 2011-10-26 2011-10-26 A kind of image processing method Active CN103079077B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110328898.1A CN103079077B (en) 2011-10-26 2011-10-26 A kind of image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110328898.1A CN103079077B (en) 2011-10-26 2011-10-26 A kind of image processing method

Publications (2)

Publication Number Publication Date
CN103079077A true CN103079077A (en) 2013-05-01
CN103079077B CN103079077B (en) 2016-03-30

Family

ID=48155470

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110328898.1A Active CN103079077B (en) 2011-10-26 2011-10-26 A kind of image processing method

Country Status (1)

Country Link
CN (1) CN103079077B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9633432B2 (en) 2015-08-05 2017-04-25 National Tsing Hua University Image analysis method and apparatus for assessment of peritoneal dialysis complication in peritoneal dialysis
CN107197224A (en) * 2017-05-25 2017-09-22 西安诺瓦电子科技有限公司 Video processor, method for processing video frequency and device
CN110379358A (en) * 2019-07-04 2019-10-25 南京宇丰晔禾信息科技有限公司 LED display image broadcast control method, device
WO2020000477A1 (en) * 2018-06-30 2020-01-02 华为技术有限公司 Color gamut correction method and apparatus
CN117649661A (en) * 2024-01-30 2024-03-05 青岛超瑞纳米新材料科技有限公司 Carbon nanotube preparation state image processing method
CN117934344A (en) * 2024-02-06 2024-04-26 青岛冠成软件有限公司 Image processing method based on commodity circulation commodity

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1758704A (en) * 2005-11-11 2006-04-12 北京中星微电子有限公司 Realizing method of color matrix in color correction
CN101242476A (en) * 2008-03-13 2008-08-13 北京中星微电子有限公司 Automatic correction method of image color and digital camera system
CN101511033A (en) * 2008-12-18 2009-08-19 昆山锐芯微电子有限公司 Image processing process for CMOS image sensor

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1758704A (en) * 2005-11-11 2006-04-12 北京中星微电子有限公司 Realizing method of color matrix in color correction
CN101242476A (en) * 2008-03-13 2008-08-13 北京中星微电子有限公司 Automatic correction method of image color and digital camera system
CN101511033A (en) * 2008-12-18 2009-08-19 昆山锐芯微电子有限公司 Image processing process for CMOS image sensor

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9633432B2 (en) 2015-08-05 2017-04-25 National Tsing Hua University Image analysis method and apparatus for assessment of peritoneal dialysis complication in peritoneal dialysis
CN107197224A (en) * 2017-05-25 2017-09-22 西安诺瓦电子科技有限公司 Video processor, method for processing video frequency and device
CN107197224B (en) * 2017-05-25 2019-08-23 西安诺瓦星云科技股份有限公司 Video processor, method for processing video frequency and device
WO2020000477A1 (en) * 2018-06-30 2020-01-02 华为技术有限公司 Color gamut correction method and apparatus
CN110379358A (en) * 2019-07-04 2019-10-25 南京宇丰晔禾信息科技有限公司 LED display image broadcast control method, device
CN110379358B (en) * 2019-07-04 2021-03-30 南京宇丰晔禾信息科技有限公司 LED display screen image playing and controlling method and device
CN117649661A (en) * 2024-01-30 2024-03-05 青岛超瑞纳米新材料科技有限公司 Carbon nanotube preparation state image processing method
CN117649661B (en) * 2024-01-30 2024-04-12 青岛超瑞纳米新材料科技有限公司 Carbon nanotube preparation state image processing method
CN117934344A (en) * 2024-02-06 2024-04-26 青岛冠成软件有限公司 Image processing method based on commodity circulation commodity

Also Published As

Publication number Publication date
CN103079077B (en) 2016-03-30

Similar Documents

Publication Publication Date Title
CN108600725B (en) White balance correction device and method based on RGB-IR image data
EP3343911B1 (en) Image signal processing method and system
US6842536B2 (en) Image processing apparatus, image processing method and computer program product for correcting image obtained by shooting subject
US8160381B2 (en) Method and apparatus for image noise reduction using noise models
CN101242542B (en) An image detection method and device
CN101193314B (en) Image processing device and method for image sensor
CN103079077B (en) A kind of image processing method
KR100467610B1 (en) Method and apparatus for improvement of digital image quality
CN112752023B (en) Image adjusting method and device, electronic equipment and storage medium
US20090027521A1 (en) Image processing apparatus, image-taking system, image processing method and image processing program
WO2009064537A1 (en) Method and system for noise management for spatial processing in digital image/video capture systems
CN102724405A (en) Method and device for automatic exposure compensation of backlit scenes in video imaging system
CN103733608B (en) Image processing apparatus and control method therefor
JP2006324840A (en) Image processing apparatus and white balance adjusting device
US8648937B2 (en) Image processing apparatus, image processing method, and camera module
JP2010219797A (en) Edge enhancement image processing apparatus
KR101639664B1 (en) Photographing apparatus and photographing method
EP3460748B1 (en) Dynamic range compression device and image processing device cross-reference to related application
US7701462B2 (en) Simple and robust color saturation adjustment for digital images
JP5378282B2 (en) Purple fringe correction device, control method thereof, and program for correcting purple fringe
CN101051117B (en) Method and device for correcting lens image non-uniformity and extracting lens parameter
US8896731B2 (en) Image processing apparatus, image processing method, and camera module
JP4044826B2 (en) Semiconductor integrated circuit
JP2006060744A (en) Noise reduction apparatus
JP5858735B2 (en) Color correction apparatus and color correction method

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: 20191203

Address after: 518119 1 Yanan Road, Kwai Chung street, Dapeng New District, Shenzhen, Guangdong

Patentee after: Shenzhen BYD Microelectronics Co., Ltd.

Address before: BYD 518118 Shenzhen Road, Guangdong province Pingshan New District No. 3009

Patentee before: Biyadi Co., Ltd.

TR01 Transfer of patent right
CP03 Change of name, title or address

Address after: 518119 No.1 Yan'an Road, Kuiyong street, Dapeng New District, Shenzhen City, Guangdong Province

Patentee after: BYD Semiconductor Co.,Ltd.

Address before: 518119 No.1 Yan'an Road, Kwai Chung street, Dapeng New District, Shenzhen City, Guangdong Province

Patentee before: SHENZHEN BYD MICROELECTRONICS Co.,Ltd.

CP03 Change of name, title or address