Summary of the invention
The technical problem that the present invention will solve is:
1, the dynamic image that obtains of imageing sensor can't keep the fixedly problem of frame per second;
The problem that need limit strange, the even characteristic of the long and short integration in the same frame when 2, exporting high-dynamics image;
3, solve the fixedly problem of frame per second output of high-dynamics image.
For solving the problems of the technologies described above, the present invention proposes and in imageing sensor, obtain the fixedly method of frame per second high-dynamics image, said imageing sensor comprises the photosensitive pixel array that is arranged as row and column, this method comprises the steps:
A: the photosensitive pixel array is distributed the long time of integration and the short time of integration;
B: according to present frame long time of integration T1 long time of integration the horizontal reset original position begin present frame photosensitive pixel array is resetted line by line;
C: read original position from the current frame length row time of integration and begin successively the long time of integration of the row view data of integration of present frame photosensitive pixel array to be read; Then according to present frame short time of integration T2 with short time of integration maximum M confirm short time of integration of horizontal reset original position; Said short time of integration, maximum M was an odd number, short time of integration the horizontal reset original position begin present frame photosensitive pixel array is resetted line by line; Read original position according to the definite weak point of the short maximum M time of integration row time of integration, read original position from the weak point row time of integration then and begin successively the short time of integration of the row view data of integration of present frame photosensitive pixel array to be read; The length row view data time of integration is alternately read with the weak point row view data time of integration; Next according to back one frame long time of integration T3 size confirm next frame length horizontal reset time of integration original position, and begin a back frame photosensitive pixel array is resetted line by line in next frame length horizontal reset time of integration original position;
D: according to the current frame length T1 time of integration, the present frame short time of integration of T2, next frame length T3 time of integration, short time of integration maximum M confirm in the frame arbitrarily count line in the time current frame length read row, long time of integration reset line, short time of integration reset line, the short time of integration time of integration and read row, next frame length reset line time of integration;
E: circulation execution in step A, B, C, D, with the capable integrated signal output of integration of obtaining.
For solving the problems of the technologies described above, the invention allows for and in imageing sensor, obtain the fixedly device of frame per second high-dynamics image, comprising:
The photosensitive pixel array;
Calculate the time of integration and allocation units, calculate the long and short time of integration according to output image information, and distribute to the photosensitive pixel array; Length integral processing unit, according to present frame long time of integration T1 long time of integration the horizontal reset original position begin present frame photosensitive pixel array is resetted line by line;
Line from the current frame. Integration time sequentially reading out starting position of the current frame has a photosensitive pixel array long integration time line integral image data read out, based on the current frame and the short integration time T2 and the short integration time Maximum M determine the short integration time line resets the starting position, the maximum value of the short integration time M is odd, in a short integration time line resets the starting position of the current frame photosensitive pixel array progressive reduction, based on a short integral time determines the maximum value M short integration time row readout start position, and the short integration time line sequentially reading out starting position of the current frame has a photosensitive pixel array short integration time line integral image data read out; long integration time lines of image data, and short integration time alternating lines of image data read out; next subsequent frame based on the long integration time T3, the size of the frame length to determine the next row reset the starting position the integration time and the integration time of the next row reset frame length starting position for After a reset the photosensitive pixel array row by row;
Maximum M confirms in the frame that the current frame length in the time of count line arbitrarily reads row, long time of integration reset line, short time of integration reset line, the short time of integration time of integration and read row, next frame length reset line time of integration according to the current frame length T1 time of integration, the present frame short time of integration of T2, next frame length T3 time of integration, short time of integration.
The fixedly method and the device of frame per second high-dynamics image of in imageing sensor, obtaining proposed by the invention; Confirm long time of integration of the horizontal reset original position of present frame according to the current frame length T1 time of integration; The length row time of integration is read original position; According to the present frame short time of integration of T2; Short time of integration, maximum M confirmed short time of integration of the horizontal reset original position of present frame; The weak point row time of integration is read original position; Confirm long time of integration of the horizontal reset original position of next frame the time of integration according to next frame length; The size of the current frame length T3 time of integration and next frame length T1 time of integration gap no matter; The current frame length T1 time of integration; The present frame short time of integration of T2; The odd even characteristic of next the frame length T3 time of integration; In the time of can both guaranteeing the photosensitive pixel array with anchor-frame progress row integration operation, present frame and next frame all can reset fully; Reached thus when guaranteeing picture quality, guaranteed that image is complete with fixing frame per second, the effect of correct output.
Embodiment
Clearer for technical problem, technical scheme and beneficial effect that the present invention is solved, below in conjunction with accompanying drawing and embodiment, the present invention is further elaborated.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.
In imageing sensor, obtain fixedly frame per second high-dynamics image, need the size of the current frame length T1 time of integration, next the frame length T3 time of integration be compared earlier.
Long time of integration of the T1 of present frame is compared with long time of integration of the T3 of back one frame: as if the current frame length T1 time of integration less than the present frame frame length; Back one frame long time of integration T3 greater than long time of integration of the T1 of present frame, and when afterwards the difference of the frame length T3 time of integration and the current frame length T1 time of integration is greater than the frame free time T4 of present frame time.Utilize following algorithm in imageing sensor, to obtain fixedly frame per second high-dynamics image.
In imageing sensor, obtain the fixedly method of frame per second high-dynamics image, as shown in Figure 2, comprise step:
A: the photosensitive pixel array is distributed the long time of integration and the short time of integration;
B: according to present frame long time of integration T1 long time of integration the horizontal reset original position begin present frame photosensitive pixel array is resetted line by line;
C: read original position from the current frame length row time of integration and begin successively the long time of integration of the row view data of integration of present frame photosensitive pixel array to be read; Then according to present frame short time of integration T2 with short time of integration maximum M confirm short time of integration of horizontal reset original position; Said short time of integration, maximum M was an odd number, short time of integration the horizontal reset original position begin present frame photosensitive pixel array is resetted line by line; Read original position according to the definite weak point of the short maximum M time of integration row time of integration, read original position from the weak point row time of integration then and begin successively the short time of integration of the row view data of integration of present frame photosensitive pixel array to be read; The length row view data time of integration is alternately read with the weak point row view data time of integration; Next according to back one frame long time of integration T3 size confirm next frame length horizontal reset time of integration original position, and begin a back frame photosensitive pixel array is resetted line by line in next frame length horizontal reset time of integration original position;
D: maximum M confirms in the frame that the current frame length in the time of count line arbitrarily reads row, long time of integration reset line, short time of integration reset line, the short time of integration time of integration and read row, next frame length reset line time of integration according to the current frame length T1 time of integration, the present frame short time of integration of T2, next frame length T3 time of integration, short time of integration;
E: circulation execution in step A, B, C, D, with the capable integrated signal output of integration of obtaining.
In the said method; The current frame length horizontal reset time of integration, short time of integration, horizontal reset, next frame length horizontal reset time of integration all were per two row gate times delegation that reset; The current frame length row time of integration reads, short time of integration row to read also be that per two row gate times are read delegation, reach long time of integration the row view data with the short purpose that the time of integration, the row view data was alternately read.
Among the step C long time of integration the row picture signal with short time of integration row picture signal alternately read can make short time of integration the row view data can read (the M+1)/2 row long time of integration of row view data earlier before reading; And long time of integration line data read finish after, then need continue to read (the M+1)/2 row short time of integration of row view data.Those are not had the actual long and short row that the time of integration, the row view data was read, its address is pointed to black row or a certainly need do not exported capable address.
In the above-mentioned method of in imageing sensor, obtaining fixing frame per second high-dynamics image, the present frame short time of integration of horizontal reset original position is after current frame length horizontal reset time of integration original position, but early than next frame length horizontal reset time of integration original position.When reading, read long time of integration of the row view data of present frame earlier, begin to read short time of integration of the row view data of present frame behind the row of (M+1)/2.
Describing current frame length horizontal reset time of integration original position in the said method, long time of integration row below in detail reads original position, short time of integration horizontal reset original position, short time of integration row and reads the position relation of original position, next frame length horizontal reset time of integration original position.
Among the said step D capable long when the time of integration, the row view data was read to the N of the integration of said present frame photosensitive pixel array: read present frame photosensitive pixel array (the 2N+1-M)/2 row short time of integration of the row view data of integration at the capable gate time of ensuing unit; If T1 is even number, then at reset (N+T1/2) row long time of integration of row of present frame photosensitive pixel array of this line time; If T1 is odd number, then at reset (N+ (T1+1)/2) row long time of integration of row of present frame photosensitive pixel array of the capable gate time of ensuing unit; If T2 is even number, then at reset (N-(M-T2-1)/2) row short time of integration of row of present frame photosensitive pixel array of the capable gate time of ensuing unit; If T2 is odd number, at reset (N-(M-T2)/2) row short time of integration of row of present frame photosensitive pixel array of this line time; Confirm that according to the back one frame length T3 time of integration at this line time still be the capable length of the S row time of integration of a frame photosensitive pixel array after the capable gate time of ensuing unit resets.
S <= ((2N+1-M)/2) < ((N-(M-T2-1)/2) or (N-(M-T2)/2 wherein)) <= N < ((N+T1/2) or (N+(T1+1)/2)); Expression is to a certain effective row address in the photosensitive pixel array; The address (N+T1/2) of the current frame length reset line time of integration or (N+(T1+1)/2) reads capable address N the time of integration greater than current frame length; Current frame length is read capable address N more than or equal to the short reset line address time of integration (N-(M-T2-1)/2 of present frame the time of integration) or (N-(M-T2)/2); The short reset line address time of integration (N-(M-T2-1)/2 of present frame) or (N-(M-T2)/2) read row address (2N+1-M)/2 the short time of integration greater than present frame), present frame is read row address (2N+1-M)/2 the short time of integration) more than or equal to the address of next the frame length reset line time of integration.
Further, after said step e, also comprise:, said data image signal is carried out the step that picture signal is handled and exported the step that said integrated signal analog-to-digital conversion is a data image signal.Said picture signal is treated to synthesizes into a frame image data with long and short time of integration of the row view data of same lines address in the same frame.
Further, this algorithm also comprises: in a frame time, long time of integration of the T1 of all the effective capable view data that need read is all identical in the photosensitive pixel array, and short time of integration, T2 was all identical.The length T1 time of integration is more than or equal to the weak point T2 time of integration.In addition,, need read the data that are equivalent to the normal image twice in the frame time for high-dynamics image, in the frame all long times of integration line data and all short times of integration line data all can generate the complete image of a frame respectively; And long and short time of integration horizontal reset pairing address and order all should be identical when reading, the different original positions that just resets and read makes things convenient for long and short time of integration of the line data with the same lines address to synthesize like this.
Further, this algorithm also comprises: in a frame time, to the effective row of photosensitive pixel array accomplish read or reset after, to the horizontal reset of not using of advancing.
The row address of not using is the row address that need not to read in the photosensitive pixel array; Generally be to occur because front end has realized getting window or image zooming function; Exert an influence for avoiding these not read effective row that capable integral charge reads the need that are adjacent; Need reset to it, so that empty its charges accumulated.
Effective row comprises the row of space described in this algorithm.For example, when doing image zoom, exist between any two during the row address of sampling at interval.
Effectively go described in this algorithm and comprise adjacent row.Photosensitive pixel array top and the bottom have the row of much not using when for example, getting window or realization AD HOC.
The fixedly method of frame per second high-dynamics image of in imageing sensor, obtaining proposed by the invention; Confirm long time of integration of the horizontal reset original position of present frame according to the current frame length T1 time of integration; The length row time of integration is read original position; According to the present frame short time of integration of T2; Short time of integration, maximum M confirmed short time of integration of the horizontal reset original position of present frame; The weak point row time of integration is read original position; Confirm long time of integration of the horizontal reset original position of next frame the time of integration according to next frame length; The size of the current frame length T3 time of integration and next frame length T1 time of integration gap no matter; The current frame length T1 time of integration; The present frame short time of integration of T2; The odd even characteristic of next the frame length T3 time of integration; In the time of can both guaranteeing the photosensitive pixel array with anchor-frame progress row integration operation, present frame and next frame all can reset fully; Reached thus when guaranteeing picture quality, guaranteed effect can image complete, correct output with fixing frame per second.
In addition, the present invention also provides and in imageing sensor, has obtained the fixedly device of frame per second high-dynamics image, as shown in Figure 3, comprising: photosensitive pixel array 1, the calculating time of integration and allocation units 2, length integral processing unit 3.
Calculate the time of integration and allocation units 2, calculate the long and short time of integration according to output image information, and distribute to photosensitive pixel array 1; Length integral processing unit 3, according to present frame long time of integration T1 long time of integration the horizontal reset original position begin present frame photosensitive pixel array is resetted line by line;
Line from the current frame. Integration time sequentially reading out starting position of the current frame has a photosensitive pixel array long integration time line integral image data read out, based on the current frame and the short integration time T2 and the short integration time Maximum M determine the short integration time line resets the starting position, the maximum value of the short integration time M is odd, in a short integration time line resets the starting position of the current frame photosensitive pixel array progressive reduction, based on a short integral time determines the maximum value M short integration time row readout start position, and the short integration time line sequentially reading out starting position of the current frame has a photosensitive pixel array short integration time line integral image data read out; long integration time lines of image data, and short integration time alternating lines of image data read out; next subsequent frame based on the long integration time T3, the size of the frame length to determine the next row reset the starting position the integration time and the integration time of the next row reset frame length starting position for After a reset the photosensitive pixel array row by row;
Maximum M confirms in the frame that the current frame length in the time of count line arbitrarily reads row, long time of integration reset line, short time of integration reset line, the short time of integration time of integration and read row, next frame length reset line time of integration according to the current frame length T1 time of integration, the present frame short time of integration of T2, next frame length T3 time of integration, short time of integration.
Further, in imageing sensor, obtaining fixedly, the device of frame per second high-dynamics image also comprises:
AD conversion unit 4: in order to convert said integrated signal into data image signal;
Image signal processing unit 5: picture signal is handled and output in order to said data image signal is carried out, and said picture signal is treated to synthesizes into a frame image data with long and short time of integration of the row view data of same lines address in the same frame.
Further, in a frame time, long time of integration of the T1 of all row of photosensitive pixel array is all identical, and short time of integration, T2 was all identical, and long time of integration, T1 was more than or equal to short time of integration of T2.In addition,, need read the data that are equivalent to the general mode twice in the frame time for high dynamic mode, in the frame all long times of integration line data and all short times of integration line data all can generate the complete image of a frame respectively; And long and short time of integration horizontal reset pairing address and order all should be identical when reading, the different original positions that just resets and read, convenient long and short time of integration of line data with the same lines address synthesizes.
Further, in a frame time, to the effective row of photosensitive pixel array accomplish read or reset after, to the horizontal reset of advancing do not used along the band reset unit.
The row address of not using is the row address that need not to read in the photosensitive pixel array; Generally be to occur because front end has realized getting window or image zooming function; Exert an influence for avoiding these not read effective row that capable integral charge reads the need that are adjacent; Need reset to it, so that empty its charges accumulated.
Further said effective row comprises the row of space.For example, when doing image zoom, the row address of sampling exists when promptly reading row address at interval between any two.
Further, said effective row comprises adjacent row.Photosensitive pixel array top and the bottom have the row of much not using when for example, getting window or realization AD HOC.
The fixedly device of frame per second high-dynamics image that in imageing sensor, obtains proposed by the invention; Confirm long time of integration of the horizontal reset original position of present frame according to the current frame length T1 time of integration; The length row time of integration is read original position; According to the present frame short time of integration of T2; Short time of integration, maximum M confirmed short time of integration of the horizontal reset original position of present frame; The weak point row time of integration is read original position; Confirm long time of integration of the horizontal reset original position of next frame the time of integration according to next frame length; The size of the current frame length T3 time of integration and next frame length T1 time of integration gap no matter; The current frame length T1 time of integration; The present frame short time of integration of T2; The odd even characteristic of next the frame length T3 time of integration; In the time of can both guaranteeing the photosensitive pixel array with anchor-frame progress row integration operation, present frame and next frame all can reset fully; Reached thus when guaranteeing picture quality, guaranteed effect can image complete, correct output with fixing frame per second.
Further; Be convenient to understand in order to make the present invention; Below in conjunction with Fig. 4; Fig. 5; Fig. 6; Fig. 7 is to the current frame length T1 time of integration; The weak point T2 time of integration; Next frame length T3 time of integration; The maximum weak point M time of integration confirms to grow in the algorithm original position that resets the time of integration; The length view data time of integration is read original position; Original position resets the short time of integration; The weak point view data time of integration is read original position; Next frame length original position that resets the time of integration is confirmed the current frame length reset line time of integration to reading a certain long time of integration row view data; The weak point reset line time of integration; Read row the short time of integration; Next frame length reset line time of integration.
Line_counter is the row count signal among Fig. 4, Fig. 5, Fig. 6, Fig. 7; Reset_line_address is the current frame length row address time of integration; Short_int_reset_line_address is the present frame short time of integration of a row address; Double_reset_line_address is next frame length row address time of integration, and Scan_line_address is that the length row time of integration is read the address.
Fig. 4 is the sequential chart of the integral control of the embodiment of the invention; Be worth M the maximum short time of integration is 5, and the current frame length T1 time of integration is 10, and the present frame short time of integration of T2 is 3, and next frame length time of integration is 100.
The long time of integration 10 of present frame and the long time of integration 100 of back one frame are compared; Because current frame length time of integration 10 is less than current frame length 1020; One frame length time of integration 100 of back is greater than current frame length time of integration 10; And (100-10) greater than frame ineffective time 44 of present frame; And 10 and 100 are even number; Therefore under the situation that does not change frame length; The current frame length row time of integration can overlap with resetting of the back one frame length row time of integration, i.e. conflict.Present frame short time of integration is 3 in addition, so between the present frame long and short time of integration of the row and also can overlap with back resetting between the frame length row time of integration present frame short time of integration; For example, the count signal Line_counter that is expert at is 100 o'clock, promptly to the horizontal reset of advancing current frame length time of integration the 465th, again to the horizontal reset of advancing next frame length time of integration the 0th, also to the present frame horizontal reset of advancing the short time of integration the 458th.
10 begin present frame photosensitive pixel array is resetted line by line according to the long integration 10 of the present frame count signal Line_counter that is expert at; From row count signal Line_counter is that 1020 beginnings are read the picture signal of the long time of integration of the row of integration of present frame photosensitive pixel array successively; Being 1018 to begin present frame photosensitive pixel array is resetted line by line according to short time of integration 3 of present frame, the maximum short time of integration 5 from row count signal Line_counter then, is that 1015 beginnings are read the picture signal of the short time of integration of the row of integration of present frame photosensitive pixel array successively according to the maximum 5 of the short time of integration from row count signal Line_counter.Be 100 to begin back one frame photosensitive pixel array is resetted line by line from row count signal Line_counter then according to one frame length time of integration 100 of back.
As shown in Figure 5, the count signal Line_counter that is expert at be 100 o'clock long when the time of integration, row was read to the 460th row of the integration of said present frame photosensitive pixel array, at the 465th row long time of integration of the row of this horizontal reset present frame photosensitive pixel array; The count signal Line_counter that is expert at is the 458th row short time of integration of the row view data of reading the integration of present frame photosensitive pixel array at 99 o'clock, confirms the 459th row short time of integration of the row at this horizontal reset present frame photosensitive pixel array the short time of integration 3 according to present frame simultaneously; Confirm the 0th row long time of integration of the row of a frame photosensitive pixel array behind this horizontal reset one frame length time of integration 100 according to the back.
In addition; Above-mentioned the photosensitive pixel array is resetted in the process with read operation, have one frame length reset line time of integration address, back, 0<present frame to read the row address 458<present frame short time of integration of reset line address 459<current frame length the short time of integration and read row address 460<current frame length reset line time of integration address 465 time of integration.
Fig. 6 is the sequential chart of another integral control of the embodiment of the invention; Be worth M the maximum short time of integration is 5, and the current frame length T1 time of integration is 10, and the present frame short time of integration of T2 is 3, and next frame length time of integration is 1014.
The long time of integration 10 of present frame and the long time of integration 1014 of back one frame are compared; Because current frame length time of integration 10 is less than current frame length 1020; One frame length time of integration 1014 of back is greater than current frame length time of integration 10; And (1014-10) greater than frame ineffective time 44 of present frame; 10 and 1014 are even number; Therefore under the situation that does not change frame length; The current frame length row time of integration can overlap with resetting of the back one frame length row time of integration, i.e. conflict; Present frame short time of integration is 3 in addition, so between the present frame long and short time of integration of the row and also can overlap with back resetting between the frame length row time of integration present frame short time of integration; For example, the count signal Line_counter that is expert at is 1014 o'clock, promptly the current frame length eighth row time of integration is resetted, again to the horizontal reset of advancing next frame length time of integration the 0th, also to the present frame horizontal reset of advancing the short time of integration the 2nd.
Began present frame photosensitive pixel array is resetted line by line in 10 o'clock according to the long integration 10 of the present frame count signal Line_counter that is expert at; From row count signal Line_counter is that 1020 beginnings are read the picture signal of the long time of integration of the row of integration of present frame photosensitive pixel array successively; Being 1018 to begin present frame photosensitive pixel array is resetted line by line according to short time of integration 3 of present frame, the maximum short time of integration 5 from row count signal Line_counter then, is that 1015 beginnings are read the picture signal of the short time of integration of the row of integration of present frame photosensitive pixel array successively according to the maximum 5 of the short time of integration from row count signal Line_counter.Be 1014 to begin back one frame photosensitive pixel array is resetted line by line from row count signal Line_counter then according to one frame length time of integration 1014 of back.
As shown in Figure 7, the count signal Line_counter that is expert at is the 3rd capable length when the time of integration, row was read of the integration of 1014 pairs of said present frame photosensitive pixel arrays, at the eighth row long time of integration of the row of this horizontal reset present frame photosensitive pixel array; The count signal Line_counter that is expert at is the 1st row short time of integration of the row view data of reading the integration of present frame photosensitive pixel array at 1013 o'clock, is the 2nd row short time of integration of the row of 1014 o'clock present frame photosensitive pixel arrays that reset according to the present frame count signal Line_counter that confirms to be expert at the short time of integration 3 simultaneously; According to the back count signal Line_counter that confirms to be expert at one frame length time of integration 1014 is the 0th row long time of integration of the row of 1014 o'clock back one frame photosensitive pixel arrays that reset.
In addition; Above-mentioned the photosensitive pixel array is resetted in the process with read operation, have one frame length reset line time of integration address, back, 0<present frame to read the row address 1<present frame short time of integration of reset line address 2<current frame length the short time of integration and read row address 3<current frame length reset line time of integration address 8 time of integration.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of within spirit of the present invention and principle, being done, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.