Summary of the invention
The bad point calibration method and system that the purpose of this invention is to provide a kind of chromatic image, with solve degenerate because of light sensitive diode that institute produced can't calibration problem, solve the problem that known technology can't detect the evil idea point effectively simultaneously.
According to a characteristic of the present invention, be the bad point calibration method that proposes a kind of chromatic image, in order to detect the bad point in the digitized video and to be proofreaied and correct, this method comprises the following step: (A) receive a pixel and neighborhood pixels in this digitized video; (B) this pixel benefit is put red into having, green and Lan Sanse; (C), produce one first color difference signal and one second color difference signal according to red, the green and Lan Sanse of this pixel; (D) this first and second color difference signal is carried out Filtering Processing, produce one the 3rd color difference signal and one the 4th color difference signal; (E) if the 3rd color difference signal or the 4th color difference signal, determine that this pixel is a bad point less than a threshold value; (F) if judge that this pixel is a bad point, calculate the local edge of this pixel and neighborhood pixels, and select for use the neighborhood pixels value that this evil idea point pixel is proofreaied and correct according to this local edge.
According to another characteristic of the present invention, be the compensating bad point system that proposes a kind of chromatic image, to detect the bad point in the digitized video and to be proofreaied and correct, this system comprises one and mends point apparatus, an aberration generation device, a bad some arrangement for detecting and a bad point calibration device.This benefit point apparatus receives a pixel and the neighborhood pixels in this digitized video, this pixel is mended put red into having, green and Lan Sanse; This aberration generation device is coupled to this benefit point apparatus, according to red, the green and Lan Sanse of this pixel, produces one first color difference signal and one second color difference signal; This evil idea point arrangement for detecting is coupled to this aberration generation device, so that this first and second color difference signal is carried out Filtering Processing, producing one the 3rd color difference signal and one the 4th color difference signal,, produce a bad some signal when the 3rd color difference signal or the 4th color difference signal during less than a threshold value; This bad point calibration device is coupled to this evil idea point arrangement for detecting, according to this bad some signal, calculates the local edge of this pixel and neighborhood pixels, and selects for use the neighborhood pixels value that this evil idea point pixel is proofreaied and correct according to this local edge.
Because modern design of the present invention can provide on the industry and utilize, and truly have the enhancement effect, so apply for patent of invention in accordance with the law.
Description of drawings
Fig. 1 is the calcspar of the compensating bad point system of chromatic image of the present invention.
Fig. 2 is the benefit point schematic diagram of colored Bel's pattern image of the present invention.
Fig. 3 is the circuit diagram of aberration generation device of the present invention.
Fig. 4 is the calcspar of bad some arrangement for detecting of the present invention.
Fig. 5 is the calcspar of threshold value comparator of the present invention.
Fig. 6 is the schematic diagram of threshold value and brightness value.
Fig. 7 is the calcspar of another embodiment of the present invention.
The figure number explanation
Mend point apparatus 110 aberration generation devices 120
Bad some arrangement for detecting 130 bad point calibration devices 140
First subtracter, 121 second subtracters 122
First median filter, 410 first low pass filters 420
The 3rd subtracter 430 second median filters 440
Second low pass filter 450 the 4th subtracter 460
Threshold value comparator 470 table look-up devices 510
First comparator, 520 second comparators 530
Embodiment
Relevant preferred embodiment explanation of the present invention please be with reference to the calcspar of Fig. 1 demonstration.It is in order to detect the bad point in the digitized video and to be proofreaied and correct, and this digitized video is a Bel (bayer) pattern image.This system comprises one and mends point apparatus 110, an aberration generation device 120, one a bad some arrangement for detecting 130 and a bad point calibration device 140.
It receives a pixel in this digitized video (i, j) and neighborhood pixels, (i j) mends and puts red into having, green and blue tristimulus signal with this pixel to mend point apparatus 110.Fig. 2 is the benefit point schematic diagram of colored Bel's pattern image.The arrangement mode of pixel is with a row GRGRGR, and a row BGBGBG arranges formation alternately.Each pixel only is red, green or blue one of them color-values.So need in mending point apparatus 110, utilize the method for mending point to rebuild non-existent other color-values for each pixel.
Aberration generation device 120 is coupled to this benefit point apparatus 110, and (i, red, green and Lan Sanse j) produce one first color difference signal U ' and one second color difference signal V ' according to this pixel.Fig. 3 is the circuit diagram of aberration generation device 120, and it comprises one first subtracter 121 and one second subtracter 122.The first input end of first subtracter 121 receives the danger signal of this pixel, and its second input receives the green of this pixel.(i, red value j) deducts green value to first subtracter 121, produces this first color difference signal U ' with this pixel.Second subtracter 122 deducts green value with the blue valve of this pixel, produces this second color difference signal V '.
Bad some arrangement for detecting 130 is coupled to this aberration generation device 120, so that this first color difference signal U ' and the second color difference signal V ' are carried out Filtering Processing, to produce one the 3rd color difference signal U " and one the 4th color difference signal V ".As the 3rd color difference signal U " or the 4th color difference signal V " during less than a threshold value, produce a bad some signal.
Fig. 4 is the calcspar of bad some arrangement for detecting 130, and it comprises one first median filter (medianfilter) 410, one first low pass filter 420, one the 3rd subtracter 430, one second median filter 440, one second low pass filter 450, one the 4th subtracter 460 and a threshold value comparator 470.
First median filter 410 carries out medium filtering with this first color difference signal U ' to be handled.It is with pixel (i, j) and the ascending arrangement of the first color difference signal U ' of neighborhood pixels.For example: pixel (i, j) and the first color difference signal U ' of neighborhood pixels be respectively 135,140,163,157,160,155,150,142,140}, after handling via this first median filter 410, then produce 135,140,140,142,150,155,157,160,163}.
First low pass filter 420 is coupled to this first median filter 410, will carry out low-pass filtering treatment through the signal of medium filtering, produces a multicolored difference signal.The coefficient of first low pass filter 420 can be
Just, the result after first median filter 410 is handled 135,140,140,142,150,155,157,160,163}, handle via first low pass filter 420 again, multicolored difference signal value that produces is:
{140×1+142×4+150×6+155×4+157×1}/16。
The 3rd subtracter 430 is coupled to this first low pass filter 410, and U ' deducts this multicolored difference signal with this first color difference signal, to produce the 3rd color difference signal U ".
Second median filter 440 carries out medium filtering with this second color difference signal V ' to be handled.Second low pass filter 450 is coupled to this second median filter 440, will carry out low-pass filtering treatment through the signal of medium filtering, produces one the 6th color difference signal.The 4th subtracter 460 is coupled to this second low pass filter 450, and V ' deducts the 6th color difference signal with this second color difference signal, to produce the 4th color difference signal V ".
Threshold value comparator 470 is coupled to the 3rd subtracter 430 and the 4th subtracter 460, as the 3rd color difference signal U " or the 4th color difference signal V " during less than a threshold value, produce a bad some signal.Fig. 5 is the calcspar of threshold value comparator 470, and it comprises a table look-up device 510, one first comparator 520, one second comparator 530.
Table look-up device 510 is coupled to this benefit point apparatus, and (i, green value j) produces this threshold value according to this pixel.(i, brightness value j) (green value) is relevant for the size of this threshold value and this pixel.Fig. 6 is the schematic diagram of threshold value and brightness value (green value).When brightness value is bigger, threshold value is bigger, and when brightness value is littler, threshold value is littler.Just when illuminated state zone has bigger difference (Diff), just be judged to be bad point.Then less difference need be arranged at dark state zone, just be judged to be bad point.
First comparator 520 is coupled to the 3rd subtracter 430 and this table look-up device 510, with to the 3rd color difference signal U " compare greater than this threshold value.As the 3rd color difference signal U " greater than this threshold value, first comparator 520 produces one first index signal 540, and (i j) is bad point to represent pixel, and (i, red value j) need be proofreaied and correct to indicate pixel.
Second comparator 530 is coupled to the 4th subtracter 460 and this table look-up device 510, with to the 4th color difference signal V " compare greater than this threshold value.As the 4th color difference signal V " greater than this threshold value, second comparator 530 produces one second index signal 550, and (i j) is bad point to represent pixel, and (i, blue valve j) need be proofreaied and correct to indicate pixel.
Bad point calibration device 140 is coupled to this evil idea point arrangement for detecting 130 and this benefit point apparatus 110, according to this first index signal 540 or second index signal 550, calculate this pixel (i, j) and the local edge of neighborhood pixels.Select for use the neighborhood pixels value that this evil idea point pixel is proofreaied and correct according to this local edge again.
Fig. 7 is the calcspar of another embodiment of the present invention.This bad point calibration device 140 receive a pixel in Bel's pattern digitized video (i, j) and neighborhood pixels, and according to the output signal of this bad some arrangement for detecting 130, calculate this pixel (i, j) and the local edge of neighborhood pixels.Select for use the neighborhood pixels value that this evil idea point pixel is proofreaied and correct according to this local edge again.
The present invention carries out badly some detecting at aberration field (domain) in real time, and it utilizes the benefit point methods to restore pairing red, the green and Lan Sanse of each pixel earlier with Bel (bayer) the pattern image that Image sensor apparatus captured.The video conversion that will have red, green and Lan Sanse again is to the aberration field.On aberration (chroma) field, carry out the detecting of bad point.At last, utilize the pixel value of neighborhood pixels that bad point is done correction.The bad point calibration system of chromatic image of the present invention is converted to the aberration field with pixel by the RGB field earlier, carries out bad some detecting again.Owing to go bad some detecting in the aberration field, can in the RGB field, be easier to evil idea point is distinguished.Therefore can judge accurately whether the pixel that desire is handled is bad point.
The technology of the present invention can avoid known technology to utilize the problem of the bad point of defect map record, also can solve known technology can't detect bad point effectively on Bel's pattern image problem.
Above-mentioned preferred embodiment only is to give an example for convenience of description, and the protection range that the present invention advocated should be as the criterion so that claim of the present invention is described, but not only limits to the foregoing description.