Embodiment
In order to make technical problem solved by the invention, technical scheme and beneficial effect clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
As shown in Figure 1, be automatic exposure device embodiment 1 schematic diagram of the present invention, this device comprises: transducer control module 11, the first average brightness computing module 12, the time of integration computing module 13, image synthesis unit 14.
Transducer control module 11 sense of control light pixel arrays carry out time exposure according to the first integral time and carry out the short time according to the second integral time and expose, obtain target time exposure view data and target short time exposure image data, and target time exposure view data and target short time exposure image data are exported to image synthesis unit 14.
A kind of special circumstances of called optical imaging, when present image is first frame, transducer control module 11 sense of control light pixel arrays carry out time exposure according to the default first integral time and carry out the short time according to the default second integral time and expose, and obtain the target time exposure view data and the target short time exposure image data of first two field picture.
The first average brightness computing module 12 is in order to the first average brightness Y_AVER_LONG that calculates current time exposure view data and the second average brightness Y_AVER_SHORT of current short time exposure image data, and the first average brightness Y_AVER_LONG and the second average brightness Y_AVER_SHORT are exported to computing module 13 time of integration.
The time of integration, computing module 13 calculated first integral time INT_TIME_LONG according to the described first average brightness Y_AVER_LONG and the first preset value Y_LONG_TARGET, reach according to the described second average brightness Y_AVER_SHORT and the second preset value Y_SHORT_TARGET and calculate second integral time INT_TIME_SHORT, and first integral time INT_TIME_LONG, second integral time INT_TIME_SHORT are fed back to transducer control module 11.
Image synthesis unit 14 in order to average after target time exposure view data and the exposure image data addition of target short time, obtains synthetic back view data.
Image synthesis unit 14 is synthesized target time exposure view data and target short time exposure image number, because target time exposure view data has kept the dark place image detail, target short time exposure image data have kept bright place image detail, image after synthetic has kept the details of entire image, obtain more penetrating image, overcome bright place of image and the relatively poor technical problem of dark place definition after traditional automatic exposure device is handled.
The first average brightness Y_AVER_LONG calculates in the following way, all current time exposure image pixel point brightness value Y additions are obtained brightness summation Y_SUM1, and all current time exposure image slices vegetarian refreshments number additions are obtained pixel summation PIXELE_SUM1, brightness summation Y_SUM1 divided by pixel summation PIXELE_SUM1, is obtained the first average brightness Y_AVER_LONG.
The second average brightness Y_AVER_SHORT calculates in the following way, all current short time exposure image pixel brightness value Y additions are obtained brightness summation Y_SUM2, and all current short time exposure image pixel number additions are obtained pixel summation PIXELE_SUM2, brightness summation Y_SUM2 divided by pixel summation PIXELE_SUM2, is obtained the second average brightness Y_AVER_SHORT.
First integral time INT_TIME_LONG adopts normal mode to calculate, computational process is as follows: the first surplus MARGIN1 at first is set, the first average brightness Y_AVER_LONG and the first preset value Y_LONG_TARGET are compared, if the difference of the first average brightness Y_AVER_LONG and the first preset value Y_LONG_TARGET is greater than the first surplus MARGIN1, then the time of integration, computing module 13 reduced first integral time INT_TIME_LONG, if the difference of the first preset value Y_LONG_TARGET and the first average brightness Y_AVER_LONG is greater than the first surplus MARGIN1, then increase first integral time INT_TIME_LONG, up to the difference of the first average brightness Y_AVER_LONG and the first preset value Y_LONG_TARGET less than the first surplus MARGIN1 that sets or the first integral time INT_TIME_LONG value of reaching capacity.
The computational process of second integral time INT_TIME_SHORT is identical with the computational process of first integral time INT_TIME_LONG, the second surplus MARGIN2 at first is set, then the difference of the second average brightness Y_AVER_SHORT and the second preset value Y_SHORT_TARGET and the difference and the second surplus MARGIN2 of the second preset value Y_SHORT_TARGET and the second average brightness Y_AVER_SHORT are compared, determine second integral time INT_TIME_SHORT increase or reduce its concrete computational process of summary.
Because the integral image brightness after the automatic exposure is darker, according to multiply by identical value, just can improve integral image brightness to all pixel numbers, obtain the suitable image of brightness.
As optimum embodiment, the present invention includes automatic exposure device embodiment 2, as shown in Figure 2, comprise transducer control module 21, the first average brightness computing module 22, time of integration computing module 23, image synthesis unit 24, gain value computation module 25, multiplication computing module 26.
Embodiment 1 compares with device, and present embodiment has increased gain value computation module 25, multiplication computing module 26.
Gain value computation module 25 is calculated the first digital gain value GLB_GAIN_LONG according to the first average brightness Y_AVER_LONG and the first preset value Y_LONG_TARGET, and calculates the second digital gain value GLB_GAIN_SHORT according to the described second average brightness Y_AVER_SHORT and the second preset value Y_SHORT_TARGET.
The first digital gain value GLB_GAIN_LONG adopts normal mode to calculate, computational process is as follows: the first surplus MARGIN1 at first is set, the first average brightness Y_AVER_LONG and the first preset value Y_LONG_TARGET are compared, if the difference of the first average brightness Y_AVER_LONG and the first preset value Y_LONG_TARGET is greater than the first surplus MARGIN1, then gain value computation module 25 reduces first integral time INT_TIME_LONG, if the difference of the first preset value Y_LONG_TARGET and the first average brightness Y_AVER_LONG is greater than the first surplus MARGIN1, then increase first integral time INT_TIME_LONG, up to the difference of the first average brightness Y_AVER_LONG and the first preset value Y_LONG_TARGET less than the first surplus MARGIN1 that sets or the first digital gain value GLB_GAIN_LONG value of reaching capacity.
The computational process of the second digital gain value GLB_GAIN_SHORT is identical with the computational process of the first digital gain value GLB_GAIN_LONG, the second surplus MARGIN2 at first is set, then the difference of the second average brightness Y_AVER_SHORT and the second preset value Y_SHORT_TARGET and the difference and the second surplus MARGIN2 of the second preset value Y_SHORT_TARGET and the second average brightness Y_AVER_SHORT are compared, determine the increase of the second digital gain value GLB_GAIN_SHORT or reduce its concrete adjustment process of summary.
Multiplication computing module 26 multiplies each other target time exposure view data and the first digital gain value GLB_GAIN_LONG and obtains target high-brghtness picture images data, and target short time exposure image data and the second digital gain value GLB_GAIN_SHORT are multiplied each other obtains target low-luminosity picture data.
A kind of special circumstances of called optical imaging, when present image is first frame, the target high-brghtness picture images data that multiplication computing module 26 multiplies each other target time exposure view data and the default first digital gain value GLB_GAIN_LONG to obtain first two field picture, the target low-luminosity picture data that target short time exposure image data and the default second digital gain value GLB_GAIN_SHORT are multiplied each other and obtain first two field picture.
The described first average brightness computing module 22 adopts current high-brghtness picture images data when calculating the first average brightness Y_AVER_LONG, adopts current low-luminosity picture data when calculating the second average brightness Y_AVER_SHORT.
Described image synthesis unit 24 is synthesized described target high-brghtness picture images data and target low-luminosity picture data.
The automatic exposure device of device embodiment 2 calculates the first digital gain value GLB_GAIN_LONG and the second digital gain value GLB_GAIN_SHORT, and target time exposure view data and the first digital gain value GLB_GAIN_LONG multiplied each other obtain target high-brghtness picture images data, target short time exposure image data and the second digital gain value GLB_GAIN_SHORT multiplied each other obtains target low-luminosity picture data, has improved the overall brightness of image.
The view data that the automatic exposure device of device embodiment 2 obtains is the view data after target high-brghtness picture images data and target low-luminosity picture data are synthesized, when synthetic, adopt identical ratio, promptly directly target high-brghtness picture images data and the addition of target low-luminosity picture data are obtained divided by two.The view data energy bright place of display image that this synthesis mode obtains and the details of dark place, but accuracy is not high.
As optimum embodiment, the present invention includes automatic exposure device embodiment 3, as shown in Figure 3, comprising: transducer control module 31, the first average brightness value computing module 32, the time of integration computing module 33, image synthesis unit 34, gain value computation module 35, multiplication computing module 36, weight coefficient computing module 37.
Embodiment 2 compares with device, and present embodiment has increased weight coefficient computing module 37.
Weight coefficient computing module 37 receives the first average brightness Y_AVER_LONG and the second average brightness Y_AVER_SHORT of 32 outputs of the first average brightness computing module, and calculates the value of the first weight coefficient COEF1, the second weight coefficient COEF2 according to the size of the first average brightness Y_AVER_LONG and the second average brightness Y_AVER_SHORT.
Image synthesis unit 34 multiplies each other the described first weight coefficient COEF1 and target high-brghtness picture images data and obtains first view data, the described second weight coefficient COEF2 and target low-luminosity picture data are multiplied each other obtain second view data, and first view data and second view data synthesized, image after synthetic can embody the image detail of each GTG, obtains more penetrating image.
The first weight coefficient COEF1 and the second weight coefficient COEF2 satisfy formula (1), (2) in the weight coefficient computing module 37:
COEF1+COEF2=1;(1)
COEF1/COEF2=Y_AVER_LONG/Y_AVER_SHORT;(2)
Utilize formula (1), (2) to try to achieve the value of the first weight coefficient COEF1, the second weight coefficient COEF2.The first average brightness Y_AVER_LONG is big more, and the first weight coefficient COEF1 is big more, and the second average brightness Y_AVER_SHORT is big more, and the second weight coefficient COEF2 is also big more accordingly.
Composograph adopts following formula to try to achieve:
DATA_OUT=DATA_IN_LONG*COEF1+DATA_IN_SHORT*COEF2;
(3)
DATA_OUT represents synthetic back view data in the formula (3), and DATA_IN_LONG represents target high-brghtness picture images data, and COEF1 represents first weight coefficient, and DATA_IN_SHORT represents target low-luminosity picture data, and COEF2 represents second weight coefficient.
Adopt the first weight coefficient COEF1, the second weight coefficient COEF2 to determine that target high-brghtness picture images data and target low-luminosity picture data account for the ratio of composograph among the device embodiment 3, make the clear picture after synthesizing manifest the image detail of bright place and dark place.
The image that luminance difference is bigger need obtain the ideal exposure image with the synthetic method of image, but this composition algorithm is not all to be fit in all scenes, it is a lot of that the image of common scenarios adopts the synthetic algorithm of image can make synthetic back image depart from desirable brightness, and the existing automatic exposure algorithm of the imagery exploitation of common scenarios just can obtain desirable exposure image, in view of the situation, then need image scene is judged, under different scenes, can both rationally expose, obtain desirable exposure image.
As optimum embodiment, automatic exposure device also comprises the scene Recognition module among the device embodiment 3.
The scene Recognition module judges it is high dynamic scene or common scenarios according to the size of the second average brightness Y_AVER_SHORT, produce the selection signal HDR_SEL of an individual on-the-spot scape type, image synthesis unit 34 is according to selecting signal HDR_SEL to select synthesis model.
Select signal HDR_SEL to utilize following mode to try to achieve: be high dynamic scene under the default situations, the value of promptly selecting signal HDR_SEL is 0, and default the 3rd threshold value A VER_LOKE is a comparison value, and the 3rd surplus MARGIN3.The 3rd surplus MARGIN3 shakes between high dynamic scene and common scenarios in order to prevent image.
Make LOCK_H=AVER_LOCK+MARGIN3; (4)
LOCK_L=AVER_LOCK-MARGIN3。(5)
As shown in Figure 4, be transformed into common scenarios from high dynamic scene and must satisfy following condition: current state is high dynamic scene, and the value of promptly selecting signal HDR_SEL is 0, simultaneously second average brightness Y_AVER_SHORT<LOCK_L.Then image is transformed into common scenarios from high dynamic scene, selects the value of signal HDR_SEL to become 1 by 0.
Be transformed into high dynamic scene from common scenarios and must satisfy following condition: current state is a common scenarios, and the value of promptly selecting signal HDR_SEL is 1, simultaneously second average brightness Y_AVER_SHORT>LOCK_H.Then image is transformed into high dynamic scene from common scenarios, selects the value of signal HDR_SEL to become 0 by 1.
When selecting signal HDR_SEL to be 1, image synthesis unit 34 is not synthesized image, and making the first weight coefficient COEF1 is that 1, the second weight coefficient COEF2 is 0.Direct export target high-brghtness picture images data DATA_IN_LONG.When selecting signal HDR_SEL to be 0, image is high dynamic scene, image synthesis unit 34 multiplies each other the first weight coefficient COEF1 and target high-brghtness picture images data DATA_IN_LONG and obtains first view data, the second weight coefficient COEF2 and target low-luminosity picture data DATA_IN_SHORT multiply each other and obtain second view data, and first view data and second view data synthesized, image after synthetic can embody the image detail of each GTG, obtains more penetrating image.
This automatic exposure device realizes that the mode of automatic exposure is to make imageing sensor respectively with the bigger time of integration and the less time of integration Same Scene being exposed respectively, obtain light and shade two width of cloth images, the image of taking down the long time of integration has been preserved the details of dark place scene, the image of taking down the short time of integration has been preserved the details of bright place scene, like this two width of cloth images are synthesized to together according to certain ratio and just can obtain desirable image, show the details at light and shade two places fully.Automatic exposure device provides the rational long time of integration, the short time of integration, first digital gain value and second digital gain value, and identification automatically need be done high dynamic scene and common scenarios.
As shown in Figure 5, be the automatic explosion method flow chart of the embodiment of the invention 4, this method comprises the steps:
Step S51: sense of control light pixel array carries out time exposure and carries out the short time exposure according to second integral time INT_TIME_SHORT according to first integral time INT_TIME_LONG, obtains target time exposure view data and target short time exposure image data;
Step S52: the first average brightness Y_AVER_LONG that calculates current time exposure view data; And the second average brightness Y_AVER_SHORT of the current short time exposure image data of calculating;
Step S53: calculate first integral time INT_TIME_LONG according to the first average brightness Y_AVER_LONG and the first preset value Y_LONG_TARGET, and calculate second integral time INT_TIME_SHORT according to the second average brightness Y_AVER_SHORT and the second preset value Y_SHORT_TARGET;
Step S54: described target time exposure view data and target short time exposure image data are synthesized.
Target time exposure view data keeps the dark place image detail, target short time exposure image data keep bright place image detail, image after synthetic has kept the details of entire image, obtain more penetrating image, overcome bright place of image and the relatively poor technical problem of dark place definition after traditional automatic exposure device is handled.
A kind of special circumstances of called optical imaging, when present image is first frame, step S51 sense of control light pixel array carries out time exposure according to the default first integral time and carries out the short time according to the default second integral time and expose, and obtains the target time exposure view data and the target short time exposure image data of first two field picture.
The first average brightness Y_AVER_LONG adopts following method to calculate among the step S52, all current time exposure image pixel point brightness value Y additions are obtained brightness summation Y_SUM1, and all current time exposure image slices vegetarian refreshments number additions are obtained pixel summation PIXELE_SUM1, brightness summation Y_SUM1 divided by pixel summation PIXELE_SUM1, is obtained the first average brightness Y_AVER_LONG.
The second average brightness Y_AVER-SHORT adopts following method to calculate among the step S52, all current short time exposure image pixel brightness value Y additions are obtained brightness summation Y_SUM2, and all current short time exposure image pixel number additions are obtained pixel summation PIXELE_SUM2, brightness summation Y_SUM2 divided by pixel summation PIXELE_SUM2, is obtained the second average brightness Y_AVER_SHORT.
First integral time INT_TIME_LONG adopts conventional method to calculate among the step S53, computational methods are as follows: the first surplus MARGIN1 at first is set, the first average brightness Y_AVER_LONG and the first preset value Y_LONG_TARGET are compared, if the difference of the first average brightness Y_AVER_LONG and the first preset value Y_LONG_TARGET is greater than the first surplus MARGIN1, then reduce first integral time INT_TIME_LONG, if the difference of the first preset value Y_LONG_TARGET and the first average brightness Y_AVER_LONG is greater than the first surplus MARGIN1, then increase first integral time INT_TIME_LONG, up to the difference of the first average brightness Y_AVER_LONG and the first preset value Y_LONG_TARGET less than the first surplus MARGIN1 that sets or the first integral time INT_TIME_LONG value of reaching capacity.
Second integral time INT_TIME_SHORT is identical with the computational methods of first integral time INT_TIME_LONG among the step S53, the second surplus MARGIN2 at first is set, then the difference of the second average brightness Y_AVER_SHORT and the second preset value Y_SHORT_TARGET and the difference and the second surplus MARGIN2 of the second preset value Y_SHORT_TARGET and the second average brightness Y_AVER_SHORT are compared, determine the increase of second integral time INT_TIME_SHORT or reduce its concrete computational process of summary.
Because the integral image brightness after the automatic exposure is darker, according to multiply by identical value, just can improve integral image brightness to all pixel numbers, obtain the suitable image of brightness.
As optimum embodiment, the present invention includes automatic explosion method embodiment 5, as shown in Figure 6, comprising:
Step S61: sense of control light pixel array carries out time exposure and carries out the short time exposure according to second integral time INT_TIME_SHORT according to first integral time INT_TIME_LONG, obtains target time exposure view data and target short time exposure image data;
Step S62: the first average brightness Y_AVER_LONG that calculates current high-brghtness picture images data; And the second average brightness Y_AVER_SHORT of the current low-luminosity picture data of calculating;
Step S63: calculate first integral time INT_TIME_LONG according to the first average brightness Y_AVER_LONG and the first preset value Y_LONG_TARGET, and calculate second integral time INT_TIME_SHORT according to the second average brightness Y_AVER_SHORT and the second preset value Y_SHORT_TARGET;
Step S65: calculate the first digital gain value GLB_GAIN_LONG according to the described first average brightness Y_AVER_LONG and the first preset value Y_LONG_TARGET, and calculate the second digital gain value GLB_GAIN_SHORT according to the described second average brightness Y_AVER_SHORT and the second preset value Y_SHORT_TARGET;
Step S66: described target time exposure view data and the first digital gain value GLB_GAIN_LONG multiplied each other obtains target high-brghtness picture images data, and described target short time exposure image data and the second digital gain value GLB_GAIN_LONG are multiplied each other obtains target low-luminosity picture data;
Step S64: target high-brghtness picture images data and target low-luminosity picture data are synthesized.
A kind of special circumstances of called optical imaging, when present image is first frame, the target high-brghtness picture images data that step S66 multiplies each other target time exposure view data and the default first digital gain value GLB_GAIN_LONG to obtain first two field picture, the target low-luminosity picture data that target short time exposure image data and the default second digital gain value GLB_GAIN_SHORT are multiplied each other and obtain first two field picture.
Compare with method embodiment 4, present embodiment has increased step S65, step S66, and step S62 step and rapid S64 also change slightly to some extent, are described in detail below.
The first digital gain value GLB_GAIN_LONG adopts conventional method to calculate among the step S65, computational methods are as follows: the first surplus MARGIN1 at first is set, the first average brightness Y_AVER_LONG and the first preset value Y-LONG_TARGET are compared, if the difference of the first average brightness Y_AVER_LONG and the first preset value Y_LONG_TARGET is greater than the first surplus MARGIN1, then reduce first integral time INT_TIME_LONG, if the difference of the first preset value Y_LONG_TARGET and the first average brightness Y_AVER_LONG is greater than the first surplus MARGIN1, then increase first integral time INT_TIME_LONG, up to the difference of the first average brightness Y_AVER_LONG and the first preset value Y_LONG_TARGET less than the first surplus MARGIN1 that sets or the first digital gain value GLB_GAIN_LONG value of reaching capacity.
The computational methods of the second digital gain value GLB_GAIN_SHORT are identical with the computational methods of the first digital gain value GLB_GAIN_LONG among the step S65, the second surplus MARGIN2 at first is set, then the difference of the second average brightness Y_AVER_SHORT and the second preset value Y_SHORT_TARGET and the difference and the second surplus MARGIN2 of the second preset value Y_SHORT_TARGET and the second average brightness Y_AVER_SHORT are compared, determine the increase of the second digital gain value GLB_GAIN_SHORT or reduce its concrete adjustment process of summary.
Described step S66 multiplies each other target time exposure view data and the first digital gain value GLB_GAIN_LONG and obtains target high-brghtness picture images data, and target short time exposure image data and the second digital gain value GLB_GAIN_SHORT multiplied each other obtains target low-luminosity picture data.
Described step S62 adopts current high-brghtness picture images data when calculating the first average brightness Y_AVER_LONG_SUITABLE, adopt current low-luminosity picture data when calculating the second average brightness Y_AVER_SHORT_SUITABLE.
Described step S64 synthesizes described target high-brghtness picture images data and target low-luminosity picture data.
The automatic explosion method of method embodiment 5 calculates the first digital gain value GLB_GAIN_LONG and the second digital gain value GLB_GAIN_SHORT, and target time exposure view data and the first digital gain value GLB_GAIN_LONG multiplied each other obtain target high-brghtness picture images data, target short time exposure image data and the second digital gain value GLB_GAIN_SHORT multiplied each other obtains target low-luminosity picture data, has improved the overall brightness of image.
The view data that the automatic explosion method of method embodiment 5 obtains is the view data after target high-brghtness picture images data and target low-luminosity picture data are synthesized, when synthetic, adopt identical ratio, promptly directly target high-brghtness picture images data and the addition of target low-luminosity picture data are obtained divided by two.The view data energy bright place of display image that this synthesis mode obtains and the details of dark place, but accuracy is not high.
As optimum embodiment, the present invention includes automatic explosion method embodiment 6, as shown in Figure 7, comprising:
Step S71: sense of control light pixel array carries out time exposure and carries out the short time exposure according to second integral time INT_TIME_SHORT according to first integral time INT_TIME_LONG, obtains target time exposure view data and target short time exposure image data;
Step S72: calculate the first average brightness Y_AVER_LONG of current high-brghtness picture images data, and calculate the second average brightness Y_AVER_SHORT of current low-luminosity picture data;
Step S73: calculate first integral time INT_TIME_LONG according to the first average brightness Y_AVER_LONG and the first preset value Y_LONG_TARGET; And according to the second average brightness Y_AVER_SHORT and second preset value Y_SHORT_TARGET calculating second integral time INT_TIME_SHORT;
Step S75: calculate the first digital gain value GLB_GAIN_LONG according to the described first average brightness Y_AVER_LONG and the first preset value Y_LONG_TARGET, and calculate the second digital gain value GLB_GAIN_SHORT according to the described second average brightness Y_AVER_SHORT and the second preset value Y_SHORT_TARGET;
Step S76: described target time exposure view data and the first digital gain value GLB_GAIN_LONG multiplied each other obtains target high-brghtness picture images data, and described target short time exposure image data and the second digital gain value GLB_GAIN_LONG are multiplied each other obtains target low-luminosity picture data;
Step S77: calculate the first weight coefficient COEF1, the second weight coefficient COEF2 according to the first average brightness Y_AVER_LONG, the second average brightness Y_AVER_SHORT;
Step S74: target high-brghtness picture images data and the first weight coefficient COEF1 multiplied each other obtains first view data, the target low-luminosity picture data and the second weight coefficient COEF2 multiply each other and obtain second view data, and first view data and second view data are synthesized.
Compare with method embodiment 5, present embodiment has increased step S77, and corresponding image synthesis step S74 has increased a process that weight coefficient is adjusted, and describes in detail below.
Step S77 calculates the first weight coefficient COEF1, the second weight coefficient COEF2 according to the size of the first average brightness Y_AVER_LONG, the second average brightness Y_AVER_SHORT.
Image synthesis step S74 multiplies each other the first weight coefficient COEF1 and target high-brghtness picture images data and obtains first view data, the second weight coefficient COEF2 and target low-luminosity picture data multiply each other and obtain second view data, and first view data and second view data synthesized, image after synthetic can embody the image detail of each GTG, obtains more penetrating image.
The first weight coefficient COEF1 and the second weight coefficient COEF2 satisfy formula (1), (2) among the weight coefficient calculation procedure S77:
COEF1+COEF2=1;(1)
COEF1/COEF2=Y_AVER_LONG/Y_AVER_SHORT;(2)
Utilize formula (1), (2) to try to achieve the value of the first weight coefficient COEF1, the second weight coefficient COEF2.The first average brightness Y_AVER_LONG is big more, and the first weight coefficient COEF1 is big more, and the second average brightness Y_AVER_SHORT is big more, and the second weight coefficient COEF2 is also big more accordingly.
Composograph step S74 adopts following formula to try to achieve composograph:
DATA_OUT=DATA_IN_LONG*COEF1+DATA_IN_SHORT*COEF2;
(3)
DATA_OUT represents synthetic back view data in the formula (3), and DATA_IN_LONG represents target high-brghtness picture images data, and COEF1 represents first weight coefficient, and DATA_IN_SHORT represents target low-luminosity picture data, and COEF2 represents second weight coefficient.
Adopt the first weight coefficient COEF1, the second weight coefficient COEF2 to determine that target high-brghtness picture images data and target low-luminosity picture data account for the ratio of composograph among the method embodiment 6, make the clear picture after synthesizing manifest the image detail of bright place and dark place.
The image that luminance difference is bigger need obtain the ideal exposure image with the synthetic method of image, but this composition algorithm is not all to be fit in all scenes, it is a lot of that the image of common scenarios adopts the synthetic algorithm of image can make synthetic back image depart from desirable brightness, and the existing automatic exposure algorithm of the imagery exploitation of common scenarios just can obtain desirable exposure image, in view of the situation, then need image scene is judged, under different scenes, can both rationally expose, obtain desirable exposure image.
As optimum embodiment, method executes that automatic explosion method also comprises the scene Recognition step in the example 6.
The scene Recognition step judges it is high dynamic scene or common scenarios according to the size of the second average brightness Y_AVER_SHORT, produce the selection signal HDR_SEL of an individual on-the-spot scape type, image synthesis step S74 is according to selecting signal HDR_SEL to select synthesis model.
Select signal HDR_SEL to utilize following method to try to achieve: be high dynamic scene under the default situations, the value of promptly selecting signal HDR_SEL is 0, and default the 3rd threshold value A VER_LOKE is a comparison value, and the 3rd surplus MARGIN3.The 3rd surplus MARGIN3 shakes between high dynamic scene and common scenarios in order to prevent image.
Make LOCK_H=AVER_LOCK+MARGIN3; (4)
LOCK_L=AVER_LOCK-MARGIN3。(5)
As shown in Figure 4, be transformed into common scenarios from high dynamic scene and must satisfy following condition: current state is high dynamic scene, and the value of promptly selecting signal HDR_SEL is 0, simultaneously second average brightness Y-AVER_SHORT<LOCK_L.Then image is transformed into common scenarios from high dynamic scene, selects the value of signal HDR_SEL to become 1 by 0.
Be transformed into high dynamic scene from common scenarios and must satisfy following condition: current state is a common scenarios, and the value of promptly selecting signal HDR_SEL is 1, simultaneously second average brightness Y_AVER_SHORT>LOCK_H.Then image is transformed into high dynamic scene from common scenarios, selects the value of signal HDR_SEL to become 0 by 1.
When selecting signal HDR_SEL to be 1, image synthesis step S74 does not synthesize image, and making the first weight coefficient COEF1 is that 1, the second weight coefficient COEF2 is 0.Direct export target high-brghtness picture images data DATA_IN_LONG.When selecting signal HDR_SEL to be 0, image is high dynamic scene, image synthesis step S74 multiplies each other the first weight coefficient COEF1 and target high-brghtness picture images data DATA_IN_LONG and obtains first view data, the second weight coefficient COEF2 and target low-luminosity picture data DATA_IN_SHORT multiply each other and obtain second view data, and first view data and second view data synthesized, image after synthetic can embody the image detail of each GTG, obtains more penetrating image.
This automatic explosion method realizes that the mode of automatic exposure is to make imageing sensor respectively with the bigger time of integration and the less time of integration Same Scene being exposed respectively, obtain light and shade two width of cloth images, the image of taking down the long time of integration has been preserved the details of dark place scene, the image of taking down the short time of integration has been preserved the details of bright place scene, like this two width of cloth images are synthesized to together according to certain ratio and just can obtain desirable image, show the details at light and shade two places fully.This automatic explosion method provides the rational long time of integration, the short time of integration, first digital gain value and second digital gain value, and identification automatically need be done high dynamic scene and common scenarios.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.