CN115379199A - Bad point detection method for image sensor - Google Patents

Bad point detection method for image sensor Download PDF

Info

Publication number
CN115379199A
CN115379199A CN202210820290.9A CN202210820290A CN115379199A CN 115379199 A CN115379199 A CN 115379199A CN 202210820290 A CN202210820290 A CN 202210820290A CN 115379199 A CN115379199 A CN 115379199A
Authority
CN
China
Prior art keywords
image
value
pixel
dead pixel
blockmean
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.)
Pending
Application number
CN202210820290.9A
Other languages
Chinese (zh)
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.)
Nanjing Weipaishi Semiconductor Technology Co ltd
Original Assignee
Nanjing Weipaishi Semiconductor Technology Co ltd
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 Nanjing Weipaishi Semiconductor Technology Co ltd filed Critical Nanjing Weipaishi Semiconductor Technology Co ltd
Priority to CN202210820290.9A priority Critical patent/CN115379199A/en
Publication of CN115379199A publication Critical patent/CN115379199A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/002Diagnosis, testing or measuring for television systems or their details for television cameras

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Image Analysis (AREA)

Abstract

The invention relates to a method for detecting a dead pixel of an image sensor, belonging to the technical field of image processing. The detection method comprises the following steps: 1. partitioning the image; 2. calculating the average value blockMean of each divided image block, performing expansion calculation on the blockMean, comparing a first judgment value and a second judgment value obtained by calculation with a threshold value, and judging a dead pixel; 3. and traversing all the images and detecting all the dead pixels. The method realizes the accurate detection of the dead pixel by performing the block mean expansion calculation on the average value of the image block and comparing the calculated average value with a set threshold value; the invention does not need to record and store the position information of the dead pixel in advance, does not need a storage space to store the position information, and can detect the dead pixel occurring in the using process of the product.

Description

Bad point detection method for image sensor
Technical Field
The invention relates to a method for detecting a dead pixel of an image sensor, belonging to the technical field of image processing.
Background
The imaging process of the camera is the process of digitizing the optical signal. Light firstly passes through a lens to reach a photosensitive element, namely an image sensor (CCD, CMOS and the like), light signals are converted into digital signals, and the digital signals are transmitted to equipment such as a camera after being subjected to subsequent signal processing by a special digital signal processing chip. Generally, an image sensor includes a plurality of photosensitive elements, each of which corresponds to a pixel in an image output from the image sensor.
Due to the manufacturing process, the transportation or the storage mode, some photosensitive units of the image sensor are damaged and cannot normally sense light, and pixel points corresponding to the photosensitive units which cannot normally sense light in the image are called dead pixels.
The dead pixel mainly comprises the following three types: 1. dark-spot dead pixels, which are mainly formed as a result of the photosensitive cells being completely damaged, are represented as a dark spot in the image; 2. the bright spot dead pixel is mainly formed by direct short circuit of a photosensitive diode and a power supply in the photosensitive unit, so that the voltage of the photosensitive unit is always at a high level and is represented as a bright spot in an image; 3. the response of the photosensitive unit to the light intensity is different from the normal response of the peripheral photosensitive units due to the manufacturing deviation, the unstable dead pixel is represented in the image that the pixel value of the photosensitive unit is higher or lower than the pixel value of the peripheral pixel point, and the influence of the dead pixel on the image changes along with the change of the external environment. Accordingly, it is known that the dead pixel has a certain influence on the image quality of the image, and therefore, the dead pixel must be handled.
Disclosure of Invention
In order to solve the above technical problems, the present invention provides a method for detecting a dead pixel of an image sensor, which has the following specific technical scheme:
an image sensor dead pixel detection method comprises the following steps:
step 1: and (3) calculating an average value: dividing the selected image into a plurality of image blocks, and calculating the average value blockMean of each image block;
step 2: and (3) dead pixel detection: setting threshold values a, b and c, wherein the value range of the threshold value a is 280-320, the value range of the threshold value b is 0.6-0.8, the value range of the threshold value c is 2-3, and when the blockMean is greater than a, calculating any pixel in the image block as shown in formula (1)
T0 = abs(1 – pdata/blockMean) (1)
When the blockMean is less than or equal to a, calculating any pixel in the image block as shown in formula (2)
T1 = pdata/blockMean (2)
Wherein T0 is a first judgment value, T1 is a second judgment value, pdata is the value of any pixel in the image block; when T0 is more than or equal to b or T1 is more than or equal to c, the pixel point is a dead pixel;
and step 3: image traversal: and completely traversing all image blocks of the image division to find out all dead pixel. The mean value of the image block is blockMean, when the width and the height of the image block are 20x20, 400 pixel values exist in the image block, the 400 pixel values are added, and then the sum is divided by 400, so that the mean value blockMean of the image block is obtained.
Further, the selected image is divided into a plurality of 20 × 20 image blocks in step 1.
Further, in the step 2, the value of the threshold a is 300, the value of the threshold b is 0.7, and the value of the threshold c is 2.5.pdata is divided by the mean of the image block in which it is located, and the result is compared with a threshold to determine whether it is a dead pixel.
The invention has the beneficial effects that:
the method realizes the precise detection of the dead pixel by the expansion calculation of the block mean value of the image block and the comparison with the set threshold value; the invention does not need to record and store the position information of the dead pixel in advance, does not need a storage space to store the position information, and can detect the dead pixel in the using process of the product.
Drawings
Figure 1 is a schematic flow diagram of the present invention,
figure 2 is a schematic diagram I of the invention of a pre-detection dead pixel,
figure 3 is a graph of dead pixel labeling after the detection of figure 2,
figure 4 is a schematic diagram II of the invention of a pre-detection dead pixel,
fig. 5 is a graph of dead pixel labeling after the detection of fig. 4.
Detailed Description
The present invention will now be described in further detail with reference to the accompanying drawings. These drawings are simplified schematic diagrams each illustrating the basic structure of the present invention only in a schematic manner, and thus show only the constitution related to the present invention.
At present, the dead pixel is generally detected in advance and stored, the dead pixel is searched in the collected image according to the position information of the dead pixel, and the interpolation processing is carried out on the dead pixel by using a preset interpolation algorithm. As shown in fig. 1, a method for detecting bad pixels of an image sensor according to the present invention is disclosed. Firstly, averagely dividing a selected image into a plurality of 20x20 image blocks, and calculating the average value blockMean of each image block. Wherein, the width and height of the image block are 20 × 20, there are 400 pixel values in the image block, and the 400 pixel values are added and then divided by 400 to obtain the mean blockMean of the image block. Then, the thresholds a, b, and c are set according to experience and requirements. Wherein the value of the threshold value a is 300, the value of the threshold value b is 0.7, and the value of the threshold value c is 2.5. When the blockMean is more than a, calculating any pixel in the image block as shown in formula (1)
T0 = abs(1 – pdata/blockMean) (1)
When the blockMean is less than or equal to a, calculating any pixel in the image block as shown in formula (2)
T1 = pdata/blockMean (2)
Wherein T0 is a first judgment value, T1 is a second judgment value, pdata is the value of any pixel in the image block; when T0 ≧ b or T1 ≧ c, this pixel is identified as a dead pixel, as shown in FIGS. 2-5. Wherein pdata is divided by the mean value of the image block in which pdata is located, and the obtained result is compared with a threshold value to determine whether the pixel is a dead pixel. And finally, traversing all image blocks of the image, and detecting all dead pixels of the image so as to correct the subsequent dead pixels.
In light of the foregoing description of the preferred embodiment of the present invention, many modifications and variations will be apparent to those skilled in the art without departing from the spirit and scope of the invention. The technical scope of the present invention is not limited to the content of the specification, and must be determined according to the scope of the claims.

Claims (3)

1. An image sensor dead pixel detection method is characterized by comprising the following steps:
step 1: and (3) calculating an average value: dividing the selected image into a plurality of image blocks, and calculating the average value blockMean of each image block;
step 2: and (3) dead pixel detection: setting threshold values a, b and c, wherein the value range of the threshold value a is 280-320, the value range of the threshold value b is 0.6-0.8, the value range of the threshold value c is 2-3, and when the blockMean is greater than a, calculating any pixel in the image block as shown in formula (1)
T0 = abs(1 – pdata/blockMean) (1)
When the blockMean is less than or equal to a, calculating any pixel in the image block as shown in formula (2)
T1 = pdata/blockMean (2)
Wherein T0 is a first judgment value, T1 is a second judgment value, pdata is the value of any pixel in the image block; when T0 is more than or equal to b or T1 is more than or equal to c, the pixel point is a dead pixel;
and 3, step 3: image traversal: and completely traversing all image blocks of the image division to find out all dead pixel.
2. The method of claim 1, wherein: the selected image is divided into a plurality of 20x20 image blocks in step 1.
3. The method of claim 1, wherein the step of detecting the bad pixel comprises: in the step 2, the value of the threshold a is 300, the value of the threshold b is 0.7, and the value of the threshold c is 2.5.
CN202210820290.9A 2022-07-13 2022-07-13 Bad point detection method for image sensor Pending CN115379199A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210820290.9A CN115379199A (en) 2022-07-13 2022-07-13 Bad point detection method for image sensor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210820290.9A CN115379199A (en) 2022-07-13 2022-07-13 Bad point detection method for image sensor

Publications (1)

Publication Number Publication Date
CN115379199A true CN115379199A (en) 2022-11-22

Family

ID=84061718

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210820290.9A Pending CN115379199A (en) 2022-07-13 2022-07-13 Bad point detection method for image sensor

Country Status (1)

Country Link
CN (1) CN115379199A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1595957A (en) * 2004-06-22 2005-03-16 东软飞利浦医疗设备系统有限责任公司 Method for determining automatic detection threshold of bad pixel of medical image
US20120086829A1 (en) * 2010-10-07 2012-04-12 Hohjoh Daisuke Image processing unit, image processing method, and image processing program
CN105163114A (en) * 2015-08-21 2015-12-16 深圳创维-Rgb电子有限公司 Method and system for detecting screen dead pixel based on camera
JP2019219273A (en) * 2018-06-20 2019-12-26 株式会社日本マイクロニクス Image generation device and image generation method
CN110830795A (en) * 2020-01-09 2020-02-21 武汉精立电子技术有限公司 Image sensor dead pixel detection method and device and electronic equipment
CN113497934A (en) * 2021-05-17 2021-10-12 南京威派视半导体技术有限公司 Dead pixel detection and correction method for image sensor
CN113873229A (en) * 2021-09-26 2021-12-31 江西盛泰精密光学有限公司 Image dead pixel detection method, system and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1595957A (en) * 2004-06-22 2005-03-16 东软飞利浦医疗设备系统有限责任公司 Method for determining automatic detection threshold of bad pixel of medical image
US20120086829A1 (en) * 2010-10-07 2012-04-12 Hohjoh Daisuke Image processing unit, image processing method, and image processing program
CN105163114A (en) * 2015-08-21 2015-12-16 深圳创维-Rgb电子有限公司 Method and system for detecting screen dead pixel based on camera
JP2019219273A (en) * 2018-06-20 2019-12-26 株式会社日本マイクロニクス Image generation device and image generation method
CN110830795A (en) * 2020-01-09 2020-02-21 武汉精立电子技术有限公司 Image sensor dead pixel detection method and device and electronic equipment
CN113497934A (en) * 2021-05-17 2021-10-12 南京威派视半导体技术有限公司 Dead pixel detection and correction method for image sensor
CN113873229A (en) * 2021-09-26 2021-12-31 江西盛泰精密光学有限公司 Image dead pixel detection method, system and device

Similar Documents

Publication Publication Date Title
US7283164B2 (en) Method for detecting and correcting defective pixels in a digital image sensor
US6737625B2 (en) Bad pixel detection and correction in an image sensing device
US8860851B2 (en) Method and apparatus for processing bad pixels
US7800661B2 (en) Programmable pattern matching device
US9124832B2 (en) Dynamic, local edge preserving defect pixel correction for image sensors
US20050243181A1 (en) Device and method of detection of erroneous image sample data of defective image samples
CN101459765B (en) Method and circuit for correcting dead pixel in video signal
US10109045B2 (en) Defect inspection apparatus for inspecting sheet-like inspection object, computer-implemented method for inspecting sheet-like inspection object, and defect inspection system for inspecting sheet-like inspection object
CN110740314B (en) Method and system for correcting defective pixel of color line array camera
CN110084795B (en) Background-based infrared image blind pixel detection method and system
CN115379199A (en) Bad point detection method for image sensor
CN113497934A (en) Dead pixel detection and correction method for image sensor
CN115082504B (en) Light spot identification method for solar photovoltaic panel
JP2001086333A (en) Image reader and image processor provided with the image reader
US7154589B2 (en) Rangefinder apparatus
CN111161211B (en) Image detection method and device
JP2000101924A (en) Defect detection correction device in image input device
JP2021052238A (en) Deposit detection device and deposit detection method
KR100860307B1 (en) Correction Device of Bad Pixel and Method thereof
US20210097693A1 (en) Image processing circuit and method
CN115623188A (en) Bad column detection method for image sensor
US11055548B1 (en) Motion sensor using temporal difference pixels and lift-up detection thereof
JP5694907B2 (en) Imaging device
CN115131581A (en) Method and system for generating confrontation sample image based on color space component
CN117557544A (en) Diaphragm defect detection method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination