CN104735368A - CMOS sensor and method and device for regulating black levels in image of CMOS sensor - Google Patents

CMOS sensor and method and device for regulating black levels in image of CMOS sensor Download PDF

Info

Publication number
CN104735368A
CN104735368A CN201310705736.4A CN201310705736A CN104735368A CN 104735368 A CN104735368 A CN 104735368A CN 201310705736 A CN201310705736 A CN 201310705736A CN 104735368 A CN104735368 A CN 104735368A
Authority
CN
China
Prior art keywords
black level
value
difference
mean value
adjustment
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
CN201310705736.4A
Other languages
Chinese (zh)
Other versions
CN104735368B (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 CN201310705736.4A priority Critical patent/CN104735368B/en
Publication of CN104735368A publication Critical patent/CN104735368A/en
Application granted granted Critical
Publication of CN104735368B publication Critical patent/CN104735368B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a CMOS sensor and a method and device for regulating black levels in an image of the CMOS sensor. The method includes the following steps of calculating the average value of the black levers in each color channel in the image of the CMOS sensor, calculating the target value of the black levels in the image of the CMOS sensor, calculating the absolute value of the difference value between the average value of the black levels in each color channel and the target value of the black levels, conducting analog regulation on the average values of the black levels in the corresponding color channels when the absolute values of the difference values are larger than the first threshold value, and conducting digital regulation on the average values of the black levels in the corresponding color channels when the absolute values of the difference values are smaller than the first threshold value. When the method is implemented, each color channel can have a wider color representation range, and image flickering caused due to the fact that when the analog rough regulation is conducted on the black levels in the CMOS sensor, excessive regulation is generated can be effectively avoided.

Description

The method of adjustment of black level and device in cmos sensor and image thereof
Technical field
The present invention relates to image processing technique field, particularly relate to method of adjustment and the device of black level in a kind of cmos sensor and image thereof.
Background technology
In image restoration processing procedure, usually can be processed image by cmos image sensor.In the process that cmos image sensor processes image, black level is that objective reality is in the signal of image, because the physical structure of four Color Channels in transducer exists different with production technology, transducer is because of the impact of the time of integration and the difference of filter when photosensitive, and transducer can cause the black level that produces in four Color Channels inconsistent.Even and if transducer is not photosensitive, the black level in transducer also can produce difference because of the difference in four Color Channels.In addition, black level in transducer in same Color Channel also can change along with the change of the factors such as temperature, operating voltage and the time of integration, therefore, in cmos sensor, the black level of four Color Channels of image often produces deviation, causes the color expression range of output image, saturation changes.For this reason, usually need to adjust black level, existing method of adjustment is the mean value of the black level first calculating odd column and even column Color Channel, then, compare by the desired value of its parity column respectively, and feedback regulation value given analog module (ASP, analog signal processing) or directly view data processed.
But existing only to the method that odd even two Color Channels adjust, wherein certain Color Channel can be caused to regulate not in place, and therefore, the color expression range of output image and saturation still can be lost.And owing to only adopting the mode of simulation to adjust black level in this method of adjustment, therefore, easily generation excessively adjusts and causes the problem of image flicker.
Summary of the invention
The present invention is intended at least one of solve the problems of the technologies described above.
For this reason, first object of the present invention is the method for adjustment proposing black level in a kind of cmos sensor image.The method can make each Color Channel have more color expression range, and can effectively avoid producing when carrying out simulation coarse adjustment to black level in cmos sensor excessively regulating and causing image flicker.
Second object of the present invention is the adjusting device proposing black level in a kind of cmos sensor image.
3rd object of the present invention is to propose a kind of cmos sensor.
To achieve these goals, the method for adjustment of black level in the cmos sensor image of first aspect present invention embodiment, comprises the following steps: the mean value calculating black level in each Color Channel in cmos sensor image respectively; Calculate the desired value of black level in described COMS sensor image; Calculate the absolute value of the desired value difference of described black level mean value and described black level in described each Color Channel respectively, when the absolute value of described difference is greater than first threshold, simulation adjustment is carried out to the black level mean value in corresponding color passage; And when the absolute value of described difference is less than described first threshold, numeral adjustment is carried out to the black level mean value in corresponding color passage.
The method of adjustment of black level in the cmos sensor image of the embodiment of the present invention, by comparing the mean value of black level in each Color Channel and the absolute value of desired value difference and first threshold, and according to comparative result, simulation adjustment and numeral adjustment are carried out to the black level mean value in the Color Channel of correspondence, thus make mean value more and more its desired value of convergence of the black level of each Color Channel, until both are close, the mean value of the black level of each Color Channel more can be made to be tending towards equal, thus, each Color Channel can be made to have more color expression range, and can effectively avoid producing when carrying out simulation coarse adjustment to black level in cmos sensor excessively regulating and causing image flicker.
To achieve these goals, the adjusting device of black level in the cmos sensor image of second aspect present invention embodiment, comprising: the first computing module, for calculating the mean value of black level in each Color Channel in cmos sensor image respectively; Second computing module, for calculating the desired value of black level in described COMS sensor image; 3rd computing module, for calculating the absolute value of the desired value difference of described black level mean value and described black level in described each Color Channel respectively; First adjusting module, for when the absolute value of described difference is greater than first threshold, carries out simulation adjustment to the black level mean value in corresponding color passage; And second adjusting module, for when the absolute value of described difference is less than described first threshold, numeral adjustment is carried out to the black level mean value in the Color Channel of correspondence.
The adjusting device of black level in the cmos sensor image of the embodiment of the present invention, by the first adjusting module and the second adjusting module, simulation adjustment and numeral adjustment are carried out to the black level mean value in the Color Channel of correspondence, thus make mean value more and more its desired value of convergence of the black level of each Color Channel, until both are close, the mean value of the black level of each Color Channel more can be made to be tending towards equal, thus, each Color Channel can be made to have more color expression range, and can effectively avoid producing when carrying out simulation coarse adjustment to black level in cmos sensor excessively regulating and causing image flicker.
To achieve these goals, the cmos sensor of third aspect present invention embodiment, comprises the adjusting device of black level in the cmos sensor image of second aspect present invention embodiment.
The cmos sensor of the embodiment of the present invention, simulation adjustment and digital number adjustment can be carried out to the black level in Color Channel, thus make each Color Channel can have more color expression range, and the problem effectively can avoided producing excessively adjustment when only adopting simulation coarse adjustment black level and cause image flicker.
The aspect that the present invention adds and advantage will part provide in the following description, and part will become obvious from the following description, or be recognized by practice of the present invention.
Accompanying drawing explanation
The present invention above-mentioned and/or additional aspect and advantage will become obvious and easy understand from the following description of the accompanying drawings of embodiments, wherein,
Fig. 1 is the flow chart of the method for adjustment of black level in the cmos sensor image of one embodiment of the invention;
Fig. 2 is the structural representation of the adjusting device of black level in the cmos sensor image of one embodiment of the invention; And
Fig. 3 is the structural representation of the adjusting device of black level in the cmos sensor image of the present invention's specific embodiment
Embodiment
Be described below in detail embodiments of the invention, the example of described embodiment is shown in the drawings, and wherein same or similar label represents same or similar element or has element that is identical or similar functions from start to finish.Being exemplary below by the embodiment be described with reference to the drawings, only for explaining the present invention, and can not limitation of the present invention being interpreted as.On the contrary, embodiments of the invention comprise fall into attached claims spirit and intension within the scope of all changes, amendment and equivalent.
In describing the invention, it is to be appreciated that term " first ", " second " etc. are only for describing object, and instruction or hint relative importance can not be interpreted as.In describing the invention, it should be noted that, unless otherwise clearly defined and limited, term " is connected ", " connection " should be interpreted broadly, such as, can be fixedly connected with, also can be removably connect, or connect integratedly; Can be mechanical connection, also can be electrical connection; Can be directly be connected, also indirectly can be connected by intermediary.For the ordinary skill in the art, concrete condition above-mentioned term concrete meaning in the present invention can be understood.In addition, in describing the invention, except as otherwise noted, the implication of " multiple " is two or more.
Describe and can be understood in flow chart or in this any process otherwise described or method, represent and comprise one or more for realizing the module of the code of the executable instruction of the step of specific logical function or process, fragment or part, and the scope of the preferred embodiment of the present invention comprises other realization, wherein can not according to order that is shown or that discuss, comprise according to involved function by the mode while of basic or by contrary order, carry out n-back test, this should understand by embodiments of the invention person of ordinary skill in the field.
Below with reference to the accompanying drawings the method for adjustment of black level in the cmos sensor image according to the embodiment of the present invention, device and cmos sensor are described.
At present, black level in cmos image sensor is adjusted to the mean value of the black level normally first calculating odd column and even column Color Channel.Then compare by the desired value of its parity column respectively, and feedback regulation value given analog module (ASP, analog signal processing) or directly view data processed.But the adjustment only carrying out odd even two passages can cause wherein certain Color Channel to regulate not in place, color expression range and saturation are lost.
If the mode that simulation can be adopted to mix with numeral carries out black level adjustment to each Color Channel in cmos sensor, specifically, first by analog form, coarse adjustment is carried out to black level, by digital form, fine tuning is carried out to black level again, make mean value slowly its desired value of convergence of black level in cmos sensor image, until mean value is close with desired value, even make the mean value of black level in each Color Channel equal.Thus, more comprehensively flexibly and accurately, in cmos sensor, each Color Channel has more color expression range in the adjustment that can make black level, and toning and cause the problem of image flicker when can effectively prevent from simulating coarse adjustment.
Fig. 1 is the flow chart of the method for adjustment of black level in the cmos sensor image of one embodiment of the invention.
As shown in Figure 1, in cmos sensor image, the method for adjustment of black level comprises the following steps.
S101, calculates the mean value of black level in each Color Channel in cmos sensor image respectively.
In one embodiment of the invention, the black line flag signal in Color Channel and black row data can be obtained, and calculate the mean value of black level according to black line flag signal and black row data.Particularly, first, under common scenarios, cmos sensor first exports 8 row (any 1 row) black row, then, obtains respectively in cmos sensor image, in the black row of 8 row four Color Channels each Color Channel in black line flag signal and black row data.Subsequently, the mean value of black level corresponding to each Color Channel is calculated respectively according to the black line flag signal in each Color Channel and black row data.Be to be understood that, existing method can be used to realize when calculating the mean value of black level in each Color Channel in cmos sensor image, namely, by the computational methods of mean value, namely, according to the black line flag of two row, cumulative averaging is carried out to black row data, thus draws the black level mean value of four Color Channels.Therefore, in order to avoid redundancy, no longer repeat herein.
S102, calculates the desired value of black level in COMS sensor image.
In one embodiment of the invention, marking signal when Color Channel inherence reaches the maximum time of integration can be obtained, and according to the desired value of global gain calculated signals black level corresponding to the marking signal when reaching maximum time integration.Particularly, in COMS transducer, send black line flag signal and global gain signal by functional device.Therefore, when reaching the maximum time of integration, by this functional device acquisition global gain signal this moment time of integration.Wherein, size and the global gain of black level desired value are directly proportional, and according to the size of global gain signal, improve the black level desired value of four Color Channels linearly.The desired value of black level is larger, and the saturation of image is lower, and desired value is less, and the saturation of image is higher, and level is abundanter.Thus, the brightness of dark scene in sensor image can be improved.Existing method can be used to realize when should be appreciated that the desired value calculating black level in each Color Channel in cmos sensor image, in order to avoid redundancy, no longer repeat herein.
S103, calculates the absolute value of black level mean value and desired value difference in each Color Channel respectively.
Respectively the mean value of black level in four Color Channels and the desired value of black level are subtracted each other and draw the mean value of black level and the difference of desired value in each Color Channel.
S104, when the mean value of black level in certain Color Channel and the absolute value of desired value difference are greater than first threshold, carries out simulation adjustment to the black level mean value in the Color Channel of correspondence.
Wherein, first threshold is the critical value adopting simulation adjustment and numeral adjustment, and first threshold can be the value given tacit consent in the adjusting device of black level in cmos sensor image.Particularly, can compare the mean value of black level in each Color Channel and the absolute value of desired value difference and first threshold respectively, judge in the region that the absolute value of this difference drops on digital fine tuning or drop in the region of simulation coarse adjustment, thus, can determine to carry out simulation adjustment or numeral adjustment to the mean value of black level.If when the mean value of black level and the absolute value of desired value difference are greater than first threshold in certain Color Channel, simulation adjustment is carried out to the black level mean value in this Color Channel.Wherein, simulation adjustment refers to by comparing the mean value of black level and the desired value of correspondence thereof in Color Channel, rewrite and give the value of feedback of the forward voltage in the Color Channel of analog modules A SP, then by numeral/analog conversion module DAC, both are converted to corresponding positive voltage value, make to add/deduct different magnitudes of voltage in this passage, and the change of magnitude of voltage ground transforms after output can embody in the mean value of black level adjustment through analog-to-digital converting module ADC, and then the difference compared between the mean value of black level and desired value, and the positive voltage value of feedback in Color Channel is adjusted, thus, the mean value of the black level in passage can be made to level off to desired value gradually, thus reach the effect of adjustment.
In one embodiment of the invention, carry out simulating adjustment to the black level mean value in Color Channel specifically to comprise: obtain the forward voltage value of feedback in Color Channel, and adjust step-length accordingly according to the absolute value acquisition of black level mean value and desired value difference in Color Channel, and according to adjustment step-length, forward voltage feedback value is adjusted.Specifically, the forward voltage value of feedback that the mean value of black level and the absolute value of desired value difference are greater than in the Color Channel of first threshold is adjusted, if when the mean value of the black level in this Color Channel is greater than the desired value of its black level, then select to adjust step-length accordingly according to the size of the absolute value of black level mean value corresponding to this Color Channel and desired value difference.Wherein, the order of magnitude of the difference of adjustment step-length and black level mean value is one to one, and adjustment step-length is directly proportional to the absolute value of difference, and the absolute value of difference is larger, adjustment step-length is also larger, can find the corresponding step-length needing to change preset according to the order of magnitude of difference.Then, the forward voltage value of feedback of this Color Channel is added corresponding adjustment step-length, that is, increase forward voltage value of feedback.
If the mean value of the black level in certain Color Channel is less than the desired value of black level, then select to adjust step-length accordingly according to the size of the absolute value of black level mean value corresponding to this Color Channel and desired value difference, then, the forward voltage value of feedback of this Color Channel is deducted and adjusts step-length accordingly, that is, forward voltage value of feedback is reduced.
S105, when the absolute value of difference is less than first threshold, carries out numeral adjustment to the black level mean value in the Color Channel of correspondence.
Particularly, can compare with first threshold respectively the absolute value of the mean value of black level in each Color Channel and desired value difference, when the mean value of black level and the absolute value of desired value difference are less than first threshold in certain Color Channel, numeral adjustment is carried out to the black level mean value in this Color Channel.
It is to be further understood that after analog regulation completes, or during simulation manual adjustments, when the mean value of black level in certain Color Channel and the absolute value of desired value difference are less than first threshold, digital black level adjustment should be switched to.Before digital black level adjustment, the forward voltage value of feedback in this passage should be kept to remain unchanged.
In one embodiment of the invention, carry out numeral adjustment to the black level mean value in the Color Channel of correspondence specifically to comprise: by being greater than the absolute value of black level mean value and desired value difference in previous frame image when the absolute value of black level mean value and desired value difference in current frame image, and when in current frame image, black level mean value is identical with the difference symbol of desired value with black level mean value in previous frame image with the difference of desired value, then the difference of former frame is increased preset value, and according to the difference increased, the pixel value in current frame image is adjusted; Otherwise, the difference of former frame is reduced preset value, and according to the difference reduced, the pixel value in current frame image is adjusted.
Wherein, preset value can be the value given tacit consent in the adjusting device of black level in cmos sensor image.Such as, preset value is 1.Particularly, when certain Color Channel needs to carry out digital black level adjustment, first can to calculate in this Color Channel black level mean value and desired value difference in current frame image.If the black level mean value of the present frame calculated is identical with the difference symbol of former frame with the difference of desired value, and the absolute value of the difference of present frame is greater than the absolute value of former frame difference, then the difference of black level mean value and desired value in previous frame image in this Color Channel is added that preset value 1 obtains a new difference, and the pixel value in current frame image is added this new difference.Should be appreciated that the step cycle needing to carry out the black level mean value in this Color Channel numeral adjustment processes, until when in this Color Channel, the absolute value of black level mean value and desired value difference is less than Second Threshold, end number adjusts.Wherein, Second Threshold can be the value given tacit consent in the adjusting device of black level in cmos sensor image.
Be to be understood that, if the black level mean value of the present frame calculated is identical with the difference symbol of former frame with the difference of desired value, and the absolute value of the difference of present frame is greater than the absolute value of former frame difference, then the difference of black level mean value and desired value in previous frame image in this Color Channel is added that preset value 1 obtains a new difference, and the pixel value in current frame image is deducted this new difference.
Except the situation in above-mentioned, if the difference of the black level mean value of the present frame calculated and desired value is contrary with the difference symbol of former frame, and the absolute value of the difference of present frame is greater than/is less than the absolute value of former frame difference, then the difference of black level mean value and desired value in previous frame image in this Color Channel is deducted preset value 1 and obtain a new difference, and the pixel value in current frame image is deducted this new difference.
The method of adjustment of black level in the cmos sensor image of the embodiment of the present invention, by comparing the mean value of black level in each Color Channel and the absolute value of desired value difference and first threshold, and according to comparative result, simulation adjustment and numeral adjustment are carried out to the black level mean value in the Color Channel of correspondence, thus make mean value more and more its desired value of convergence of the black level of each Color Channel, until both are close, the mean value of the black level of each Color Channel more can be made to be tending towards equal, thus, each Color Channel can be made to have more color expression range, and can effectively avoid producing when carrying out simulation coarse adjustment to black level in cmos sensor excessively regulating and causing image flicker.
In order to realize above-described embodiment, the present invention also proposes the adjusting device of black level in a kind of cmos sensor image.
Fig. 2 is the structural representation of the adjusting device of black level in the cmos sensor image of one embodiment of the invention.
As shown in Figure 2, in cmos sensor image, the adjusting device of black level comprises: the first computing module 100, second computing module 200, the 3rd computing module 300, first adjusting module 400 and the second adjusting module 500.
Particularly, the first computing module 100 is for calculating the mean value of black level in each Color Channel in cmos sensor image respectively.
Second computing module 200 is for calculating the desired value of black level in COMS sensor image.
3rd computing module 300 is for calculating the absolute value of the desired value difference of black level mean value and black level in each Color Channel respectively.More specifically, the mean value of black level in four Color Channels and the desired value of black level subtract each other and draw the mean value of black level and the difference of desired value in each Color Channel by the 3rd computing module 300 respectively.
First adjusting module 400, for when the absolute value of difference is greater than first threshold, carries out simulation adjustment to the black level mean value in corresponding color passage.Wherein, first threshold is the critical value adopting simulation adjustment and numeral adjustment, and first threshold can be the value given tacit consent in the adjusting device of black level in cmos sensor image.More specifically, can compare the mean value of black level in each Color Channel and the absolute value of desired value difference and first threshold respectively, judge in the region that the absolute value of this difference drops on digital fine tuning or drop in the region of simulation coarse adjustment, thus, can determine to carry out simulation adjustment or numeral adjustment to the mean value of black level.If when in certain Color Channel, the mean value of black level and the absolute value of desired value difference are greater than first threshold, the first adjusting module 400 carries out simulation adjustment to the black level mean value in this Color Channel.Wherein, simulation adjustment refers to by comparing the mean value of black level and the desired value of correspondence thereof in Color Channel, rewrite and give the value of feedback of the forward voltage in the Color Channel of analog modules A SP, then by numeral/analog conversion module DAC, both are converted to corresponding positive voltage value, make to add/deduct different magnitudes of voltage in this passage, and magnitude of voltage must change through analog-to-digital converting module ADC transform export after can black level adjustment mean value in embody, and then the difference compared between the mean value of black level and desired value, and the positive voltage value of feedback in Color Channel is adjusted, thus, the mean value of the black level in passage can be made to level off to desired value gradually, thus reach the effect of adjustment.
Second adjusting module 500, for when the absolute value of difference is less than first threshold, carries out numeral adjustment to the black level mean value in the Color Channel of correspondence.More specifically, can compare with first threshold respectively the absolute value of the mean value of black level in each Color Channel and desired value difference, when in certain Color Channel, the mean value of black level and the absolute value of desired value difference are less than first threshold, the second adjusting module 500 carries out numeral adjustment to the black level mean value in this Color Channel.
The adjusting device of black level in the cmos sensor image of the embodiment of the present invention, by the first adjusting module and the second adjusting module, simulation adjustment and numeral adjustment are carried out to the black level mean value in the Color Channel of correspondence, thus make mean value more and more its desired value of convergence of the black level of each Color Channel, until both are close, the mean value of the black level of each Color Channel more can be made to be tending towards equal, thus, each Color Channel can be made to have more color expression range, and can effectively avoid producing when carrying out simulation coarse adjustment to black level in cmos sensor excessively regulating and causing image flicker.
Fig. 3 is the structural representation of the adjusting device of black level in the cmos sensor image of the present invention's specific embodiment.
As shown in Figure 3, in cmos sensor image, the adjusting device of black level comprises: the first computing module 100, second computing module 200, 3rd computing module 300, first adjusting module 400 and the second adjusting module 500, wherein, first computing module 100 comprises: the first acquiring unit 110 and the first computing unit 120, second computing module 200 comprises: second acquisition unit 210 and the second computing unit 220, first adjusting module 400 comprises: the 3rd acquiring unit 410, 4th acquiring unit 420 and adjustment unit 430, wherein, adjustment unit 430 comprises: the first adjustment subelement 431 and the second adjustment subelement 432, second adjusting module 500 comprises: the first adjustment unit 510 and the second adjustment unit 520.
Particularly, the first acquiring unit 110 in first computing module 100 is for obtaining the first black line flag signal in Color Channel and black row data, and the first computing unit 120 is for calculating the mean value of black level according to the first black line flag signal and black row data.Specifically, first, under common scenarios, cmos sensor first exports 8 row (any 1 row) black row, then, the first acquiring unit 110 obtains in cmos sensor image respectively, in the black row of 8 row four Color Channels each Color Channel in black line flag signal and black row data.Subsequently, the first computing unit 120 calculates the mean value of black level corresponding to each Color Channel respectively according to the black line flag signal in each Color Channel and black row data.
Particularly, in one embodiment of the invention, second acquisition unit 210 in second computing module 200 is for obtaining the marking signal of COMS sensor image when reaching the maximum time of integration, and the second computing unit 220 is for the desired value according to global gain calculated signals black level corresponding to marking signal when reaching maximum time integration.More specifically, in COMS transducer, send black line flag signal and global gain signal by functional device.Therefore, when reaching the maximum time of integration, second acquisition unit 210 obtains global gain signal this moment by this functional device time of integration.Wherein, size and the global gain of black level desired value are directly proportional, and according to the size of global gain signal, improve the black level desired value of four Color Channels linearly.Black level desired value is larger, and the saturation of image is lower, and desired value is less, and the saturation of image is lower, and level is abundanter.Thus, the brightness of dark scene in sensor image can be improved.Then, the global gain calculated signals that the second computing unit 220 is corresponding according to marking signal when reaching maximum time integration goes out the desired value of now black level.
In one embodiment of the invention, the 3rd acquiring unit 410 in first adjusting module 400 is for obtaining the forward voltage value of feedback in Color Channel, 4th acquiring unit 420 adjusts step-length accordingly for obtaining according to the absolute value of black level mean value and desired value difference in Color Channel, and adjustment unit 430 is for adjusting forward voltage feedback value according to adjustment step-length.Wherein, adjustment unit 430 specifically comprises: the first adjustment subelement 431 is for when the mean value of black level is greater than the desired value of black level, forward voltage value of feedback is increased according to adjustment step-length, second adjustment subelement 432, for when the mean value of black level is less than the desired value of black level, reduces forward voltage value of feedback according to adjustment step-length.Specifically, the forward voltage value of feedback that the mean value of adjustment unit 430 pairs of black levels and the absolute value of desired value difference are greater than in the Color Channel of first threshold adjusts, if when the mean value of the black level in this Color Channel is greater than the desired value of its black level, then the first adjustment subelement 431 is selected to adjust step-length accordingly according to the size of the absolute value of black level mean value corresponding to this Color Channel and desired value difference.Wherein, the order of magnitude adjusting the difference of step-length and black level mean value is one to one, adjustment step-length is directly proportional to the absolute value of difference, the absolute value of difference is larger, and adjustment step-length is also larger, can find the corresponding step-length needing to change preset according to the order of magnitude of difference.Then, the forward voltage value of feedback of this Color Channel is added corresponding adjustment step-length, that is, increase forward voltage value of feedback.
If the mean value of the black level in certain Color Channel is less than the desired value of black level, then the second adjustment subelement 432 is selected to adjust step-length accordingly according to the size of the absolute value of black level mean value corresponding to this Color Channel and desired value difference, then, the forward voltage value of feedback of this Color Channel is deducted and adjusts step-length accordingly, that is, forward voltage value of feedback is reduced.
In one embodiment of the invention, the first adjustment unit 510 in second adjusting module 500 is for being greater than the absolute value of black level mean value and desired value difference in previous frame image when the absolute value of black level mean value and desired value difference in current frame image, and when in current frame image, black level mean value is identical with the difference symbol of desired value with black level mean value in previous frame image with the difference of desired value, then the difference of former frame is increased preset value, and according to the difference increased, the pixel value in current frame image is adjusted, second adjustment unit 520 for otherwise time, the difference of former frame is reduced preset value, and according to the difference reduced, the pixel value in current frame image is adjusted.
Wherein, preset value can be the value given tacit consent in the adjusting device of black level in cmos sensor image.Such as, preset value is 1.Particularly, when certain Color Channel needs to carry out digital black level adjustment, first can to calculate in this Color Channel black level mean value and desired value difference in current frame image.If the black level mean value of the present frame calculated is identical with the difference symbol of former frame with the difference of desired value, and the absolute value of the difference of present frame is greater than the absolute value of former frame difference, then the difference of black level mean value and desired value in previous frame image in this Color Channel is added that preset value 1 obtains a new difference by the first adjustment unit 510, and the pixel value in current frame image is added this new difference.Should be appreciated that the step cycle needing to carry out the black level mean value in this Color Channel numeral adjustment processes, until when in this Color Channel, the absolute value of black level mean value and desired value difference is less than Second Threshold, end number adjusts.Wherein, Second Threshold can be the value given tacit consent in the adjusting device of black level in cmos sensor image.
In one embodiment of the invention, if the black level mean value of present frame of the second adjustment unit 520 also for calculating is contrary with the difference symbol of former frame with the difference of desired value, and the absolute value of the difference of present frame is greater than/is less than the absolute value of former frame difference, then the difference of black level mean value and desired value in previous frame image in this Color Channel is deducted preset value 1 and obtain a new difference, and the pixel value in current frame image is deducted this new difference.
The adjusting device of black level in the cmos sensor image of the embodiment of the present invention, first by the first adjusting module, simulation coarse adjustment is carried out to the black level in Color Channel, by the second adjusting module, numeral adjustment is carried out to it again, make mean value more and more its desired value of convergence of the black level of each Color Channel, until both are close, thus the mean value of the black level of each Color Channel is made to be tending towards equal.Thus, each Color Channel can be made to have more color expression range, and the quality of out image from cmos sensor can be improved further.
In order to realize above-described embodiment, the present invention also proposes a kind of cmos sensor.
A kind of cmos sensor, comprises the adjusting device of black level in the cmos sensor image of second aspect present invention embodiment.
The cmos sensor of the embodiment of the present invention, simulation adjustment and digital number adjustment can be carried out to the black level in Color Channel, thus make each Color Channel can have more color expression range, and the problem effectively can avoided producing excessively adjustment when only adopting simulation coarse adjustment black level and cause image flicker.
Should be appreciated that each several part of the present invention can realize with hardware, software, firmware or their combination.In the above-described embodiment, multiple step or method can with to store in memory and the software performed by suitable instruction execution system or firmware realize.Such as, if realized with hardware, the same in another embodiment, can realize by any one in following technology well known in the art or their combination: the discrete logic with the logic gates for realizing logic function to data-signal, there is the application-specific integrated circuit (ASIC) of suitable combinational logic gate circuit, programmable gate array (PGA), field programmable gate array (FPGA) etc.
In the description of this specification, specific features, structure, material or feature that the description of reference term " embodiment ", " some embodiments ", " example ", " concrete example " or " some examples " etc. means to describe in conjunction with this embodiment or example are contained at least one embodiment of the present invention or example.In this manual, identical embodiment or example are not necessarily referred to the schematic representation of above-mentioned term.And the specific features of description, structure, material or feature can combine in an appropriate manner in any one or more embodiment or example.
Although illustrate and describe embodiments of the invention, those having ordinary skill in the art will appreciate that: can carry out multiple change, amendment, replacement and modification to these embodiments when not departing from principle of the present invention and aim, scope of the present invention is by claim and equivalents thereof.

Claims (15)

1. the method for adjustment of black level in cmos sensor image, is characterized in that, comprising:
Calculate the mean value of black level in each Color Channel in cmos sensor image respectively;
Calculate the desired value of black level in described COMS sensor image;
Calculate the absolute value of the desired value difference of described black level mean value and described black level in described each Color Channel respectively, when the absolute value of described difference is greater than first threshold, simulation adjustment is carried out to the black level mean value in corresponding color passage; And
When the absolute value of described difference is less than described first threshold, numeral adjustment is carried out to the black level mean value in corresponding color passage.
2. method of adjustment as claimed in claim 1, is characterized in that, the described mean value calculating black level in each Color Channel in cmos sensor image respectively specifically comprises:
Obtain the black line flag signal in Color Channel and black row data; And
The mean value of described black level is calculated according to described black line flag signal and black row data.
3. method of adjustment as claimed in claim 2, is characterized in that, in described calculating COMS sensor image, the desired value of black level specifically comprises:
Obtain the marking signal of described COMS sensor image when reaching the maximum time of integration; And
According to the desired value of black level described in the global gain calculated signals that the described marking signal when reaching maximum time integration is corresponding.
4. method of adjustment as claimed in claim 3, is characterized in that, describedly carries out simulation adjustment to the black level mean value in corresponding color passage and specifically comprises:
Obtain the forward voltage value of feedback in Color Channel; And
Absolute value acquisition according to black level mean value described in Color Channel and desired value difference adjusts step-length accordingly, and adjusts described forward voltage value of feedback according to described adjustment step-length.
5. method of adjustment as claimed in claim 4, is characterized in that, described adjustment described forward voltage value of feedback according to adjustment step-length specifically comprises:
When the mean value of described black level is greater than the desired value of described black level, increase described forward voltage value of feedback according to described adjustment step-length; And
When the mean value of described black level is less than the desired value of described black level, reduce described forward voltage value of feedback according to described adjustment step-length.
6. the method for adjustment according to any one of claim 1-5, is characterized in that, described to the black level mean value in corresponding color passage carry out numeral adjustment specifically comprise:
When in current frame image, the absolute value of black level mean value and desired value difference is greater than the absolute value of black level mean value and desired value difference in previous frame image, and when in current frame image, black level mean value is identical with the difference symbol of desired value with black level mean value in previous frame image with the difference of desired value, then the difference of former frame is increased preset value, and according to the difference increased, the pixel value in current frame image is adjusted;
Otherwise, the difference of former frame is reduced preset value, and according to the difference reduced, the pixel value in current frame image is adjusted.
7. method of adjustment as claimed in claim 6, it is characterized in that, described to the black level mean value in the Color Channel of correspondence carry out numeral adjustment step cycle process, until the absolute value of described black level mean value and desired value difference is less than Second Threshold in described each Color Channel.
8. the adjusting device of black level in cmos sensor image, is characterized in that, comprising:
First computing module, for calculating the mean value of black level in each Color Channel in cmos sensor image respectively;
Second computing module, for calculating the desired value of black level in described COMS sensor image;
3rd computing module, for calculating the absolute value of the desired value difference of described black level mean value and described black level in described each Color Channel respectively;
First adjusting module, for when the absolute value of described difference is greater than first threshold, carries out simulation adjustment to the black level mean value in corresponding color passage; And
Second adjusting module, for when the absolute value of described difference is less than described first threshold, carries out numeral adjustment to the black level mean value in the Color Channel of correspondence.
9. adjusting device as claimed in claim 8, it is characterized in that, described first computing module specifically comprises:
First acquiring unit, for obtaining black line flag signal in Color Channel and black row data; And
First computing unit, for calculating the mean value of described black level according to described black line flag signal and black row data.
10. adjusting device as claimed in claim 9, it is characterized in that, described second computing module specifically comprises:
Second acquisition unit, for obtaining described COMS sensor image at the marking signal reaching the maximum time of integration; And
Second computing unit, for the desired value of black level according to global gain calculated signals corresponding to the described marking signal when reaching maximum time integration.
11. adjusting devices as claimed in claim 10, it is characterized in that, described first adjusting module specifically comprises:
3rd acquiring unit, for obtaining the forward voltage value of feedback in Color Channel;
4th acquiring unit, adjusts step-length accordingly for obtaining according to the absolute value of black level mean value described in Color Channel and desired value difference; And
Adjustment unit, for adjusting described forward voltage value of feedback according to described adjustment step-length.
12. adjusting devices as claimed in claim 11, it is characterized in that, described adjustment unit specifically comprises:
First adjustment subelement, for when the mean value of described black level is greater than the desired value of described black level, increases described forward voltage value of feedback according to described adjustment step-length; And
Second adjustment subelement, for when the mean value of described black level is less than the desired value of described black level, reduces described forward voltage value of feedback according to described adjustment step-length.
13. adjusting devices according to any one of claim 8-12, it is characterized in that, described second adjusting module specifically comprises:
First adjustment unit, for being greater than the absolute value of black level mean value and desired value difference in previous frame image when the absolute value of black level mean value and desired value difference in current frame image, and when in current frame image, black level mean value is identical with the difference symbol of desired value with black level mean value in previous frame image with the difference of desired value, then the difference of former frame is increased preset value, and according to the difference increased, the pixel value in current frame image is adjusted;
Second adjustment unit, contrary for the difference symbol of black level mean value and desired value in the difference of black level mean value and desired value in current frame image and previous frame image, and in current frame image the absolute value of black level mean value and desired value difference be greater than/or be less than the absolute value of black level mean value and desired value difference in previous frame image time, the difference of former frame is reduced preset value, and according to the difference reduced, the pixel value in current frame image is adjusted.
14. adjusting devices as claimed in claim 13, it is characterized in that, described to the black level mean value in the Color Channel of correspondence carry out numeral adjustment step cycle process, until the absolute value of described black level mean value and desired value difference is less than Second Threshold in described each Color Channel.
15. 1 kinds of cmos sensors, is characterized in that, comprise the adjusting device of black level in the cmos sensor image described in any one of claim 8-14.
CN201310705736.4A 2013-12-19 2013-12-19 The method of adjustment and device of black level in cmos sensor and its image Active CN104735368B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310705736.4A CN104735368B (en) 2013-12-19 2013-12-19 The method of adjustment and device of black level in cmos sensor and its image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310705736.4A CN104735368B (en) 2013-12-19 2013-12-19 The method of adjustment and device of black level in cmos sensor and its image

Publications (2)

Publication Number Publication Date
CN104735368A true CN104735368A (en) 2015-06-24
CN104735368B CN104735368B (en) 2018-08-14

Family

ID=53458754

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310705736.4A Active CN104735368B (en) 2013-12-19 2013-12-19 The method of adjustment and device of black level in cmos sensor and its image

Country Status (1)

Country Link
CN (1) CN104735368B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108322680A (en) * 2018-01-18 2018-07-24 思特威电子科技(开曼)有限公司 The temperature self-adaptation black-level alignment method and system of imaging sensor
CN109600595A (en) * 2017-09-30 2019-04-09 优酷网络技术(北京)有限公司 Image processing method and device
CN111970465A (en) * 2020-08-27 2020-11-20 成都微光集电科技有限公司 Black level correction method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1680987A (en) * 2004-04-08 2005-10-12 索尼株式会社 Device circuit for flat display apparatus and flat display apparatus
US20090059012A1 (en) * 2008-05-28 2009-03-05 Media Tek Usa Inc. Programmable digital black level calibration with feedback control
CN101843089A (en) * 2007-10-31 2010-09-22 美商豪威科技股份有限公司 One-step black level calibration for image sensors
US20110242390A1 (en) * 2010-03-31 2011-10-06 Sony Corporation Solid-state imaging device and electronic instrument
CN102244790A (en) * 2011-06-27 2011-11-16 展讯通信(上海)有限公司 Device and method for adaptively adjusting supporting parameters of image signal processor
CN102457684A (en) * 2010-10-21 2012-05-16 英属开曼群岛商恒景科技股份有限公司 Black level calibration method and system for same
CN102461176A (en) * 2009-06-19 2012-05-16 株式会社日立国际电气 Television camera and television camera control system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1680987A (en) * 2004-04-08 2005-10-12 索尼株式会社 Device circuit for flat display apparatus and flat display apparatus
CN101843089A (en) * 2007-10-31 2010-09-22 美商豪威科技股份有限公司 One-step black level calibration for image sensors
US20090059012A1 (en) * 2008-05-28 2009-03-05 Media Tek Usa Inc. Programmable digital black level calibration with feedback control
CN102461176A (en) * 2009-06-19 2012-05-16 株式会社日立国际电气 Television camera and television camera control system
US20110242390A1 (en) * 2010-03-31 2011-10-06 Sony Corporation Solid-state imaging device and electronic instrument
CN102457684A (en) * 2010-10-21 2012-05-16 英属开曼群岛商恒景科技股份有限公司 Black level calibration method and system for same
CN102244790A (en) * 2011-06-27 2011-11-16 展讯通信(上海)有限公司 Device and method for adaptively adjusting supporting parameters of image signal processor

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109600595A (en) * 2017-09-30 2019-04-09 优酷网络技术(北京)有限公司 Image processing method and device
CN109600595B (en) * 2017-09-30 2021-09-24 阿里巴巴(中国)有限公司 Image processing method and device
CN108322680A (en) * 2018-01-18 2018-07-24 思特威电子科技(开曼)有限公司 The temperature self-adaptation black-level alignment method and system of imaging sensor
CN108322680B (en) * 2018-01-18 2020-06-09 昆山晔芯电子科技有限公司 Temperature self-adaptive black level calibration method and system of image sensor
CN111970465A (en) * 2020-08-27 2020-11-20 成都微光集电科技有限公司 Black level correction method and device
CN111970465B (en) * 2020-08-27 2023-03-24 成都微光集电科技有限公司 Black level correction method and device

Also Published As

Publication number Publication date
CN104735368B (en) 2018-08-14

Similar Documents

Publication Publication Date Title
CN105934789B (en) The amendment of the Localization Phenomenon in pattern matrix
TWI404411B (en) Solid-state imaging device, control method therefor, and camera system
US9736406B2 (en) Image capturing apparatus and control method thereof
US20140218567A1 (en) Image Sensor and Method of Generating Binning Image Using the Same
CN103001637B (en) Solid state image pickup device, analog to digital converter and control method thereof
US8218038B2 (en) Multi-phase black level calibration method and system
CN104735368A (en) CMOS sensor and method and device for regulating black levels in image of CMOS sensor
KR100978659B1 (en) Apparatus and method for controlling gain of color signal
CN102905085A (en) Solid-state imaging device
US20110025907A1 (en) Camera Head Separated Type Camera Device
CN113228152A (en) Device and method for controlling screen brightness
TWI534792B (en) Gamma Curve Correction Method for Liquid Crystal Display
CN107154803B (en) Signal processing apparatus, signal processing method, and image pickup apparatus
JP5012796B2 (en) Imaging device
TWI442710B (en) Signal processing unit and self-calibration digital-to-analog converting method thereof
CN108322680B (en) Temperature self-adaptive black level calibration method and system of image sensor
CN108259793B (en) Black level calibration method and system of image sensor
ITTO20080452A1 (en) WHITE BALANCING ADJUSTMENT DEVICE AND METHOD OF ADJUSTING THE WHITE BALANCE
US9894313B1 (en) Video signal processing method, integrated circuit for video signal processing, and video signal processing apparatus
CN102572287A (en) Camera auto iris control method and device
CN108259804B (en) Video output system and related video signal compensation method thereof
US8253827B2 (en) Signal chain of an imaging system
CN102932613A (en) FPGA (field programmable gate array)-based analog video ADC (analog to digital converter) automatic adjustment method and device
TW453121B (en) An image-correction method, an image-correction device, and a cathode ray tube (CRT) display device
TWI422235B (en) System and method for calibrating a sync-on-green signal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20191227

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: BYD Co.,Ltd.

CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

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, Kuiyong street, Dapeng New District, Shenzhen City, Guangdong Province

Patentee before: BYD Semiconductor Co.,Ltd.

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, Kuiyong street, Dapeng New District, Shenzhen City, Guangdong Province

Patentee before: SHENZHEN BYD MICROELECTRONICS Co.,Ltd.