CN1301621C - Method and device for dynamic detection pixel number - Google Patents

Method and device for dynamic detection pixel number Download PDF

Info

Publication number
CN1301621C
CN1301621C CNB2004100791184A CN200410079118A CN1301621C CN 1301621 C CN1301621 C CN 1301621C CN B2004100791184 A CNB2004100791184 A CN B2004100791184A CN 200410079118 A CN200410079118 A CN 200410079118A CN 1301621 C CN1301621 C CN 1301621C
Authority
CN
China
Prior art keywords
pixel number
detected
pixel
value
numerical value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CNB2004100791184A
Other languages
Chinese (zh)
Other versions
CN1589033A (en
Inventor
吴东阳
简启明
刘吉桥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Via Technologies Inc
Original Assignee
Via Technologies Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Via Technologies Inc filed Critical Via Technologies Inc
Priority to CNB2004100791184A priority Critical patent/CN1301621C/en
Publication of CN1589033A publication Critical patent/CN1589033A/en
Application granted granted Critical
Publication of CN1301621C publication Critical patent/CN1301621C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Color Television Image Signal Generators (AREA)

Abstract

The present invention relates to a method for dynamically detecting a pixel number value and a device for receiving an array of a pixel number. The array of the pixel number value has a pixel number value to be detected. A plurality of reference pixel number values are respectively minus the pixel number value to be detected so as to obtain a plurality of difference values. A sampling pixel of each reference pixel number value is a sampling pixel number value which is positioned near the pixel number value to be detected; the reference pixel number value and the pixel number value to be detected represent the same color. The difference value is compared with the reference value; when the absolute value of the difference value is larger than that of the reference value, the pixel number value to be detected is judged to be wrong.

Description

The method and apparatus of detection of dynamic pixel number
Technical field
The relevant a kind of color digital Image sensor apparatus of the present invention, and particularly about a kind of correctness of dynamic judgement pixel number and the method and apparatus that can be revised immediately.
Background technology
Most at present color digital camera chain all is to utilize sensing apparatus (Sensor), charge coupled device (Charge-Coupled Device for example, CCD) or CMOS (Complementary Metal Oxide Semiconductor) (CMOS) sensing apparatus, carry out the work of image sampling.In general, sensing apparatus is a principle of utilizing photon meeting excitation electron (with the hole) to jump between different energy rank, and the incident light that senses is changed into electric signal.
In order to detect the light of different color, be necessary for ruddiness, blue light is prepared different pixels sampled respectively with green glow.The most normal colorful optical filter array that is used (the Bayer ColorFilter Array with the size that can reduce sensing apparatus effectively, CFA) be example, each pixels sampled only is responsible for a color, for example panchromatic be (being red, green, blue three looks) 1/3rd.And in order to supply the complete color structure of each pixels sampled, sensing apparatus must carry out color interpolative operation (Color Interpolation), obtains other two kinds of colors that each pixels sampled lacks by interpolation, to improve resolution.
In practical operation, some pixels sampled is for example had a defective pixels, may obtain wrong pixel number.If these wrong pixel numbers are not carried out further correcting process, then can have influence on the quality of image.The simplest correcting process mode of tradition is to test before sensing apparatus dispatches from the factory earlier, and record is the position of each defect pixel wherein, and in follow-up numerical value is handled its pairing pixel number is added extra correction.
Yet, for for example passing the pixel of the new defective that produces for a long time or cover erroneous pixel numerical value that camera lens obtains or because of position of changing that sensing apparatus produced and originally different defect pixels or the like is not the factor that just exists, this existing correcting process mode just can't be made correct correction to it because of dust when sensing element dispatches from the factory because of the time.
U.S. patent application case 2004/0032516 A1 discloses a kind of " in conjunction with the digital image system and the method for going mosaic and bad pixel correction ", utilize the method for detection of dynamic to revise the pixel number of above-mentioned mistake, and can handle all pixel numbers together in conjunction with the method for color interpolative operation.Yet, the disclosed prior art of this U.S. patent application case, its circuit structure complexity and calculation process that need be huge so not only need system's operational capability at a high speed to support, and more increase the cost burden when designing and making.In addition, the resulting image of this prior art is because through too many numerical operation, therefore visually seems too fuzzy easily and flows in distortion.
Summary of the invention
A purpose of the present invention is the method that proposes a kind of detection of dynamic pixel number, in order to detection of dynamic and the pixel number that corrects mistakes immediately, and avoids complicated numerical operation and causes the problem of distortion.
Another object of the present invention is the system that proposes a kind of detection of dynamic pixel number, and its circuit structure simply and not needs huge calculation process, and can be in conjunction with original color interpolative operation device, to reduce design and the cost of making.
According to the method and apparatus that the invention provides a kind of detection of dynamic pixel number.In register, this pixel number array has pixel number to be detected with the pixel number array stores.Respectively a plurality of reference pixel numerical value and pixel number to be detected are subtracted each other to draw a plurality of differences with subtracter.The pixels sampled of this reference pixel numerical value is the pixels sampled around pixel number to be detected, and this reference pixel numerical value is identical with the color of pixel number representative to be detected.Use comparator relatively this difference and reference value,, judge that just pixel number to be detected is for wrong when the absolute value of this difference during all greater than reference value.
According to a preferred embodiment of the present invention, the device of detection of dynamic pixel number also comprises adder and divider, when pixel number to be detected is mistake, replace this pixel number to be detected by adder and divider with the mean value of this reference pixel numerical value, and when one of them is not more than reference value when the absolute value of this difference, keep this pixel number to be detected.
According to a preferred embodiment of the present invention, the pixels sampled of this reference pixel numerical value all equates with distance between the pixels sampled of pixel number to be detected, and the pixels sampled of this reference pixel numerical value is surrounded the pixels sampled of pixel number to be detected.Moreover this detection of dynamic pixel number device is to combine with color interpolative operation device.
The method and apparatus of detection of dynamic pixel number of the present invention is relatively to judge whether mistake of pixel number with the difference of subtraction gained and reference value, and its circuit structure simply and not needs a large amount of calculation process, the burden that can reduce cost significantly.Moreover the present invention can be incorporated among original color interpolative operation device of sensing apparatus, does not need complicated additional circuit to improve, and can reduce design and difficulty and the cost made effectively.In addition, utilize the present invention to handle the image of image later,, solved the problem of existing image distortion not through too many numerical operation compared to the prior art gained.
Description of drawings
Figure 1A is the method flow diagram of a preferred embodiment of the present invention;
Figure 1B is the device schematic diagram of a preferred embodiment of the present invention; And
Fig. 2 is the schematic diagram of the pixel number array of a preferred embodiment of the present invention.
Embodiment
Figure 1A is the method flow diagram of a preferred embodiment of the present invention, and Figure 1B then is the device schematic diagram of a preferred embodiment of the present invention.
At first, with sensing apparatus, for example the sensing apparatus of charge coupled device (CCD), CMOS (Complementary Metal Oxide Semiconductor) (CMOS) sensing apparatus or colorful optical filter array sampling changes into a plurality of original pixel numbers with the incident light that senses by the pixels sampled of being responsible for different color.Certainly, if monochromatic light or just will make black-and-white image can only use a kind of pixels sampled of color or can not differentiate the pixels sampled of color.Then,, part or all of pixel number is stored in the register 132, forms a pixel number array (step 102) according to the distribution spatially of each pixels sampled.
In will checking a plurality of pixels sampled that this pixel number array is comprised, when whether having pixels sampled to be the pixels sampled of bad (or saying fault), can detect each pixel one by one.For example begin, by row by the order of row, detect each pixel gradually in regular turn from the upper left side of whole pixel number array.And when detecting some pixels, whole pixel number array can be considered as a pixel number to be detected and a plurality of reference pixel numerical value.The pixels sampled of this reference pixel numerical value is the pixels sampled around pixel number to be detected, and this reference pixel numerical value is identical with the color of pixel number representative to be detected.For example, if the color of pixel number representative to be detected be red, then the color of this reference pixel numerical value representative of selecting from this pixel number array at this moment also must be all redness.Then, respectively this reference pixel numerical value and pixel number to be detected are subtracted each other with subtracter 134, to draw a plurality of differences (step 104) that correspond to each reference pixel numerical value respectively.
Then, use comparator 136 relatively this difference and reference value (step 106).When the absolute value of this difference during, judge that this pixel number to be detected is wrong (step 112) all greater than reference value.At this moment, if want the pixel number to be detected of further mis repair, can be by adder 142 and divider 144, with this pixel number to be detected (step 114) of mean value replacement of this reference pixel numerical value.On the other hand, when one of them is not more than reference value when the absolute value of this difference, judge that this pixel number to be detected is correct (step 122).At this moment, keep pixel number to be detected, and continue to detect next pixel number to be detected (step 124).At this moment, just can use to be judged to be normal pixel number after detected, or even use the vicious detection pixel number of script that was repaired, come other pixel number to be detected that processing subsequent can be processed.And reference value is to be an adjustable parameter, can look the picture quality of requirement or performance of sensing apparatus or the like, is adjusted, even can use different reference values in the different parts of same pixel number array.
Fig. 2 is the schematic diagram of the pixel number array of a preferred embodiment of the present invention, below utilizes Fig. 2 that the testing process of this preferred embodiment is described, further to explain content of the present invention in detail and clearly.
As shown in Figure 2, this pixel number array 200 is the array of 5 * 5 pixel numbers, and the arrangement mode of its pixel number spatially is to be Baeyer color filter array (Bayer Color Filter Array).In pixel number array 200, R represents red pixel number, and G represents green pixel number, and B represents blue pixels numerical value.
At first, the R in the selected pixels array of values 200 5As pixel number to be detected, and select the most close and encirclement R 5Other four R with color 2, R 4, R 6And R 8Be used as reference pixel numerical value.Respectively with reference pixel numerical value R 2, R 4, R 6And R 8With pixel number R to be detected 5Subtract each other to draw a plurality of differences, follow again relatively this difference and reference value.
As mentioned above, when the absolute value of this difference during, judge that this pixel number to be detected is for wrong, shown in inequality (1), (2), (3) and (4) all greater than reference value:
| R 2-R 5|>reference value (1)
| R 4-R 5|>reference value (2)
| R 6-R 5|>reference value (3)
| R 8-R 5|>reference value (4)
That is to say,, judge that this pixel number R5 to be detected is wrong when above-mentioned inequality (1), (2), (3) and (4) when all setting up.At this moment, the mean value R5 ' with reference pixel numerical value R2, R4, R6 and R8 replaces pixel number R5 to be detected originally.Mean value R5 ' is shown in equation (5).
R 5 ′ = R 2 + R 4 + R 6 + R 8 4 . . . ( 5 )
On the other hand, when one of them is not more than reference value when the absolute value of this difference, judge that this pixel number to be detected is correct.At this moment, keep pixel number to be detected, and continue to detect next pixel number to be detected.
This preferred embodiment is to select for use the most close and surround pixel number R to be detected 5Other four R with color 2, R 4, R 6And R 8Be used as reference pixel numerical value.But, other embodiments of the invention also can be to use other four with color but distance R 5R far away 1, R 3, R 7And R 9Be used as reference pixel numerical value; Or or even use the reference pixel numerical value of outermost one circle in the array of 7 * 7 pixel numbers.Emphasis of the present invention is to be to use pixel number R to be detected 5The reference pixel numerical value of same color on every side is those and must not limit the reference pixel numerical value that is used.
Further,, in the scope that the hardware operational capability can be loaded, can select more homochromy polychrome prime number value for use, for example comprehensively use pixel number R if will obtain result of determination and/or better mean value more accurately 1, R 2, R 3, R 4, R 6, R 7, R 8And R 9, come the reference pixel numerical value of the usefulness of conduct judgement together and/or calculating mean value.
In addition, because this device is being judged and all is being to use during calculating mean value near other homochromy polychrome prime number values that are positioned at the pixel number to be detected to be used as reference pixel numerical value, therefore for the pixel number to be detected that is positioned at the sensing apparatus edge, preferred embodiment of the present invention can be at the edge of sensing apparatus puppet (dummy) pixel number of pre-residual row and ordered series of numbers do not do it and do computing, solve the pixel number to be detected that is positioned at the sensing apparatus edge, lack the problem of enough operational reference pixel numerical value at edge side.
In sum, detection of dynamic pixel number device of the present invention, its circuit is simple and computing is easy, can be easily and the shared same set of circuit of the original color interpolative operation of general sensing apparatus device.Particularly, because the position that running of the present invention needn't be write down bad pixel in advance, even if therefore replacing sensing apparatus, sensing apparatus new bad pixel occurs or dust arranged attached on the sensing apparatus, application of the present invention can not be affected.
Though the present invention discloses as above with preferred embodiment; yet it is not in order to limit the present invention; any person skilled in the art person without departing from the spirit and scope of the present invention; when the change that can do various equivalences or replacement, so protection scope of the present invention is when looking accompanying being as the criterion that the application's claim scope defined.

Claims (11)

1. the method for a detection of dynamic pixel number comprises at least:
Receive a pixel number array;
Choose a pixel number to be detected from this pixel number array;
Respectively a plurality of reference pixel numerical value and this pixel number to be detected are subtracted each other to draw a plurality of differences, wherein the pixels sampled of this reference pixel numerical value is the pixels sampled on every side that is positioned at this pixel number to be detected, and this reference pixel numerical value is identical with the color of this pixel number representative to be detected; And
When the absolute value of this difference during, judge that this pixel number to be detected is for wrong all greater than a reference value.
2. the method for claim 1 is characterized in that when this pixel number to be detected is mistake, with this pixel number to be detected of mean value replacement of this reference pixel numerical value.
3. the method for claim 1 when it is characterized in that one of them is not more than this reference value when the absolute value of this difference, keeps this pixel number to be detected.
4. the method for claim 1 is characterized in that it being to allow the distance between the pixels sampled of pixels sampled and this pixel number to be detected of this reference pixel numerical value all equate.
5. the method for claim 1, the pixels sampled that it is characterized in that this reference pixel numerical value is that the pixels sampled on every side that is positioned at this pixel number to be detected further comprises: be positioned at top, below, left and at least four right-hand pixels sampled of this pixel number to be detected, or be positioned at least four pixels sampled of upper right side, lower right, upper left side and the lower left of this pixel number to be detected.
6. the method for claim 1, it is characterized in that can also be at the edge of this pixel number array the dummy pixel numerical value of pre-residual row and ordered series of numbers do not do the processing of pixel number to be detected.
7. the device of a detection of dynamic pixel number comprises at least:
One register stores a pixel number array, and wherein this pixel number array has a pixel number to be detected;
One subtracter, respectively a plurality of reference pixel numerical value and this pixel number to be detected are subtracted each other to draw a plurality of differences, wherein the pixels sampled of this reference pixel numerical value is the pixels sampled a plurality of pixels sampled on every side that are positioned at this pixel number to be detected, and this reference pixel numerical value is identical with the color of this pixel number representative to be detected; And
One comparator, relatively this difference and a reference value when the absolute value of this difference during all greater than this reference value, judge that this pixel number to be detected is for wrong.
8. device as claimed in claim 7, it is characterized in that this device also comprises an adder and a divider, when this pixel number to be detected when being wrong, replace this pixel number to be detected with the mean value of this reference pixel numerical value by this adder and this divider.
9. device as claimed in claim 7, when it is characterized in that one of them is not more than this reference value when the absolute value of this difference, this comparator keeps this pixel number to be detected.
10. device as claimed in claim 7, the pixels sampled that it is characterized in that this reference pixel numerical value all equates with distance between the pixels sampled of this pixel number to be detected.
11. device as claimed in claim 7, the pixels sampled that it is characterized in that this reference pixel numerical value is that the pixels sampled on every side that is positioned at this pixel number to be detected further comprises: be positioned at top, below, left and at least four right-hand pixels sampled of this pixel number to be detected, or be positioned at least four pixels sampled of upper right side, lower right, upper left side and the lower left of this pixel number to be detected.
CNB2004100791184A 2004-09-08 2004-09-08 Method and device for dynamic detection pixel number Active CN1301621C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2004100791184A CN1301621C (en) 2004-09-08 2004-09-08 Method and device for dynamic detection pixel number

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2004100791184A CN1301621C (en) 2004-09-08 2004-09-08 Method and device for dynamic detection pixel number

Publications (2)

Publication Number Publication Date
CN1589033A CN1589033A (en) 2005-03-02
CN1301621C true CN1301621C (en) 2007-02-21

Family

ID=34605016

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2004100791184A Active CN1301621C (en) 2004-09-08 2004-09-08 Method and device for dynamic detection pixel number

Country Status (1)

Country Link
CN (1) CN1301621C (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0309465A1 (en) * 1986-06-11 1989-04-05 Eastman Kodak Co Image processing method for the removal of spot defects and apparatus therefor.
US5936681A (en) * 1996-03-06 1999-08-10 Matsushita Electric Industrial Co., Ltd. Video display monitor employing image interpolation
EP1003332A2 (en) * 1998-11-17 2000-05-24 Vision Group PLC Defect correction in electronic imaging system
CN1327688A (en) * 1999-10-19 2001-12-19 松下电器产业株式会社 Color image pickup apparatus
EP1389771A2 (en) * 2002-08-16 2004-02-18 Agilent Technologies, Inc. Digital image system and method for combining demosaicing and bad pixel correction

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0309465A1 (en) * 1986-06-11 1989-04-05 Eastman Kodak Co Image processing method for the removal of spot defects and apparatus therefor.
US5936681A (en) * 1996-03-06 1999-08-10 Matsushita Electric Industrial Co., Ltd. Video display monitor employing image interpolation
EP1003332A2 (en) * 1998-11-17 2000-05-24 Vision Group PLC Defect correction in electronic imaging system
CN1327688A (en) * 1999-10-19 2001-12-19 松下电器产业株式会社 Color image pickup apparatus
EP1389771A2 (en) * 2002-08-16 2004-02-18 Agilent Technologies, Inc. Digital image system and method for combining demosaicing and bad pixel correction

Also Published As

Publication number Publication date
CN1589033A (en) 2005-03-02

Similar Documents

Publication Publication Date Title
EP1157544B1 (en) Hi-speed deterministic approach in detecting defective pixels within an image sensor
CN100474935C (en) Pixel defect detecting/correcting device and pixel defect detecting/correcting method
CN101304484B (en) Image forming apparatus, flaw pixel correction apparatus, processing method of the device
US7590301B2 (en) Method and system for correcting defective pixels of a color image
KR100399884B1 (en) Apparatus and method for defective pixel concealment of image sensor
CN102625133B (en) Detection method of image sensing of bad pixel
CN103379343A (en) Image processing device, image processing method, and program
JPH11122626A (en) Image processing method, system and record medium recording image processing program
WO2016031597A1 (en) Image processing device, image processing method, and image processing system
WO2004004319A1 (en) Device and method of detection of erroneous image sample data of defective image samples
US20130229550A1 (en) Defective pixel correction apparatus, method for controlling the apparatus, and program for causing computer to perform the method
US20120182452A1 (en) Image processing device, image processing method, and program
CN108418997B (en) Method for removing image moire
CN103733608A (en) Image processing apparatus and control method therefor
US7471842B2 (en) Method and apparatus for dynamically detecting pixel values
Cho et al. Real-time photo sensor dead pixel detection for embedded devices
CN1897643A (en) Method and system for correcting color-image bad point
JP3227815B2 (en) Solid-state imaging device
CN1301621C (en) Method and device for dynamic detection pixel number
JPH06284346A (en) Automatic defect detector for solid-state image pickup device
KR102015587B1 (en) Device and Method for detecting defect pixel and computer-implemented program thereof
US20100079629A1 (en) Apparatus and method for correcting defective pixel
KR100645856B1 (en) Signal processing method and image acquisition device
JP2882227B2 (en) Pixel defect correction device
JP2011114473A (en) Pixel defect correction device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant