CN103079077B - A kind of image processing method - Google Patents

A kind of image processing method Download PDF

Info

Publication number
CN103079077B
CN103079077B CN201110328898.1A CN201110328898A CN103079077B CN 103079077 B CN103079077 B CN 103079077B CN 201110328898 A CN201110328898 A CN 201110328898A CN 103079077 B CN103079077 B CN 103079077B
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.)
Active
Application number
CN201110328898.1A
Other languages
Chinese (zh)
Other versions
CN103079077A (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

Abstract

A kind of image processing method, belongs to digital image processing field, and this image processing method comprises the steps: S1, obtains red component, green component, the blue component of each pixel of image; S2, between picture frame dynamic stage, setting color correction matrix or setting color gamut space transition matrix or calculate the combinatorial matrix of product of color correction coefficient matrix and color gamut space transition matrix; S3, in the image line valid period, color correction matrix or color gamut space transition matrix or combinatorial matrix is utilized to correct the red component of each pixel of described image, green component, blue component.This image processing method can carry out the selection of image procossing on demand; And if carry out colour correction and space transforming process simultaneously, the method is in the different time periods to the merging of color correction coefficient matrix and color gamut space transition matrix and image rectification, can multiplier be reused, reduce the use of multiplier, thus reach the effect reducing circuit area.

Description

A kind of image processing method
Technical field
The invention belongs to digital image processing field, particularly relate to a kind of image processing method.
Background technology
In the prior art, due to the impact of color filters (colorfilter) characteristic, the image color taken with cmos image sensing device is not often just, namely from cmos sensor, color of image out has colour cast, need certain method to correct, a kind of known bearing calibration is:
Take the picture of color verification sheet (colorchecker)-Standard colour board, calculate the mean value of each block color lump in captured image, the standard value of color lump corresponding to Standard colour board compares, estimate direction and scope that in color correction matrix (colormatrix), each correction coefficient (colorcoefficient) should be adjusted, until reach the object of colour correction.Color correction formula is as follows:
(1’)
Wherein, R ', G ', B ' are the standard value in Standard colour board, and R, G, B are the value that after shooting, image is corresponding, and Colorcorrectionmatrix is color correction matrix.
In cmos sensor device, be generally 3X3 matrix as known color in common use correction matrix:
(2’)
And need meet: M11+M12+M13=1; (3 ')
M21+M22+M23=1;(4’)
M31+M32+M33=1;(5‘)
The formula that rgb space data are transformed into YCbCr space is as follows:
(6’)
for color gamut space transition matrix. for YCbCr spatial data, for the rgb space data after colour correction.
The colour correction of prior art and rgb space are transformed into YCbCr space, carry out respectively all step by step, can not select on demand.In addition, if need to carry out colour correction and space conversion operation simultaneously, need to carry out repeatedly multiplying, required multiplier is also many, makes the area of image processing circuit larger.
Summary of the invention
The present invention solves the technical problem existed in conventional images processing method, provides a kind of image processing method.
A kind of image processing method, comprises the steps:
Red component, green component, the blue component of S1, each pixel of acquisition image;
S2, between picture frame dynamic stage, setting color correction matrix or setting color gamut space transition matrix or calculate the combinatorial matrix of product of color correction matrix and described color gamut space transition matrix;
S3, in the image line valid period, described color correction matrix or described color gamut space transition matrix or described combinatorial matrix is utilized to correct the red component of each pixel of described image, green component, blue component.
Image processing method of the present invention between picture frame dynamic stage, setting color correction matrix or setting color gamut space transition matrix or calculate the combinatorial matrix of color correction matrix and color gamut space transition matrix product; In the image line valid period, described color correction matrix or described color gamut space transition matrix or described combinatorial matrix is utilized to correct the red component of each pixel of described image, green component, blue component.This image processing method can carry out the selection of image procossing on demand, if and carry out colour correction and space transforming process simultaneously, the merging to color correction matrix and color gamut space transition matrix in the method and image rectification are in the different time periods, multiplier can be reused, reduce the use of multiplier, thus reach the effect reducing circuit area.
Accompanying drawing explanation
Fig. 1 is the image processing method flow chart that the embodiment of the present invention 1 provides.
Fig. 2 is the oscillogram of the frame synchronizing signal that provides of the embodiment of the present invention and line synchronizing signal.
Fig. 3 be the embodiment of the present invention 2 provide image processing method flow chart.
Fig. 4 be the embodiment of the present invention provide according to the current integration time and current global gain value adjustment color correction matrix method flow diagram.
Embodiment
In order to make technical problem solved by the invention, technical scheme and beneficial effect clearly understand, 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, be 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:
Red component, green component, the blue component of S1, each pixel of acquisition image;
S2, between picture frame dynamic stage, setting color correction matrix or setting color gamut space transition matrix or calculate the combinatorial matrix of product of color correction matrix and color gamut space transition matrix;
S3, in the image line valid period, described color correction matrix or described color gamut space transition matrix or described combinatorial matrix is utilized to correct the red component of each pixel of described image, green component, blue component.
As shown in Figure 2, T1 is picture frame section ineffective time, and T2 is image line section effective time.In order to determine between frame dynamic stage, need to detect and be in frame invalid time started and end time.In order to determine the row valid period, detection is needed to be in frame effectively and row effective time started and end time.
Described color correction matrix is:
(1)
And need meet: M11+M12+M13=1; (2)
M21+M22+M23=1;(3)
M31+M32+M33=1;(4)
Described colorcorrectionmatrix is color correction matrix, and described M11, M12, M13, M21, M22, M23, M31, M32, M33 are color correction coefficient;
Color gamut space transition matrix is ; A11, a12, a13, a21, a21, a23, a31, a32, a33 are color gamut space conversion coefficient.
The formula calculating the combinatorial matrix presetting color correction matrix and default color gamut space transition matrix product is as follows: (6)
for combinatorial matrix, for color gamut space transition matrix, for color correction matrix.
Image processing method of the present invention between picture frame dynamic stage, setting color correction matrix or setting color gamut space transition matrix or calculate the combinatorial matrix of color correction matrix and color gamut space transition matrix product; In the image line valid period, described color correction matrix or described color gamut space transition matrix or described combinatorial matrix is utilized to correct the red component of each pixel of described image, green component, blue component.This image processing method can carry out the selection of image procossing on demand, if and carry out colour correction and space conversion operation simultaneously, the merging to color correction matrix and color gamut space transition matrix in the method and image rectification are in the different time periods, multiplier can be reused, reduce the use of multiplier, thus reach the effect reducing circuit area.
Carry out linear transformations by the constant color correction matrix of 3*3 to input picture, multiplication calculates introduces extra noise, and the image noise that each processing links is introduced under low light shines superposes the noise level that will cause final image bad luck.Color representation and noise level are two large important indicators of assess image quality.All very large in dark scene lower integral time and global gain, corresponding noise is also in high level.Consider that low light is according to the reality more even more important than color representation of Noise measarement level under scene, then adopt the coefficient reducing color correction matrix to reduce noise.
A kind of processing method between the step S1 and step S2 of described image processing method, adds following steps: S4: between picture frame dynamic stage, obtain current integration time and current global gain value;
S5: between picture frame dynamic stage, according to described current integration time and described current global gain value adjustment 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 picture frame dynamic stage, obtains current integration time and current global gain value;
S5: between picture frame dynamic stage, according to described current integration time and described current global gain value adjustment color correction matrix;
S2, between picture frame dynamic stage, set the combinatorial matrix of the product of the color correction matrix after described adjustment or setting color gamut space transition matrix or the color correction matrix after calculating described adjustment and color gamut space transition matrix;
S3, in the image line valid period, the color correction matrix after described adjustment or described color gamut space transition matrix or described combinatorial matrix is utilized to correct the red component of each pixel of described image, green component, blue component.
As the embodiment of the present invention, as shown in Figure 4, described step S5 specifically comprises:
S51, judge whether the described current integration time is greater than threshold value described time of integration, when the described current integration time is greater than the described threshold value time of integration, then judge to enter low light scene;
S52, under low light scene, judge whether described current global gain value is greater than described global gain threshold value, if described current global gain value is greater than described global gain threshold value, judge to need automatically to adjust color correction matrix;
If S53 judges to need automatically to adjust color correction matrix, calculate the difference of described current global gain value and global gain threshold value, utilize difference determination regulation coefficient k;
S54, regulation coefficient k is utilized to adjust described color correction matrix.
The difference of described current global gain value and global gain threshold value is larger, then regulation coefficient k value is less, and the span of described regulation coefficient k is [0,1], and namely when difference is larger, be then currently in half-light environment, corresponding noise is also in high level.Consider that low light is according to the reality more even more important than color representation of Noise measarement level under scene, then K gets minimum value 0, and the coefficient reducing color correction matrix reaches the object reducing picture noise.When difference is less, then K gets maximum 1, makes image have higher color representation.
Color correction matrix after described adjustment is as follows:
(5) described in for adjusting rear color correction matrix, k is regulation coefficient.
As embodiments of the invention, then in corresponding step S2, between picture frame dynamic stage, the combinatorial matrix calculating the color correction matrix after adjustment and color gamut space transition matrix product is specific as follows:
Combinatorial matrix is:
(7)
for combinatorial matrix, for color gamut space transition matrix, for the color correction matrix after adjustment.
Image processing method of the present invention is between picture frame dynamic stage, according to current integration time and current global gain value, color correction matrix is adjusted, to meet the demand of image being carried out under different light scene to colour correction, between picture frame dynamic stage, the color correction matrix also after setting adjustment or the combinatorial matrix of setting color gamut space transition matrix or the color correction matrix after calculating adjustment and color gamut space transition matrix product; In the image line valid period, after utilizing described adjustment, color correction matrix or described color gamut space transition matrix or described combinatorial matrix correct the red component of each pixel of described image, green component, blue component.This image processing method can carry out the selection of image procossing on demand, if and carry out colour correction and space transforming process simultaneously, the merging to color correction matrix and color gamut space transition matrix in the method and image rectification are in the different time periods, multiplier can be reused, reduce the use of multiplier, thus reach the effect reducing circuit area.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.

Claims (6)

1. an image processing method, is characterized in that, comprises the steps:
Red component, green component, the blue component of S1, each pixel of acquisition image;
S2, between picture frame dynamic stage, setting color correction matrix or setting color gamut space transition matrix or calculate the combinatorial matrix of product of color correction matrix and color gamut space transition matrix;
S3, in the image line valid period, described color correction matrix or described color gamut space transition matrix or described combinatorial matrix is utilized to correct the red component of each pixel of described image, green component, blue component;
Also comprise the steps: between the step S1 of described image processing method and step S2
S4: between picture frame dynamic stage, obtains current integration time and current global gain value;
S5: between picture frame dynamic stage, according to described current integration time and described current global gain value adjustment color correction matrix;
Described step S5 comprises:
S51, judge whether the described current integration time is greater than threshold value described time of integration, when the described current integration time is greater than the described threshold value time of integration, then judge to enter low light scene;
S52, under low light scene, judge whether described current global gain value is greater than described global gain threshold value, if described current global gain value is greater than described global gain threshold value, judge to need automatically to adjust color correction matrix;
If S53 judges to need automatically to adjust color correction matrix, calculate the difference of described current global gain value and global gain threshold value, utilize difference determination regulation coefficient k;
S54, regulation coefficient k is utilized to adjust described color correction matrix.
2. image processing method as claimed in claim 1, it is characterized in that, described step S53 is specially: described difference is larger, then regulation coefficient k value is less.
3. image processing method as claimed in claim 2, it is characterized in that, the span of described regulation coefficient k is [0,1].
4. image processing method as claimed in claim 1, it is characterized in that, described color correction matrix is:
(1)
And need meet: M11+M12+M13=1; (2)
M21+M22+M23=1;(3)
M31+M32+M33=1;(4)
Described colorcorrectionmatrix is color correction matrix, and described M11, M12, M13, M21, M22, M23, M31, M32, M33 are color correction coefficient;
After described adjustment, matrix is:
(5)
Described for adjusting rear color correction matrix, k is regulation coefficient.
5. image processing method as claimed in claim 1, it is characterized in that, described image processing method also comprises: detect and be in frame invalid time started and end time.
6. image processing method as claimed in claim 1, it is characterized in that, described image processing method also comprises: detect and be in frame effectively and row effective time started and end 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 CN103079077A (en) 2013-05-01
CN103079077B true 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)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI525578B (en) 2015-08-05 2016-03-11 國立清華大學 Image analysis method and apparatus for investigation of peritoneal dialysis complications in peritoneal dialysis
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
CN110379358B (en) * 2019-07-04 2021-03-30 南京宇丰晔禾信息科技有限公司 LED display screen image playing and controlling method and device
CN117649661B (en) * 2024-01-30 2024-04-12 青岛超瑞纳米新材料科技有限公司 Carbon nanotube preparation state image processing method

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

Also Published As

Publication number Publication date
CN103079077A (en) 2013-05-01

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
CN108353125B (en) Color filter array scaler
CN101193314B (en) Image processing device and method for image sensor
US7764319B2 (en) Image processing apparatus, image-taking system, image processing method and image processing program
CN102724405B (en) Method and device for automatic exposure compensation of backlit scenes in video imaging system
US8472717B2 (en) Foreground image separation method
US8175378B2 (en) Method and system for noise management for spatial processing in digital image/video capture systems
CN103079077B (en) A kind of image processing method
CN101242542B (en) An image detection method and device
US20080056607A1 (en) Method and apparatus for image noise reduction using noise models
CN112752023B (en) Image adjusting method and device, electronic equipment and storage medium
US20060215908A1 (en) Image pickup apparatus and image processing method
CN104581105B (en) Based on the auto white balance method of colour temperature range conversion weight map and the correction of block reliability
JP2002027491A (en) Image input unit, white balance adjusting method, and computer readable recording medium storing program for executing the method
US9444979B2 (en) Imaging device and image processing method
KR101639664B1 (en) Photographing apparatus and photographing method
CN104079909A (en) Automatic white balance method and device for image
EP3460748B1 (en) Dynamic range compression device and image processing device cross-reference to related application
CN110686783A (en) Blind pixel detection method and image processing method for InGaAs short-wave infrared imager
US20100053366A1 (en) Device and method for image processing, program, and imaging apparatus
JP4878776B2 (en) Image signal calibration device, image output device, and digital camera
US20070013714A1 (en) Simple and robust color saturation adjustment for digital images
JP2003333616A (en) White balance adjustment method, image pickup device, program, and storage medium
CN202721740U (en) Automatic exposure compensation device of backlight type scenes in video imaging system

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