The automatic explosion method of a kind of digital brightness gain and time shutter collaborative work
Technical field
The present invention relates in the digital camera automatic exposure control field, relate in particular to the automatic explosion method of digital brightness gain and time shutter collaborative work picture quality.
Background technology
Digital still images such as digital camera of the prior art, digital shadow stream are controlled the sensitometric curve that all is based on optical sensor to the automatic exposure of image quality in using, and the time shutter is long more, and the amplitude of image brightness gain is low more.Referring to Fig. 1, Fig. 1 is under the normal illumination condition, the image brightness statistical value (Y mean) that digital camera obtains from optical sensor, with the graph of relation of the current time shutter (Exposure Time) that optical sensor is provided with, the gain range of image brightness reduces along with the increase of time shutter.In addition, usually under fluorescent light,, must allow time shutter of optical sensor be 1/100 second integral multiple during PAL-system, must allow time shutter of optical sensor be 1/120 second integral multiple during TSC-system in order to eliminate the flicker striped that sensor photosensitive produces.Therefore, the adjustment of time shutter must be directly proportional with flicker cycle, and the time shutter is the some gears that disperse.But automatic exposure control device of the prior art exists following problem: 1, the automatic exposure adjusting is unsmooth, and the sensitometric curve slope of optical sensor is bigger; 2, under low light conditions, need constantly to increase the time shutter to obtain small luminance gain, untimely to the improvement of visual visibility; 3, cause the data frame per second to reduce significantly, destroyed digital shadow stream continuity.
Summary of the invention
In order to overcome the problems of the prior art and deficiency, the object of the present invention is to provide the automatic explosion method of a kind of digital brightness gain and time shutter collaborative work.It makes and time shutter and digital brightness gain collaborative work makes that the automatic exposure adjusting is more level and smooth.
In order to realize the foregoing invention purpose, technical scheme of the present invention realizes as follows:
The automatic explosion method of the gain of a kind of digital brightness and time shutter collaborative work the steps include: 1) automatic exposure control procedure unit judges whether that according to brightness statistics value that receives and current time shutter needs carry out automatic exposure and regulate; 2) if do not need to carry out the automatic exposure adjusting, exposure is regulated and is finished, and carries out automatic exposure if desired and regulates, time shutter that calculating makes new advances and new gain parameter; 3) if the time shutter increase, the digital brightness gain regulon is reset to minimum under the new time shutter with digital brightness gain, if the time shutter reduces, the digital brightness gain regulon is reset to mxm. under the new time shutter with digital brightness gain, if the time shutter is constant, then regulate the digital brightness gain regulon according to new digital brightness gain parameter; 4) brightness statistics value with the view data B after the digital brightness gain adjusting sends to automatic exposure control procedure unit, and returns step 1).
The adjustable extent of the digital brightness gain of the digital brightness gain regulon above-mentioned steps 3) is successively decreased along with the increase of time shutter.The adjustable extent of the digital brightness gain of digital brightness gain regulon can dispose by the characteristic parameter of time shutter and optical sensor.
Above-mentioned steps 3) the digital brightness gain regulon is the adjusting of being undertaken by gain parameter N/M to the adjusting of the digital map image brightness of image A in.N among the gain parameter N/M and M can regulate respectively.
Regulate digital brightness gain when the present invention exposes and regulates, compensate scintillation in the adjustment process of exposing with the variation of digital brightness gain.If the time shutter increases, the digital brightness gain regulon is reset to minimum under the new time shutter with digital brightness gain, and then is adjusted to the digital brightness gain mxm. under the current time shutter; If the time shutter reduces, the digital brightness gain regulon with digital brightness gain be reset under the new time shutter mxm. like this, and then be adjusted to digital brightness gain minimum under the current time shutter.When automatic exposure is regulated, between two time shutter shelves,, make the adjusting of automatic exposure seem smoother by regulating digital brightness gain.In addition, because under low light conditions, the present invention is by the calculating of current time shutter gear and current image brightness statistical value, can in time judge the low-light (level) duty, with the time shutter locked at higher gear and guarantee the frame per second (Frame rate) of proper digital shadow stream (Digital video), regulate digital brightness gain parameter N and M simultaneously,, can fast and effeciently improve visual visibility such as increasing the N value or reducing the M value.Digital brightness gain parameter N and M can regulate respectively, have guaranteed the precision of computing like this, make that the adjusting of luminance gain is flexible more, the realization cost minimum of hardware.
Description of drawings
The sensitometric curve figure of optical sensor in Fig. 1 prior art;
Fig. 2 is a process flow diagram of the present invention;
Fig. 3 is the collaborative work curve map of time shutter of the present invention and digital brightness gain;
Fig. 4 is for realizing the structure principle chart of device of the present invention;
Fig. 5 is for realizing the structure principle chart of another device of the present invention.
Below in conjunction with the drawings and specific embodiments the present invention is further specified.
Embodiment
Referring to Fig. 2, the automatic explosion method of the gain of a kind of digital brightness and time shutter collaborative work the steps include: 1) automatic exposure control procedure unit judges whether that according to brightness statistics value that receives and current time shutter needs carry out automatic exposure and regulate; 2) if do not need to carry out the automatic exposure adjusting, exposure is regulated and is finished, and carries out automatic exposure if desired and regulates, time shutter that calculating makes new advances and new gain parameter; 3) if the time shutter increase, the digital brightness gain regulon is reset to minimum under the new time shutter with digital brightness gain, if the time shutter reduces, the digital brightness gain regulon is reset to mxm. under the new time shutter with digital brightness gain, if the time shutter is constant, then new digital brightness gain parameter is acted on the digital brightness gain regulon; 4) brightness statistics value with the view data B after the digital brightness gain adjusting sends to automatic exposure control procedure unit, and returns step 1).
The adjustable extent of the digital brightness gain of the digital brightness gain regulon above-mentioned steps 3) is successively decreased along with the increase of time shutter.The adjustable extent of the digital brightness gain of digital brightness gain regulon can dispose by the characteristic parameter of time shutter and optical sensor.
Above-mentioned steps 3) the digital brightness gain regulon is the adjusting of being undertaken by gain parameter N/M to the adjusting of the digital map image brightness of image A in.N among the gain parameter N/M and M can regulate respectively.The correction of time shutter, influence the brightness of pictorial data A of the original CFA form of optical sensor output, the digital brightness gain regulating action is on each original pixels (Pixel) data, gain parameter N/M increases image brightness greater than 1, less than 1 minimizing image brightness, equal 1 and keep image brightness.Pictorial data B has embodied the synthesis of time shutter control with the adjusting of digital brightness gain.Therefore under low light conditions, the adjusting of time shutter gear can not increase image brightness timely and effectively, even the amplitude of the maximum adjustable scope of digital brightness gain (under the normal illumination condition) can not satisfy the needs that recover visual visibility under the low frame per second condition as early as possible.And the present invention is based on the relation of current time shutter gear and current image brightness statistical value, can in time judge the low-light (level) duty, with the time shutter locked at higher gear and guarantee the frame per second (Frame rate) of proper digital shadow stream (Digitalvideo), regulate digital brightness gain parameter N and M simultaneously, such as increasing the N value or reducing the M value, fast and effeciently improve visual visibility.In like manner, under high illumination conditions, also can realize automatic exposure, repeat no more here by of the present invention.Digital brightness gain parameter N and M separate setting in hardware circuit, be to guarantee operational precision, and hardware realizes that cost minimizes, the synergistic keys of factor such as control maximum flexibility.
Referring to Fig. 3, anatomize digital brightness gain regulon 4 when the time shutter changes, the process that luminance gain is regulated.All the time do not satisfy automatic exposure steady state conditions with the image brightness statistical value below, and to be lower than expectation value be example.Automatic exposure steady state conditions refers to: current image brightness statistical value is in the stationary zones.Stationary zones depends on current time shutter gear and optical sensor characteristic parameter, can calculate flexibly.Analyze 0-1 for the curve map among Fig. 3: the digital brightness gain minimum under the current time shutter, on transfer to digital brightness gain mxm. under the current time shutter; 1-2: the time shutter is raised one grade, simultaneously digital brightness gain is reset to the minimum under the current time shutter; 2-3: be equal to step 0-1; 3-4: be equal to step 1-2; 4-5: be equal to step 0-1; 5-6: be equal to step 1-2.By top analysis as can be seen, described digital brightness gain regulon 4 can be begun luminance gain under the current time shutter by minimum, on transfer to luminance gain mxm. under the current time shutter shelves; If at this moment the time shutter raises, digital brightness gain regulon 4 is reset to luminance gain minimum under the current time shutter shelves with digital brightness gain simultaneously, and then on transfer to luminance gain mxm. under the current time shutter shelves.
Referring to Fig. 4, realize device of the present invention, comprise automatic exposure control procedure unit 1, time shutter control module 2, other image signal processing units 5 and interrupt control unit 6.Described other image signal processing units 5 comprise a brightness statistic 7, the luminance component of each pixel of the view data that described brightness statistic 7 scannings receive, and calculate the brightness statistics value of every frame image, feed back to automatic exposure control procedure unit 1 by interrupt control unit 6 again.The time shutter that described automatic exposure control procedure unit 1 calculates renewal according to the brightness statistics value of gained and current time shutter, described automatic exposure control procedure unit 1 sends to be upgraded the time shutter and instructs to described time shutter control module 2.Described time shutter control module 2 acts on optical sensor 3 with new time shutter parameter configuration, and described optical sensor 3 is gathered original image data under new time shutter condition, and is translated into the pictorial data A of digital CFA form.This device also comprises digital brightness gain regulon 4, described optical sensor 1 is conveyed into digital brightness gain regulon 4 with view data A, the new brightness gain parameter that digital brightness gain regulon 4 sends according to automatic exposure control procedure unit 1, each pixel data of view data A is carried out gain-adjusted change pictorial data B in the adjustable extent of luminance gain, described digital brightness gain regulon 4 is transferred to other picture intelligence processing unit 5 with view data B and further optimizes and combines, and finally is converted into the pictorial data of yuv format.The adjustable extent of the digital brightness gain of described digital brightness gain regulon 4 is being successively decreased along with the increase of time shutter.The adjustable extent of digital brightness gain can dispose by the characteristic parameter of time shutter and optical sensor.
Referring to Fig. 5, realize that another kind of device of the present invention is also to comprise synchronous control unit 9 on the basis of device shown in Figure 4, described synchronous control unit 9 starts the exposure frames counting number according to the synchronous mark that time shutter control module 2 sends, count results and automatic exposure control procedure unit 1 are preset luminance gain to synchronous control unit 9 to come into force and postpones frame number and compare, if reach the delay frame number, the steering order that described synchronous control unit 9 transmission brightness come into force is to described digital brightness gain regulon 4.The luminance gain that above-mentioned synchronous control unit 9 sets in advance comes into force and postpones frame number and can regulate.Above-mentioned digital brightness gain regulon 4 also comprises one when automatic exposure is in steady state (SS), masks the screened circuit module 8 of luminance gain function.