Summary of the invention
[0005] after transducer is installed in the device, not during pick up calibration, once to discern bad pixel, but Real time identification bad pixel when in digital camera or other main frames, using transducer.This just can remove from when storage bad pixel table needs very big memory span, thereby reduces the complexity and the cost of this device.Can also remove spent time and expensive calibration process when determining the bad pixel position from.In addition, be not limited to static bad pixel information owing to revise bad pixel, so, can discern automatically and revise and after transducer is installed to main frame, become bad pixel.This just can overcome the transducer aging effect that produces when independent pixel becomes bad pixel in time.When the picture field on projecting transducer is caught by digital camera or other devices, can discern and revise the processing operation of bad pixel, and this operation can be carried out when catching each image.
[0006] according to a concrete feature of the present invention, when exposure sensor is having on intensity and the colored picture field that changes, for example, and when occurring in normal photographs, each pixel of quick testing sensor one by one.Measure each the given test pixel and the output valve of neighbor on every side thereof.Previous treatment step calculates the difference between each output in test pixel output and the neighbor.If these differences comprise positive difference and negative difference, then we think that this pixel is a good pixel, and test operation proceeds to next pixel successively.But, all be positive difference or all be negative difference as if these differences, think that then this given pixel may be a bad pixel, and need to do further test.Suspect that this pixel is because given pixel all becomes clear than neighbor around it or dark is abnormal.The advantage of this method is, determines that independent pixel is can considerably lack the required time of good pixel, and the nearly all normally such result of pixel in the transducer.According to another concrete feature of the present invention, poor by compared pixels output valve and at least one threshold value, test pixel may be that the processing operation of bad pixel is to carry out continuously.If the difference of the output valve of test pixel and its surrounding pixel, determines then that this pixel is a bad pixel greater than predetermined threshold, and utilizes the pixel value that calculates from its surrounding pixel value as view data.Can utilize different threshold values with the neighbor comparison time, it depends on the distance between the neighbor and test pixel on the transducer.We know, when the distance between the pixel increased, the likelihood of transducer epigraph difference increased, when it during with the distance increase of test pixel, the threshold value of application also increases.
[0007], at least once evenly response of light intensity exposure, also can calculate and be used to discern the applied threshold value of bad pixel according to pixel according to another concrete feature of the present invention.The distribution of pixel output valve is derived from this uniform exposure.According to the divergence that output valve distributes, it is included in the percentage of normal good pixel in this transducer, calculates the used threshold value of neighbor output difference.Be used for the compare test pixel and want big away from the used threshold value of pixel value difference.Preferably, utilize same model sensor and imaging optic element, calculated threshold is the data that the sample number according to video camera or other main frames obtains.Perhaps, though complicated more and expensive, can during calibrating installation, calculate the threshold value of each transducer, and/or during using this device calculated threshold automatically, be adapted to any variation of generation when transducer or imaging optic element use in order to make threshold value.
[0008] though the description of each feature of the present invention utilizes the mega pixel transducer to realize, because this transducer generally uses,, the present invention also is applicable to the transducer of less pixel.Other aspects of the present invention, advantage and feature are included in the exemplary embodiments described below, and this description should combine with accompanying drawing.
Embodiment
[0013] as shown in Figure 1, video camera comprises imageing sensor 1, and it provides and is proportional to the analog signal that incides light intensity on this transducer.Sensor signal is connected to analog to digital converter (ADC) 2, and it becomes digital signal to the Sensor Analog Relay System conversion of signals.The operation of timing generator 5 control transducers 1 and ADC2.Then, the digital sensor dateout is by the processing level of series connection.Two this, and to handle level be that the bad pixel that is used to discern bad pixel determines 6 and be used to revise the bad pixel correction 8 of identification bad pixel, it be according to and identification bad pixel adjacent pixels output valve.Can comprise or not comprise image processing level 4,7 or 9.The processing level of each series connection can be utilized at different levels in succession of view data after buffer 3 transmission process, can also utilize data that buffer 3 temporary transient storages produce as the part of finishing processing.Video camera also comprises the optical system (not shown), is used for the direct light figure to transducer 1, and also comprises mechanical shutter and controlled diaphragm usually.
[0014] with reference to Fig. 2 A-2C, a kind of very fraction of form pel array is showed separately green (G) respectively in its expression transducer 1, blue (B) and red (R) look sensitive pixels.In the example of describing, the process of identification and correction bad pixel is that every kind of primary colours pixel in these primary colours is carried out respectively.In other words, test green pixel G
TUtilize its adjacent green pixel G1-G8, test blue pixel B
TUtilize its adjacent blue pixel B1-B8, and test red pixel R
TUtilize its adjacent red pixel R1-R8.
[0015] bad pixel described herein determines that method is based on such fact, and imageing sensor and optical element thereof produce the band-limited transducer output signal of telecommunication.Therefore, the existence of bad pixel is pointed out in the position of pixel output valve high frequency variation." just " test pixel is the pixel of its output valve greater than all neighbor output valves, and " bearing " test pixel is the pixel of its output valve less than all neighbor output valves.If its output valve, determines then that it is positive test pixel greater than the one or more positive threshold values of its neighbor; If its output valve, determines then that it is the negative testing pixel less than the one or more negative threshold values of its neighbor.In one embodiment, the neighbor that we consider comprises the pixel of all same colors, the upside of these pixels next-door neighbour test pixel, downside, left side, right side, and the pixel that becomes the diagonal angle vicinity with all four angles of test pixel.
[0016] bad pixel shown in Figure 1 of the flowchart text among Fig. 3 determines 6 and the processing operation finished of bad pixel correction 8, wherein with reference to typical pixel graphics shown in Fig. 2 A-2C.The data normalization step (not shown) that can also comprise standard, and can also change over the sequence of steps among Fig. 3 the order different with it.
[0017] first step 21 is read the digitlization of test pixel and neighbor thereof and/or the output valve after the processing.If green pixel G among Fig. 2 A
TBe test pixel, then read its output valve and the output valve of its contiguous green pixel G1-G4 at least, can also read slightly away from G
TGreen pixel G5-G8 output valve.Similarly, with reference to Fig. 2 B, if Fig. 2 B Smalt pixel B
TBe test pixel, the output valve of then reading it with and the output valve of contiguous blue pixel B1-B4, can also read slightly away from B
TBlue pixel B5-B8 output valve.At last, as if red pixel R among Fig. 2 C
TBe test pixel, the output valve of then reading it with and the output valve of contiguous red pixel R1-R4, can also read adjacent red pixel R5-R8 output valve, pixel R5-R8 and pixel R1-R4 are more slightly away from R
T
[0018] next step in Fig. 3 23, deduct the output valve of neighbor from the output valve of test pixel respectively.For example, if green pixel G
TBe test pixel, then from G
TAt least deduct the output valve of its neighborhood pixels G1-G4 in the output valve, preferably also comprise neighbor G5-G8.This can obtain 4 or 8 differences.For example, utilize the algorithm of all 8 differences, these differences can be expressed as follows:
D1=G
T-G1;D2=G
T-G2;D3=G
T-G3;D4=G
T-G4;
D5=G
T-G5;D6=G
T-G6;D7=G
T-G7;D8=G
T-G8。
If blue pixel B
TOr red pixel R
TBe test pixel, then can also form 4 or 8 differences being adjacent pixel.
[0019] then, whether the symbol of 8 difference D1-D8 is all identical to determine them in our research step 25.If they are not identical symbols, then obtained the result.It determines that test pixel is a good pixel, so, in the data file of image, utilize its numerical value, shown in step 27.But if the symbol of 8 difference D1-D8 all is identical, then it points out that test pixel may be a bad pixel.Single test pixel with around it between all pixels difference identical symbol is arranged is unlikely.Inciding light field on the transducer, to have high frequency characteristics on a few directions be possible, for example, some straight lines and turning are arranged in image, but, if on all directions, all show high frequency characteristics, this means that the numerical value of test pixel is greater than or less than the numerical value of all neighbors, be easy to then suspect that this test pixel is a bad pixel.But before announcing that this test pixel is bad pixel, we study the amplitude that it is adjacent difference between the pixel.
[0020] as step 29 among Fig. 3,31,33 and 35 is pointed, difference and one or more threshold value compared, if difference greater than threshold value, announces that then test pixel is a bad pixel.Need to keep positive difference different threshold levels to be arranged with negative difference.So,, then these differences and one or more negative threshold value are compared in step 31 if the difference of determining in step 29 all is a negative value.Similarly, if the difference of determining in step 29 all be on the occasion of, then these differences and one or more positive threshold value are compared in step 33.No matter they are positive difference or negative difference, determine that in step 35 whether the absolute value of each difference is greater than the threshold value of using.If not, announce that then this pixel is a good pixel, so its output valve is as the view data of part, and is pointed as step 27.
[0021] still, if all differences, determine then that this pixel is a bad pixel greater than the threshold value of using, so its output valve should be as the image data of part.The light field that projects object scene on the transducer seldom has this high-resolution situation, and wherein it all neighbor of pixel and its is so different.So bad pixel determines that square frame 6 finishes its function among Fig. 1.Finish the correction of pixel output valve subsequently according to the function of square frame 8.This is the Numerical Implementation that calculates bad pixel according to its neighbor output valve, then, calculated value is replaced actual bad pixel output valve.
[0022] this calculating and replacement operation take place in the step 37 and 39 of Fig. 3.A kind of direct method that is used to calculate the bad pixel value is that at least some adjacent pixel values are got simple arithmetic average.The neighbor of choosing this mean value needn't be the identical neighbor of bad pixel with definite this pixel, but also can be these neighbors.For example, under the situation of green pixel shown in Fig. 2 A, can utilize the most contiguous pixel G1-G4 to average, and save slightly away from neighbor G5-G8, it is in the calculating of bad pixel that these neighbors can be used on this pixel of identification.
[0023] though preferably utilize the adjacent pixel values of same color to be averaged, also can adopt many other math functions that are different from simple average.This function can be linear or nonlinear, not only consider the difference of each pixel and same color neighbor, it and identification other neighbors of same color around the bad pixel are compared, but also adopt other values of multirow in bad pixel and/or the non-bad pixel of different colours or multiple row image pixel.In addition, though abandon the pixel value of bad pixel in this example, and in some cases, it is favourable keeping the output valve of bad pixel and adopt this output valve in the replacement pixel value is calculated.
[0024] from above to the discussion of identification bad pixel as can be seen, if pixel value is greater than or less than its surrounding pixel value predetermined threshold value, then can discerns this pixel and have too high frequecy characteristic.This can regard the pixel spike as in pixel, field quite uniformly.Because the optical element in digital camera or other main frames has low-frequency filter characteristics, should there be this pixel spike, so, determine that causing the pixel of spike is bad pixel.
[0025], preferably utilizes single negative threshold value and single positive threshold value for every kind of color in three kinds of colors.But, if at definite pixel G
TWhether be to utilize a plurality of neighbors far away in the bad pixel, for example, pixel G5-G8, then the threshold value that adopts with these pixel value difference comparisons the time can be different from the threshold value that adopts when neighbour's pixel G1-G4 difference compares.
[0026] bad pixel statistics in a plurality of video cameras by analyze adopting the same type imageing sensor or other devices can find employed threshold value in the bad pixel deterministic process most convenient.In case finish this analysis, the defect property of specific image transducer family can be described, rather than at the video camera of each manufacturing.For every kind of different cameras model that particular type image sensor and optical element are arranged,, just should finish this analysis by test a few representative video camera.This can provide representative statistical data to the distribution of bad image sensor pixel.In case according to determining threshold value, then they are stored in the nonvolatile memory of each video camera or other devices, in the bad pixel identifying, use by this device as the method.
[0027] with reference to Fig. 4, we explain and utilize particular type of sensor and imaging optic element to determine the method for video camera or the positive threshold value of other mounted casts.Get clogged from all light in the transducer of testing apparatus, and collect the data of each pixel output.Preferably carry out repetition for a plurality of identical model equipments.Then, all data are combined into the histogram of number of pixels as the pixel value function, as shown in Figure 4.For each " picture black " histogram that so produces, determine the pixel value Max Value that the maximum number image sensor pixel shows.In addition, choose the imageing sensor output valve and be the pixel value Maiority Value (for example, 99.9%) under Max Value, nearly all pixel value is equal to or greater than Max Value in these pixels.Majority Value deducts the positive threshold value of the numerical value of Max Value as this video camera or other mounted casts.In carrying out process shown in Figure 3, the pixel that pixel value is higher than Majority Value is used as the bad pixel processing.
[0028] percentage of the Majority Value cutoff that when determining positive threshold value, uses shown in being or specific pixel value.Actual Majority Value can be a numerical value quite arbitrarily, outside " positive threshold value " district a plurality of pixels is arranged but preferably be chosen in the histogram shown in Figure 4, and it can make handles the image that operation forms best quality is arranged among Fig. 3.
[0029] utilize similar method to determine negative threshold value, as shown in Figure 5.Transducer in the adequate illumination test video camera, and from pixel output, take out data.This carries out several video cameras, can produce the data of several test same model cameras accumulation and the number of pixels histogram as the pixel value function, as shown in Figure 5.Each almost saturated " white image " histogram for generation like this, determine the pixel value MaxValue that the maximum number image sensor pixel shows, (for example find imageing sensor output valve Majority Value, 99.9%) be pixel on Max Value, nearly all pixel is equal to or less than Max Value in these pixel values.Max Value deducts the negative threshold value of making this model camera numerical value week of Majority Value.
[0030] should be noted that from Fig. 2 A-2C we adopt the transducer of particular type when describing above method.This is a kind of typical type of commercial sensor, and wherein photoelectric detector is along red, and each row pixel green and that blue color filter covers is extended.Comprise red and green sensitive photo-detectors alternately in the delegation, and comprise indigo plant and green sensitive photo-detectors alternately in the next line, photoelectric detector also is placed to like this along each row, and it can provide alternately colored sensitivity along each row.The most of imageing sensors that use in the digital camera utilize such transducer at present, and the number of wherein distributing to green light photodetector position is more than the number of distributing to blue and red light photodetector position.Because human eye is the most responsive to green, revise bad green pixel and do not revise bad blueness and red pixel, picture quality is improved a lot.Except the transducer of type shown here, method of the present invention also is applicable to the transducer that other colour elements are arranged.
[0031] another kind of type commercialization photoelectric detector is at the overlapping a plurality of photoelectric detectors of each optical position.The top detector transmission is red and green, and leaches responsive blueness.Green near this detector transmission below top detector, and leach responsive redness.Bottom sensor is to green sensitive.Green, red is identical with the number of blue sensor.Method described above can be applied to this type sensor similarly.
[0032] though each feature of the present invention is described by exemplary embodiments, should be understood that the scope that the present invention protects is to be limited by appended claims.