WO2020181522A1 - Defective pixel detection method, image processing chip, and electronic device - Google Patents

Defective pixel detection method, image processing chip, and electronic device Download PDF

Info

Publication number
WO2020181522A1
WO2020181522A1 PCT/CN2019/077989 CN2019077989W WO2020181522A1 WO 2020181522 A1 WO2020181522 A1 WO 2020181522A1 CN 2019077989 W CN2019077989 W CN 2019077989W WO 2020181522 A1 WO2020181522 A1 WO 2020181522A1
Authority
WO
WIPO (PCT)
Prior art keywords
pixel
difference value
target
neighborhood
pixels
Prior art date
Application number
PCT/CN2019/077989
Other languages
French (fr)
Chinese (zh)
Inventor
汪超
Original Assignee
深圳市汇顶科技股份有限公司
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 深圳市汇顶科技股份有限公司 filed Critical 深圳市汇顶科技股份有限公司
Priority to PCT/CN2019/077989 priority Critical patent/WO2020181522A1/en
Priority to CN201980000335.4A priority patent/CN112020729A/en
Publication of WO2020181522A1 publication Critical patent/WO2020181522A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N25/00Circuitry of solid-state image sensors [SSIS]; Control thereof
    • H04N25/60Noise processing, e.g. detecting, correcting, reducing or removing noise
    • H04N25/68Noise processing, e.g. detecting, correcting, reducing or removing noise applied to defects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/13Edge detection

Definitions

  • the embodiments of the present application relate to the field of image processing technology, and in particular, to a method for detecting image dead pixels, an image processing chip, and an electronic device.
  • the array formed by the light collection points (pixels) on the image sensor has process defects, or errors occur in the process of converting light signals into electrical signals, which will cause pixel information on the image to be incorrect, resulting in incorrect pixel values in the image. Accurately, these defective pixels are image dead pixels.
  • the number of dead pixels will be many.
  • the sensor will have more and more dead pixels in a long-term, high-temperature environment, thereby destroying the clarity and integrity of the image.
  • one of the technical problems solved by the embodiments of the present invention is to provide a method for detecting dead pixels, an image processing chip, and an electronic device to overcome the above-mentioned defects in the prior art.
  • the embodiment of the application provides a method for detecting dead pixels in an image, which includes:
  • the target pixel is a bad image.
  • the method further includes: determining whether the target pixel is located at the edge of the pixel array, so as to determine at least two pixels in the neighborhood of the target pixel according to the result of the determination.
  • the neighborhood is at least one of a right neighborhood, an upper neighborhood, and a lower neighborhood; If the target pixel is located at the right edge of the pixel array, the neighborhood is at least one of a left neighborhood, an upper neighborhood, and a lower neighborhood; if the target pixel is located at the upper edge of the pixel array, then The neighborhood is at least one of a lower neighborhood, a left neighborhood, and a right neighborhood; if the target pixel is located at the lower edge of the pixel array, the neighborhood is an upper area, a left neighborhood, and a right neighborhood. At least one of the domains.
  • the pixel difference value of every two pixels having an adjacent position relationship among the target pixel, the first pixel, and the second pixel is calculated , Respectively obtaining the first pixel difference value and the second pixel difference value, including: calculating the pixel difference value between the target pixel point and the first pixel point to obtain the first pixel difference value; calculating the first pixel point and the first pixel point The pixel difference value of the two pixels obtains the second pixel difference value.
  • the pixel difference value of every two pixels having an adjacent position relationship among the target pixel, the first pixel, and the second pixel is calculated , Respectively obtaining the first pixel difference value and the second pixel difference value, including: calculating the pixel difference value between the target pixel and the first pixel to obtain the first pixel difference; calculating the second pixel and the target The pixel difference value of the pixel point obtains the second pixel difference value.
  • determining the first pixel and the second pixel in the neighborhood of the target pixel includes: determining the first pixel and the second pixel in several neighborhoods of the target pixel Two pixels, for each neighborhood, calculate the pixel difference of every two pixels that have an adjacent position relationship among the target pixel, the first pixel, and the second pixel to obtain respectively The first pixel difference and the second pixel difference;
  • judging whether the target pixel is a bad image according to the first pixel difference value and the second pixel difference value includes: according to the first pixel difference value and the second pixel difference value corresponding to at least one of the neighborhoods.
  • the pixel difference value is used to preliminarily determine whether the target pixel is a suspicious bad image; according to the first pixel difference value and the second pixel difference value corresponding to at least one of the remaining neighborhoods, the suspicious image is judged again as bad Whether the dots are actually dead pixels of the image.
  • determining the first pixel and the second pixel in the neighborhood of the target pixel includes: determining the first pixel and the second pixel in several neighborhoods of the target pixel Two pixels, for each neighborhood, calculate the pixel difference of every two pixels that have an adjacent position relationship among the target pixel, the first pixel, and the second pixel to obtain respectively The first pixel difference and the second pixel difference;
  • judging whether the target pixel is a bad image according to the first pixel difference value and the second pixel difference value includes: according to the first pixel difference value and the second pixel difference value corresponding to at least one of the neighborhoods. Pixel difference value, to determine whether the target pixel is a suspicious bad image; according to the first pixel difference value and the second pixel difference value corresponding to at least one of the remaining neighborhoods, determine whether the target pixel point is Suspicious dead pixels in the image; if the number of times the target pixel is determined to be a suspicious dead pixel in the image is greater than or equal to two times, it is determined that the target pixel is a substantial dead pixel in the image.
  • judging whether the target pixel is a bad image based on the first pixel difference value and the second pixel difference value includes: determining the first pixel difference The pixel difference value and the pixel change rate between the second pixel difference value; according to the pixel change rate and the pixel change rate threshold, it is determined whether the target pixel is an image dead pixel.
  • An embodiment of the present application also provides an image processing chip, which includes a controller, and the controller is used to determine at least two pixels in the neighborhood of the target pixel as the first pixel and the second pixel, respectively. At least one of the first pixel point and the second pixel point is related to the target pixel point, and every two pixels of the target pixel point, the first pixel point, and the second pixel point that have an adjacent position relationship The pixel difference values of the dots are obtained respectively to obtain a first pixel difference value and a second pixel difference value; and according to the first pixel difference value and the second pixel difference value, it is determined whether the target pixel is an image bad pixel.
  • the application also provides an electronic device, which includes the image processing chip in the embodiment of the application.
  • At least two pixels in the neighborhood of the target pixel are determined as the first pixel and the second pixel; the target pixel, the first pixel, and the The pixel difference values of every two pixels in the second pixel point that have an adjacent position relationship are obtained as a first pixel difference value and a second pixel difference value, at least one of the first pixel point and the second pixel point Adjacent to the target pixel; determining whether the target pixel is a bad image based on the first pixel difference value and the second pixel difference value.
  • the detection method of image dead pixels effectively realizes the detection of image dead pixels, provides effective basic data for the correction of dead pixels, and can be realized based on simple hardware logic, and has the characteristics of rapid detection and high efficiency.
  • FIG. 1 is a schematic flowchart of a method for detecting dead pixels in an image in Embodiment 1 of this application;
  • FIG. 2 is a schematic flowchart of a method for detecting dead pixels in an image in Embodiment 2 of this application;
  • FIG. 3 is a schematic flowchart of a method for detecting dead pixels in an image in Embodiment 3 of the application;
  • FIG. 4 is a schematic diagram of the structure of the image processing chip in the fourth embodiment of the application.
  • At least two pixels in the neighborhood of the target pixel are determined as the first pixel and the second pixel, and at least one of the first pixel and the second pixel is 1.
  • the detection method of image dead pixels effectively realizes the detection of image dead pixels, provides effective basic data for the correction of dead pixels, and can be realized based on simple hardware logic, and has the characteristics of rapid detection and high efficiency.
  • Figure 1 is a schematic flow chart of the method for detecting dead pixels in an image in the first embodiment of this application; as shown in Figure 1, in this embodiment, it is described as an example to separately detect whether a certain pixel on the pixel array of the image is a dead pixel.
  • the corresponding method for detecting dead pixels on the image includes:
  • S101 Determine at least two pixel points in the neighborhood of the target pixel point as a first pixel point and a second pixel point respectively, and at least one of the first pixel point and the second pixel point is similar to the target pixel point adjacent;
  • the bad pixel detection of the image is performed based on the pixel difference between the target pixel and the pixel in its neighborhood. If the location of the target pixel is different, the selection of its neighborhood may be different, especially for the pixel array. For pixels located at the edge, which can also be called edge pixels here, the direction of the neighborhood is relatively small compared to non-edge pixels in other locations. It is necessary to ensure that the target pixel has an optional neighborhood, and that there are optional pixels in the neighborhood.
  • step S101 may include determining whether the target pixel is located at the edge of the pixel array, so as to determine at least two pixels in the neighborhood of the target pixel according to the result of the determination. For example, by scanning the pixels to determine at least two pixels in the neighborhood of the target pixel.
  • the edges of the pixel array may specifically include a left edge, a right edge, an upper edge, and a lower edge.
  • the pixels located on these edges may be called edge pixels, such as left edge pixels and right edges.
  • Pixels, upper edge pixels, and lower edge pixels therefore, if the target pixel is located at the left edge of the pixel array, the neighborhood is at least one of the right neighborhood, the upper neighborhood, and the lower neighborhood ; If the target pixel is located at the right edge of the pixel array, the neighborhood is at least one of the left neighborhood, upper neighborhood, and lower neighborhood; if the target pixel is located at the upper edge of the pixel array, The neighborhood is at least one of the lower neighborhood, the left neighborhood, and the right neighborhood; if the target pixel is located at the lower edge of the pixel array, the neighborhood is the upper area, the left neighborhood, and the right neighborhood. At least one of the neighborhoods.
  • the target pixel is an edge pixel, as mentioned above, its neighborhood may only exist in a certain direction.
  • its neighborhood is the right neighborhood, including the horizontal direction and the horizontal direction.
  • the right neighborhood defined by the diagonal direction with an acute angle.
  • the corresponding neighborhoods are the left neighborhood, the lower neighborhood, and the upper neighborhood, respectively.
  • the target pixel is The pixel difference with the first pixel is the first pixel difference; the pixel difference between the second pixel and the target pixel is calculated as the second pixel difference.
  • the target pixel is the left edge pixel, since its neighborhood is the right neighborhood, two consecutive pixels are selected from the same row of pixels on the right as the first pixel and the second pixel.
  • the first pixel point is adjacent to the target pixel point.
  • the target pixel is the left edge pixel, since its neighbor is the right neighbor, a pixel from the same row of pixels on the right is selected as the first pixel, and the pixel is One pixel is selected from the pixels in the same column as the second pixel.
  • the so-called edge pixels are preferably other edge pixels except for the pixels at the edge of the pixel array, such as sub-edge pixels or also called Sub-edge pixels, however, if the edge pixels are more effective, of course, the edge pixels can also include these edge pixels.
  • the target pixel is not located at the left edge of the pixel array, there are at least four choices for the neighborhood of non-edge pixels: right area, left neighborhood, lower neighborhood, and upper neighborhood , It can be flexibly selected according to the application scenario; the comparison shows that the neighborhood of non-edge pixels has a larger choice than the neighborhood of edge pixels.
  • one of the pixels in the right neighborhood and the left neighborhood can be selected as the first pixel and the second pixel, for example, a non-edge target pixel in the left neighborhood and the same as the target pixel.
  • the adjacent pixel point is regarded as the first pixel point
  • the pixel point located in the right neighborhood of the non-edge target pixel point and adjacent to the target pixel point is regarded as the second pixel point
  • the first pixel point, the target pixel point, the second pixel point The pixels are in the same row.
  • a pixel located in the upper neighborhood of the non-edge target pixel and adjacent to the target pixel is used as the first pixel, and located in the lower neighborhood of the non-edge target pixel and connected to the
  • the pixel point adjacent to the target pixel point is used as the second pixel point
  • the first pixel point, the target pixel point, and the second pixel point are located in the same column.
  • a pixel located in the right neighborhood of a non-edge target pixel and in the same row as the target pixel and adjacent to each other is used as the first pixel, located in the right area of the target pixel and A pixel adjacent to the first pixel and in the same column is used as the second pixel, the first pixel and the target pixel are located in the same row, and the first pixel and the second pixel are located in the same column.
  • the first pixel difference value and the second pixel difference value are obtained by calculating the pixel difference value in step S102, it may specifically include calculating the pixel difference value between the target pixel and the first pixel to obtain the first pixel difference.
  • a pixel difference value; the pixel difference value between the second pixel point and the target pixel point is calculated to obtain the second pixel difference value.
  • the target pixel is a left edge pixel
  • the pixel in its right neighborhood is two consecutive pixels in the same row as the left edge pixel
  • one of the pixels is adjacent to the left edge pixel, that is,
  • the pixel with the left edge pixel is regarded as the first pixel
  • the pixel adjacent to the first pixel is regarded as the second pixel.
  • step S102 the pixels between the target pixel and the first pixel are calculated
  • the difference is the first pixel difference
  • the pixel difference between the first pixel and the second pixel is the second pixel difference.
  • the calculation method of the corresponding first pixel difference and second pixel difference is similar to the case where the target pixel is the left edge pixel, and details are not repeated here.
  • the specific calculateate the pixel difference of every two pixels that have an adjacent position relationship among the target pixel, the first pixel, and the second pixel to obtain the first pixel difference and the second pixel difference respectively .
  • the direction of calculating the difference must be the same, that is, the previous pixel value is used to subtract the next pixel value; or, after uniform use Just subtract the previous pixel value from one pixel value.
  • step S102 when determining the first pixel and the second pixel in the target pixel and its neighborhood in step S102, specifically determine the first pixel in several neighborhoods of the target pixel Point and second pixel point, to calculate the pixel difference value of every two pixels in the adjacent position relationship among the target pixel point, the first pixel point, and the second pixel point for each neighborhood , Respectively obtain the first pixel difference value and the second pixel difference value.
  • the above target pixel is an edge pixel
  • For each neighborhood calculate the above pixel difference once to obtain the corresponding first pixel.
  • Pixel difference value and second pixel difference value two neighborhoods total two first pixel difference values and two second pixel difference values.
  • the target pixel is a non-edge pixel, it is similar to the case of the edge pixel here.
  • S103 Determine whether the target pixel is a bad image according to the first pixel difference value and the second pixel difference value.
  • the pixel change rate between the first pixel difference value and the second pixel difference value is determined in step S103; the pixel change rate and the pixel change rate threshold are used to determine the Whether the target pixel is a bad image.
  • the size of the pixel change rate threshold is flexibly configured according to the requirements of the application scenario.
  • the pixel change rate threshold can also be called the detection intensity.
  • the target pixel is a suspicious bad pixel of the image, when it is preliminarily judged to be a suspicious bad pixel of the image, such as the difference between the first pixel difference and the second pixel difference, that is, the pixel change rate is greater than the set first pixel change
  • the target pixel is judged to be a suspected bad pixel in the image when the rate threshold is used.
  • the first pixel change rate threshold may be the same as or different from the second pixel difference threshold.
  • a preliminary judgment is made based on the first pixel difference and the second pixel difference corresponding to at least one of the neighborhoods Whether the target pixel is a suspicious bad image; according to the first pixel difference and the second pixel difference corresponding to at least one of the remaining neighborhoods, it is judged again whether the suspicious image bad pixel is a substantial image bad point. For example, in the initial judgment, for the first pixel and the second pixel in at least one neighborhood, the pixel change rate between the first pixel difference and the second pixel difference is greater than the set first pixel. In the case of the pixel change rate threshold, it is preliminarily determined that the target pixel is a suspicious bad pixel of the image.
  • the pixel change rate between the first pixel difference value and the second pixel difference value is greater than the set threshold value of the first pixel change rate, it is possible to finally determine the actual bad pixels of the image.
  • the detection of dead pixels on an image sensed by the image sensor is taken as an example to describe, that is, to determine the actual dead pixels on a complete image. For this reason, in the following embodiments, the detection is performed sequentially according to the row direction of the pixel array as a whole, and each row of pixels is detected, the next row of pixels is entered to continue the detection of dead pixels. That is, when there are multiple target pixels, how to detect dead pixels.
  • Figure 2 is a schematic flow chart of the method for detecting dead pixels in an image in the second embodiment of the application; as shown in Figure 2, it includes:
  • S201 Determine the first pixel point and the second pixel point in the respective neighborhood of the current target pixel point
  • step S201 can refer to the record of the embodiment in FIG. 1, that is, it is determined whether the target pixel is an edge pixel or a non-edge pixel. If it is an edge pixel, determine the first pixel and the second pixel in the corresponding neighborhood. If it is a non-edge pixel, the first pixel and the second pixel in the corresponding neighborhood are also determined. In order to improve the detection accuracy, the first pixel and the second pixel can also be determined in multiple neighborhoods.
  • the value group includes a first pixel difference value and a second pixel difference value
  • the difference between the pixel values of adjacent pixels is calculated based on the pixel values of a total of three pixels including the target pixel, the first pixel, and the second pixel to obtain two pixel differences.
  • the two pixel differences can form a pixel difference group.
  • step S201 if the number of neighborhoods in step S201 is one, and for a scene with higher accuracy, the first pixel difference and the second pixel difference in a pixel difference group are used to determine
  • the dead pixels of is actually considered to be suspicious dead pixels of the image, and may not be real dead pixels. Therefore, here, the processing of re-determination of dead pixels is added.
  • the first pixel and the second pixel in at least two neighborhoods are determined for the current target pixel, then at least one of the neighborhoods can correspond to
  • the first pixel difference value and the second pixel difference value are used to preliminarily determine whether the target pixel is a suspicious bad image; according to the first pixel difference value and the second pixel difference value corresponding to at least one of the remaining neighborhoods , Judge again whether the suspicious image defect is a substantial image defect. For example, whether the pixel change rates corresponding to at least two areas are both greater than the first pixel change rate threshold and the second pixel change rate threshold respectively set. If both are greater than, the target pixel is the substantial dead pixel of the image; otherwise, the target Pixels are only suspected dead pixels in the image.
  • the values of the first pixel change rate threshold and the second pixel change rate threshold may be the same, or it is also called that only one pixel change rate threshold is set, which is used for preliminary judgment and second judgment at the same time.
  • the target pixel has at least two neighborhoods, if there are at least two neighborhoods where the pixel change rate is greater than the corresponding pixel change rate threshold, that is, the pixel change rate is greater than the corresponding pixel If the number of times of the change rate threshold is greater than or equal to twice, it is directly determined that the target pixel is a substantial dead pixel of the image.
  • the target pixel is judged according to the first pixel difference value and the second pixel difference value corresponding to at least one of the neighborhoods, whether the target pixel is a suspicious bad image; according to the first pixel corresponding to at least one of the remaining neighborhoods
  • the pixel difference value and the second pixel difference value are used to determine whether the target pixel is a suspicious bad image; if the target pixel is determined to be a suspicious bad image more than twice, then the target pixel is determined It is the real dead pixels of the image.
  • the next target pixel is the first pixel in the next row. If the current target pixel is the non-last pixel in the row, the next target pixel is located in the same row as the current target pixel, which means that the image failure of each row of pixels in the row direction is achieved. Point detection, that is, switch to the next line to continue the detection of dead pixels in the image.
  • Fig. 3 is a schematic flow chart of the method for detecting dead pixels in an image in the third embodiment of the application; as shown in Fig. 3, it includes:
  • S301 Determine first pixel points and second pixel points in respective neighborhoods of a plurality of target pixels
  • step S301 can also be understood as batch processing of multiple target pixels to determine the first pixel and the second pixel in the respective neighborhoods of all the target pixels.
  • the pixel difference group includes a first pixel difference value and a second pixel difference value, so as to obtain multiple target pixel points corresponding to multiple pixel difference value groups;
  • step S302 is similar to the batch design of step S301 above, that is, the execution result of step S302 is that all target pixels correspond to multiple pixel difference groups. At this time, it jumps to step S303 for execution. After completing step S302 for one target pixel, immediately jump to step S303.
  • step S03 is similar to the batch design of steps S301 and S302, that is, the execution result of step S303 is to obtain whether all target pixels are suspected bad pixels, which can also be called obtaining all suspected bad images. Point, and then further filter out the real bad pixels of the image from all the suspicious bad pixels of the image.
  • the embodiments of the present application provide an image processing chip, which may include: a controller, and the controller is used to determine at least two pixel points in the neighborhood of the target pixel point as The first pixel point and the second pixel point, at least one of the first pixel point and the second pixel point and the target pixel point, and the calculation target pixel point, the first pixel point, and the second pixel
  • the pixel difference values of every two pixels in the point that have an adjacent position relationship are respectively obtained as a first pixel difference value and a second pixel difference value; and according to the first pixel difference value and the second pixel difference value, It is determined whether the target pixel is a bad image.
  • FIG. 4 it is a schematic diagram of the structure of the image processing chip in the fourth embodiment of the application; as shown in FIG. 4, in addition to the controller, it also includes a memory, a scanning unit, and an output unit.
  • the scanning unit is used to determine the target pixel and the first pixel and the second pixel in its neighborhood
  • the output unit is used to output the detection result, such as image defect Quantity, location, and the number and location of non-image dead pixels, etc.
  • This embodiment also provides an electronic device, which includes the image processing chip in the foregoing embodiment.
  • the electronic devices in the embodiments of this application exist in various forms, including but not limited to:
  • Mobile communication equipment This type of equipment is characterized by mobile communication functions, and its main goal is to provide voice and data communications.
  • Such terminals include: smart phones (such as iPhone), multimedia phones, functional phones, and low-end phones.
  • Ultra-mobile personal computer equipment This type of equipment belongs to the category of personal computers, has calculation and processing functions, and generally also has mobile Internet features.
  • Such terminals include: PDA, MID and UMPC devices, such as iPad.
  • Portable entertainment equipment This type of equipment can display and play multimedia content.
  • Such devices include: audio, video players (such as iPod), handheld game consoles, e-books, as well as smart toys and portable car navigation devices.
  • Server A device that provides computing services.
  • the composition of a server includes a processor 810, hard disk, memory, system bus, etc.
  • the server is similar to a general computer architecture, but because it needs to provide highly reliable services, it is High requirements in terms of performance, reliability, security, scalability, and manageability.
  • a programmable logic device Programmable Logic Device, PLD
  • FPGA Field Programmable Gate Array
  • HDL Hardware Description Language
  • ABEL Advanced Boolean Expression Language
  • AHDL Altera Hardware Description Language
  • HDCal JHDL
  • Lava Lava
  • Lola MyHDL
  • PALASM RHDL
  • VHDL Very-High-Speed Integrated Circuit Hardware Description Language
  • Verilog Verilog
  • the controller can be implemented in any suitable manner.
  • the controller can take the form of, for example, a microprocessor or a processor and a computer-readable medium storing computer-readable program codes (such as software or firmware) executable by the (micro)processor. , Logic gates, switches, application specific integrated circuits (ASICs), programmable logic controllers and embedded microcontrollers.
  • controllers include but are not limited to the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicon Labs C8051F320, the memory controller can also be implemented as a part of the memory control logic.
  • controller in addition to implementing the controller in a purely computer-readable program code manner, it is entirely possible to program the method steps to make the controller use logic gates, switches, application specific integrated circuits, programmable logic controllers and embedded The same function can be realized in the form of a microcontroller, etc. Therefore, such a controller can be regarded as a hardware component, and the devices included in it for implementing various functions can also be regarded as a structure within the hardware component. Or even, the device for realizing various functions can be regarded as both a software module for realizing the method and a structure within a hardware component.
  • a typical implementation device is a computer.
  • the computer may be, for example, a personal computer, a laptop computer, a cell phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or Any combination of these devices.
  • the embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention can be in the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
  • a computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device.
  • the device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
  • These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so as to execute on the computer or other programmable equipment.
  • the instructions provide steps for implementing functions specified in a flow or multiple flows in the flowchart and/or a block or multiple blocks in the block diagram.
  • this application can be provided as methods, systems, or computer program products. Therefore, this application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • program modules include routines, programs, objects, components, data structures, etc. that perform specific transactions or implement specific abstract data types.
  • the present application can also be practiced in distributed computing environments. In these distributed computing environments, remote processing devices connected through a communication network execute transactions. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

A defective pixel detection method, an image processing chip and an electronic device. The defective pixel detection method comprises: determining at least two pixel points within a neighboring area of a target pixel point, as a first pixel point and a second pixel point, at least one of the first pixel point and the second pixel point being adjacent to the target pixel point (S101); calculating a pixel difference between every two pixel points having an adjacent position relationship among the target pixel point, the first pixel point and the second pixel point, to obtain a first pixel difference and a second pixel difference (S102); and according to the first pixel difference and the second pixel difference, determining whether the target pixel point is a defective pixel (S103). The defective pixel detection method effectively realizes the detection of a defective pixel, provides effective basic data for the correction of a defective pixel, and can be implemented on the basis of simple hardware logic, having the advantages of quick detection and high efficiency.

Description

图像坏点的检测方法、图像处理芯片及电子设备Image dead pixel detection method, image processing chip and electronic equipment 技术领域Technical field
本申请实施例涉及图像处理技术领域,尤其涉及一种图像坏点的检测方法、图像处理芯片及电子设备。The embodiments of the present application relate to the field of image processing technology, and in particular, to a method for detecting image dead pixels, an image processing chip, and an electronic device.
背景技术Background technique
图像传感器上光线采集点(像素点)所形成的阵列存在工艺上的缺陷,或光信号进行转化为电信号的过程中出现错误,从而会造成图像上像素信息错误,导致图像中的像素值不准确,这些有缺陷的像素即为图像坏点。The array formed by the light collection points (pixels) on the image sensor has process defects, or errors occur in the process of converting light signals into electrical signals, which will cause pixel information on the image to be incorrect, resulting in incorrect pixel values in the image. Accurately, these defective pixels are image dead pixels.
由于来自不同工艺技术和传感器制造商,尤其对一些低成本、消费品的sensor来说,坏点数会有很多。另外,sensor在长时间、高温环境下坏点也会越来越多,从而破坏了图像的清晰度和完整性。Due to different process technologies and sensor manufacturers, especially for some low-cost, consumer products, the number of dead pixels will be many. In addition, the sensor will have more and more dead pixels in a long-term, high-temperature environment, thereby destroying the clarity and integrity of the image.
发明内容Summary of the invention
有鉴于此,本发明实施例所解决的技术问题之一在于提供一种图像坏点的检测方法、图像处理芯片及电子设备,用以克服现有技术中的上述缺陷。In view of this, one of the technical problems solved by the embodiments of the present invention is to provide a method for detecting dead pixels, an image processing chip, and an electronic device to overcome the above-mentioned defects in the prior art.
本申请实施例提供了一种图像坏点的检测方法,其包括:The embodiment of the application provides a method for detecting dead pixels in an image, which includes:
确定目标像素点的邻域内的至少两个像素点,分别作为第一像素点以及第二像素点,所述第一像素点和第二像素点中至少其一与所述目标像素点;Determining at least two pixel points in the neighborhood of the target pixel point as a first pixel point and a second pixel point, respectively, at least one of the first pixel point and the second pixel point and the target pixel point;
计算目标像素点、所述第一像素点、所述第二像素点中具有相邻位置关系的每两个像素点的像素差值,分别得到第一像素差值以及第二像素差值;Calculating the pixel difference value of every two pixels having an adjacent position relationship among the target pixel point, the first pixel point, and the second pixel point to obtain the first pixel difference value and the second pixel difference value respectively;
根据所述第一像素差值以及所述第二像素差值,判断所述目标像素点是否为图像坏点。According to the first pixel difference value and the second pixel difference value, it is determined whether the target pixel is a bad image.
可选地,在本申请的任一实施例中,还包括:判断所述目标像素点是否位于像素阵列的边缘,以根据所述判断的结果确定目标像素点邻域内的至少两个像素点。Optionally, in any embodiment of the present application, the method further includes: determining whether the target pixel is located at the edge of the pixel array, so as to determine at least two pixels in the neighborhood of the target pixel according to the result of the determination.
可选地,在本申请的任一实施例中,若所述目标像素点位于像素阵列的左边缘,则所述邻域为右邻域、上邻域、下邻域中的至少一种;若所述目标像素点位于像素阵列的右边缘,则所述邻域为左邻域、上邻域、下邻域中的至少一 种;若所述目标像素点位于像素阵列的上边缘,则所述邻域为下邻域、左邻域、右邻域中的至少一种;若所述目标像素点位于像素阵列的下边缘,则所述邻域为上领域、左邻域、右邻域中的至少一种。Optionally, in any embodiment of the present application, if the target pixel is located at the left edge of the pixel array, the neighborhood is at least one of a right neighborhood, an upper neighborhood, and a lower neighborhood; If the target pixel is located at the right edge of the pixel array, the neighborhood is at least one of a left neighborhood, an upper neighborhood, and a lower neighborhood; if the target pixel is located at the upper edge of the pixel array, then The neighborhood is at least one of a lower neighborhood, a left neighborhood, and a right neighborhood; if the target pixel is located at the lower edge of the pixel array, the neighborhood is an upper area, a left neighborhood, and a right neighborhood. At least one of the domains.
可选地,在本申请的任一实施例中,计算所述目标像素点、所述第一像素点、所述第二像素点中具有相邻位置关系的每两个像素点的像素差值,分别得到第一像素差值以及第二像素差值,包括:计算所述目标像素点与所述第一像素点的像素差值得到第一像素差值;计算第一像素点与所述第二像素点的像素差值得到第二像素差值。Optionally, in any embodiment of the present application, the pixel difference value of every two pixels having an adjacent position relationship among the target pixel, the first pixel, and the second pixel is calculated , Respectively obtaining the first pixel difference value and the second pixel difference value, including: calculating the pixel difference value between the target pixel point and the first pixel point to obtain the first pixel difference value; calculating the first pixel point and the first pixel point The pixel difference value of the two pixels obtains the second pixel difference value.
可选地,在本申请的任一实施例中,计算所述目标像素点、所述第一像素点、所述第二像素点中具有相邻位置关系的每两个像素点的像素差值,分别得到第一像素差值以及第二像素差值,包括:计算所述目标像素点与所述第一像素点的像素差值得到第一像素差值;计算第二像素点与所述目标像素点的像素差值得到第二像素差值。Optionally, in any embodiment of the present application, the pixel difference value of every two pixels having an adjacent position relationship among the target pixel, the first pixel, and the second pixel is calculated , Respectively obtaining the first pixel difference value and the second pixel difference value, including: calculating the pixel difference value between the target pixel and the first pixel to obtain the first pixel difference; calculating the second pixel and the target The pixel difference value of the pixel point obtains the second pixel difference value.
可选地,在本申请的任一实施例中,确定目标像素点的邻域内的第一像素点以及第二像素点,包括:确定目标像素点的若干个邻域内的第一像素点以及第二像素点,以针对每个邻域,计算所述目标像素点、所述第一像素点、所述第二像素点中具有相邻位置关系的每两个像素点的像素差值,分别得到第一像素差值以及第二像素差值;Optionally, in any embodiment of the present application, determining the first pixel and the second pixel in the neighborhood of the target pixel includes: determining the first pixel and the second pixel in several neighborhoods of the target pixel Two pixels, for each neighborhood, calculate the pixel difference of every two pixels that have an adjacent position relationship among the target pixel, the first pixel, and the second pixel to obtain respectively The first pixel difference and the second pixel difference;
对应地,根据所述第一像素差值以及所述第二像素差值,判断所述目标像素点是否为图像坏点,包括:根据其中至少一邻域对应的第一像素差值以及第二像素差值,初步判断所述目标像素点是否为图像可疑坏点;根据其中剩余邻域中的至少一邻域对应的第一像素差值以及第二像素差值,再次判断所述可疑图像坏点是否为图像实质坏点。Correspondingly, judging whether the target pixel is a bad image according to the first pixel difference value and the second pixel difference value includes: according to the first pixel difference value and the second pixel difference value corresponding to at least one of the neighborhoods. The pixel difference value is used to preliminarily determine whether the target pixel is a suspicious bad image; according to the first pixel difference value and the second pixel difference value corresponding to at least one of the remaining neighborhoods, the suspicious image is judged again as bad Whether the dots are actually dead pixels of the image.
可选地,在本申请的任一实施例中,确定目标像素点的邻域内的第一像素点以及第二像素点,包括:确定目标像素点的若干个邻域内的第一像素点以及第二像素点,以针对每个邻域,计算所述目标像素点、所述第一像素点、所述第二像素点中具有相邻位置关系的每两个像素点的像素差值,分别得到第一像素差值以及第二像素差值;Optionally, in any embodiment of the present application, determining the first pixel and the second pixel in the neighborhood of the target pixel includes: determining the first pixel and the second pixel in several neighborhoods of the target pixel Two pixels, for each neighborhood, calculate the pixel difference of every two pixels that have an adjacent position relationship among the target pixel, the first pixel, and the second pixel to obtain respectively The first pixel difference and the second pixel difference;
对应地,根据所述第一像素差值以及所述第二像素差值,判断所述目标像素点是否为图像坏点,包括:根据其中至少一邻域对应的第一像素差值以及第二像素差值,判断所述目标像素点是否为图像可疑坏点;根据其中剩余邻域中的至少一邻域对应的第一像素差值以及第二像素差值,判断所述目标像素点是 否为图像可疑坏点;若所述目标像素点被判定为图像可疑坏点的次数大于等于两次,则判定所述目标像素点为图像实质坏点。Correspondingly, judging whether the target pixel is a bad image according to the first pixel difference value and the second pixel difference value includes: according to the first pixel difference value and the second pixel difference value corresponding to at least one of the neighborhoods. Pixel difference value, to determine whether the target pixel is a suspicious bad image; according to the first pixel difference value and the second pixel difference value corresponding to at least one of the remaining neighborhoods, determine whether the target pixel point is Suspicious dead pixels in the image; if the number of times the target pixel is determined to be a suspicious dead pixel in the image is greater than or equal to two times, it is determined that the target pixel is a substantial dead pixel in the image.
可选地,在本申请的任一实施例中,根据所述第一像素差值以及所述第二像素差值,判断所述目标像素点是否为图像坏点,包括:确定所述第一像素差值以及所述第二像素差值之间的像素变化率;根据所述像素变化率以及像素变化率阈值,判断所述目标像素点是否为图像坏点。Optionally, in any embodiment of the present application, judging whether the target pixel is a bad image based on the first pixel difference value and the second pixel difference value includes: determining the first pixel difference The pixel difference value and the pixel change rate between the second pixel difference value; according to the pixel change rate and the pixel change rate threshold, it is determined whether the target pixel is an image dead pixel.
本申请实施例还提供一种图像处理芯片,其包括:控制器,所控制器用于确定目标像素点的邻域内的至少两个像素点,分别作为第一像素点以及第二像素点,所述第一像素点和第二像素点中至少其一与所述目标像素点,以及计算目标像素点、所述第一像素点以及所述第二像素点中具有相邻位置关系的每两个像素点的像素差值,分别得到第一像素差值以及第二像素差值;并根据所述第一像素差值以及所述第二像素差值,判断所述目标像素点是否为图像坏点。An embodiment of the present application also provides an image processing chip, which includes a controller, and the controller is used to determine at least two pixels in the neighborhood of the target pixel as the first pixel and the second pixel, respectively. At least one of the first pixel point and the second pixel point is related to the target pixel point, and every two pixels of the target pixel point, the first pixel point, and the second pixel point that have an adjacent position relationship The pixel difference values of the dots are obtained respectively to obtain a first pixel difference value and a second pixel difference value; and according to the first pixel difference value and the second pixel difference value, it is determined whether the target pixel is an image bad pixel.
本申请还提供一种电子设备,其包括本申请实施例中的图像处理芯片。The application also provides an electronic device, which includes the image processing chip in the embodiment of the application.
本申请实施例提供的技术方案中,确定目标像素点的邻域内的至少两个像素点,分别作为第一像素点以及第二像素点;计算目标像素点、所述第一像素点、所述第二像素点中具有相邻位置关系的每两个像素点的像素差值,分别得到第一像素差值以及第二像素差值,所述第一像素点和第二像素点中至少其一与所述目标像素点相邻;根据所述第一像素差值以及所述第二像素差值,判断所述目标像素点是否为图像坏点。图像坏点的检测方法有效实现了图像坏点的检测,为坏点的校正提供了有效的基础数据,且可以基于简单的硬件逻辑实现,具有检测迅速、效能高的特点。In the technical solution provided by the embodiments of the present application, at least two pixels in the neighborhood of the target pixel are determined as the first pixel and the second pixel; the target pixel, the first pixel, and the The pixel difference values of every two pixels in the second pixel point that have an adjacent position relationship are obtained as a first pixel difference value and a second pixel difference value, at least one of the first pixel point and the second pixel point Adjacent to the target pixel; determining whether the target pixel is a bad image based on the first pixel difference value and the second pixel difference value. The detection method of image dead pixels effectively realizes the detection of image dead pixels, provides effective basic data for the correction of dead pixels, and can be realized based on simple hardware logic, and has the characteristics of rapid detection and high efficiency.
附图说明Description of the drawings
后文将参照附图以示例性而非限制性的方式详细描述本申请实施例的一些具体实施例。附图中相同的附图标记标示了相同或类似的部件或部分。本领域技术人员应该理解,这些附图未必是按比例绘制的。附图中:Hereinafter, some specific embodiments of the embodiments of the present application will be described in detail in an exemplary but not restrictive manner with reference to the accompanying drawings. The same reference numerals in the drawings indicate the same or similar components or parts. Those skilled in the art should understand that these drawings are not necessarily drawn to scale. In the attached picture:
图1为本申请实施例一中图像坏点的检测方法流程示意图;FIG. 1 is a schematic flowchart of a method for detecting dead pixels in an image in Embodiment 1 of this application;
图2为本申请实施例二中图像坏点的检测方法流程示意图;2 is a schematic flowchart of a method for detecting dead pixels in an image in Embodiment 2 of this application;
图3为本申请实施例三中图像坏点的检测方法流程示意图;3 is a schematic flowchart of a method for detecting dead pixels in an image in Embodiment 3 of the application;
图4为本申请实施例四中图像处理芯片结构示意图。4 is a schematic diagram of the structure of the image processing chip in the fourth embodiment of the application.
具体实施方式detailed description
实施本发明实施例的任一技术方案必不一定需要同时达到以上的所有优点。The implementation of any technical solution of the embodiments of the present invention does not necessarily need to achieve all the above advantages at the same time.
下面结合本发明实施例附图进一步说明本发明实施例具体实现。The specific implementation of the embodiments of the present invention will be further described below in conjunction with the accompanying drawings of the embodiments of the present invention.
本申请实施例提供的技术方案中,确定目标像素点的邻域内的至少两个像素点,分别作为第一像素点以及第二像素点,所述第一像素点和第二像素点中至少其一与所述目标像素点相邻;计算目标像素点、所述第一像素点、所述第二像素点中具有相邻位置关系的每两个像素点的像素差值,分别得到第一像素差值以及第二像素差值;根据所述第一像素差值以及所述第二像素差值,判断所述目标像素点是否为图像坏点。图像坏点的检测方法有效实现了图像坏点的检测,为坏点的校正提供了有效的基础数据,且可以基于简单的硬件逻辑实现,具有检测迅速、效能高的特点。In the technical solution provided by the embodiment of the present application, at least two pixels in the neighborhood of the target pixel are determined as the first pixel and the second pixel, and at least one of the first pixel and the second pixel is 1. Adjacent to the target pixel; calculating the pixel difference of every two pixels having an adjacent position relationship among the target pixel, the first pixel, and the second pixel to obtain the first pixel respectively A difference value and a second pixel difference value; according to the first pixel difference value and the second pixel difference value, it is determined whether the target pixel is a bad image. The detection method of image dead pixels effectively realizes the detection of image dead pixels, provides effective basic data for the correction of dead pixels, and can be realized based on simple hardware logic, and has the characteristics of rapid detection and high efficiency.
图1为本申请实施例一中图像坏点的检测方法流程示意图;如图1所示,本实施例中,以单独检测图像的像素阵列上的某一个像素点是否为坏点为例进行说明,具体地,对应的图像坏点的检测方法包括:Figure 1 is a schematic flow chart of the method for detecting dead pixels in an image in the first embodiment of this application; as shown in Figure 1, in this embodiment, it is described as an example to separately detect whether a certain pixel on the pixel array of the image is a dead pixel. Specifically, the corresponding method for detecting dead pixels on the image includes:
S101、确定目标像素点的邻域内的至少两个像素点,分别作为第一像素点以及第二像素点,所述第一像素点和第二像素点中至少其一与所述目标像素点相邻;S101. Determine at least two pixel points in the neighborhood of the target pixel point as a first pixel point and a second pixel point respectively, and at least one of the first pixel point and the second pixel point is similar to the target pixel point adjacent;
本实施例中,是基于目标像素点与其邻域内的像素点的像素差值进行图像的坏点检测,而如果目标像素点的位置不同,其邻域的选择可能存在不同,尤其对于像素阵列上位于边缘部分的像素,此处又可以称之边缘像素来说,其邻域的方向选择上相对其他位置的非边缘像素来说,选择余地较小。既要确保目标像素点存在可选的邻域,而且该邻域内存在可选的像素点。In this embodiment, the bad pixel detection of the image is performed based on the pixel difference between the target pixel and the pixel in its neighborhood. If the location of the target pixel is different, the selection of its neighborhood may be different, especially for the pixel array. For pixels located at the edge, which can also be called edge pixels here, the direction of the neighborhood is relatively small compared to non-edge pixels in other locations. It is necessary to ensure that the target pixel has an optional neighborhood, and that there are optional pixels in the neighborhood.
因此,考虑到上述情形,本实施例中,在步骤S101中可以包括判断所述目标像素点是否位于像素阵列的边缘,以根据所述判断的结果确定目标像素点邻域内的至少两个像素点,比如通过像素点的扫描从而确定目标像素点邻域内的至少两个像素点。Therefore, in consideration of the above situation, in this embodiment, step S101 may include determining whether the target pixel is located at the edge of the pixel array, so as to determine at least two pixels in the neighborhood of the target pixel according to the result of the determination. For example, by scanning the pixels to determine at least two pixels in the neighborhood of the target pixel.
进一步地,本实施例中,像素阵列的边缘具体可以包括左边缘、右边缘、上边缘、下边缘,位于这些边缘上的像素点可以称之为边缘像素点,比如左边缘像素点、右边缘像素点、上边缘像素点、下边缘像素点;因此,若所述目标 像素点位于像素阵列的左边缘,则所述邻域为右邻域、上邻域、下邻域中的至少一种;若所述目标像素点位于像素阵列的右边缘,则所述邻域为左邻域、上邻域、下邻域中的至少一种;若所述目标像素点位于像素阵列的上边缘,则所述邻域为下邻域、左邻域、右邻域中的至少一种;若所述目标像素点位于像素阵列的下边缘,则所述邻域为上领域、左邻域、右邻域中的至少一种。Further, in this embodiment, the edges of the pixel array may specifically include a left edge, a right edge, an upper edge, and a lower edge. The pixels located on these edges may be called edge pixels, such as left edge pixels and right edges. Pixels, upper edge pixels, and lower edge pixels; therefore, if the target pixel is located at the left edge of the pixel array, the neighborhood is at least one of the right neighborhood, the upper neighborhood, and the lower neighborhood ; If the target pixel is located at the right edge of the pixel array, the neighborhood is at least one of the left neighborhood, upper neighborhood, and lower neighborhood; if the target pixel is located at the upper edge of the pixel array, The neighborhood is at least one of the lower neighborhood, the left neighborhood, and the right neighborhood; if the target pixel is located at the lower edge of the pixel array, the neighborhood is the upper area, the left neighborhood, and the right neighborhood. At least one of the neighborhoods.
尤其若目标像素点为边缘像素时,如前所述,其邻域可能只存在某一个方向上,比如,如果是左边缘像素,则其邻域为右邻域,包括水平方向以及与水平方向具有锐角夹角的斜线方向所限定的右邻域。而对于其他右边缘像素、上边缘像素、下边缘像素对应的邻域分别为左邻域、下邻域、上邻域。Especially if the target pixel is an edge pixel, as mentioned above, its neighborhood may only exist in a certain direction. For example, if it is a left edge pixel, its neighborhood is the right neighborhood, including the horizontal direction and the horizontal direction. The right neighborhood defined by the diagonal direction with an acute angle. For other right edge pixels, upper edge pixels, and lower edge pixels, the corresponding neighborhoods are the left neighborhood, the lower neighborhood, and the upper neighborhood, respectively.
因此,对于上述边缘像素,为了能确定其像素差值的变化,因此,在其邻域方向上连续选择两个像素点分别作为所述第一像素点以及第二像素点,所述目标像素点与所述第一像素点的像素差值即为第一像素差值;计算第二像素点与所述目标像素点的像素差值即为第二像素差值。比如,若目标像素点为左边缘像素,则由于其邻域为右邻域,从其右侧同一行像素点中选择连续的两个像素点分别作为第一像素点、第二像素点,所述第一像素点与所述目标像素点相邻。Therefore, for the above-mentioned edge pixels, in order to determine the change in the pixel difference, two pixels are successively selected as the first pixel and the second pixel respectively in the neighborhood direction, and the target pixel is The pixel difference with the first pixel is the first pixel difference; the pixel difference between the second pixel and the target pixel is calculated as the second pixel difference. For example, if the target pixel is the left edge pixel, since its neighborhood is the right neighborhood, two consecutive pixels are selected from the same row of pixels on the right as the first pixel and the second pixel. The first pixel point is adjacent to the target pixel point.
当然,在其他应用场景中,若目标像素点为左边缘像素,则由于其邻域为右邻域,从其右侧同一行像素点中选择一个像素点作为第一像素点,而在与第一像素点在同一列的像素点中选择一像素点作为第二像素点。Of course, in other application scenarios, if the target pixel is the left edge pixel, since its neighbor is the right neighbor, a pixel from the same row of pixels on the right is selected as the first pixel, and the pixel is One pixel is selected from the pixels in the same column as the second pixel.
在实际应用中,由于像素阵列最边缘的像素有效性较差,因此,在本实施例中,所谓边缘像素优选除了像素阵列最边缘的像素之外的其他边缘像素比如次边缘像素或者又称之亚边缘像素,但是,如果最边缘的像素的有效性较好,当然,边缘像素也可以包括这些最边缘的像素。In practical applications, because the pixels at the edge of the pixel array are less effective, in this embodiment, the so-called edge pixels are preferably other edge pixels except for the pixels at the edge of the pixel array, such as sub-edge pixels or also called Sub-edge pixels, however, if the edge pixels are more effective, of course, the edge pixels can also include these edge pixels.
进一步地,在其他实施例中,若所述目标像素点不位于像素阵列的左边缘,则非边缘像素的邻域存在至少四种选择:右领域、左邻域、下邻域、上邻域,具体可以根据应用场景灵活选择;对比可见,非边缘像素的邻域相对于上述边缘像素的邻域,可选余地较大。在一种应用场景中,可以选择右邻域和左邻域的其中一个像素点分别作为第一像素点和第二像素点,比如,位于非边缘的目标像素点左邻域且与该目标像素点相邻的像素点作为第一像素点,位于非边缘的目标像素点右邻域且与该目标像素点相邻的像素点作为第二像素点,第一像素点、目标像素点、第二像素点位于同一行。或者,在另一种应用场景中,位于非边缘的目标像素点上邻域且与该目标像素点相邻的像素点作为第一像素点, 位于非边缘的目标像素点下邻域且与该目标像素点相邻的像素点作为第二像素点,第一像素点、目标像素点、第二像素点位于同一列。或者,在还一种应用场景中,位于非边缘的目标像素点右邻域且与该目标像素点在同一行且相互相邻的像素点作为第一像素点,位于该目标像素点右领域且与第一像素点相邻且在同一列的一个像素点作为第二像素点,第一像素点、目标像素点位于同一行,第一像素点、第二像素点位于同一列。Further, in other embodiments, if the target pixel is not located at the left edge of the pixel array, there are at least four choices for the neighborhood of non-edge pixels: right area, left neighborhood, lower neighborhood, and upper neighborhood , It can be flexibly selected according to the application scenario; the comparison shows that the neighborhood of non-edge pixels has a larger choice than the neighborhood of edge pixels. In an application scenario, one of the pixels in the right neighborhood and the left neighborhood can be selected as the first pixel and the second pixel, for example, a non-edge target pixel in the left neighborhood and the same as the target pixel. The adjacent pixel point is regarded as the first pixel point, the pixel point located in the right neighborhood of the non-edge target pixel point and adjacent to the target pixel point is regarded as the second pixel point, the first pixel point, the target pixel point, the second pixel point The pixels are in the same row. Or, in another application scenario, a pixel located in the upper neighborhood of the non-edge target pixel and adjacent to the target pixel is used as the first pixel, and located in the lower neighborhood of the non-edge target pixel and connected to the The pixel point adjacent to the target pixel point is used as the second pixel point, and the first pixel point, the target pixel point, and the second pixel point are located in the same column. Or, in another application scenario, a pixel located in the right neighborhood of a non-edge target pixel and in the same row as the target pixel and adjacent to each other is used as the first pixel, located in the right area of the target pixel and A pixel adjacent to the first pixel and in the same column is used as the second pixel, the first pixel and the target pixel are located in the same row, and the first pixel and the second pixel are located in the same column.
S102、计算所述目标像素点、所述第一像素点、所述第二像素点中具有相邻位置关系的每两个像素点的像素差值,分别得到第一像素差值以及第二像素差值。S102. Calculate the pixel difference value of every two pixels having an adjacent position relationship among the target pixel point, the first pixel point, and the second pixel point to obtain a first pixel difference value and a second pixel point respectively Difference.
本实施例中,在步骤S102中通过计算像素差值得到第一像素差值以及第二像素差值时,具体可以包括计算所述目标像素点与所述第一像素点的像素差值得到第一像素差值;计算第二像素点与所述目标像素点的像素差值得到第二像素差值。具体地,比如对于所述目标像素点如果是左边缘像素,而其右邻域的像素为与该左边缘像素在同一行的连续两个像素,其中一个像素与该左边缘像素相邻,即与该左边缘像素的像素作为第一像素点,与该第一像素点相邻的像素点作为第二像素点,在步骤S102中,计算所述目标像素点与所述第一像素点的像素差值作为第一像素差值,第一像素点与第二像素点的像素差为第二像素差值。而对于其他的边缘像素,其对应的第一像素差值、第二像素差值,其计算方法类似目标像素点为左边缘像素的情形,详细不再赘述。In this embodiment, when the first pixel difference value and the second pixel difference value are obtained by calculating the pixel difference value in step S102, it may specifically include calculating the pixel difference value between the target pixel and the first pixel to obtain the first pixel difference. A pixel difference value; the pixel difference value between the second pixel point and the target pixel point is calculated to obtain the second pixel difference value. Specifically, for example, if the target pixel is a left edge pixel, and the pixel in its right neighborhood is two consecutive pixels in the same row as the left edge pixel, one of the pixels is adjacent to the left edge pixel, that is, The pixel with the left edge pixel is regarded as the first pixel, and the pixel adjacent to the first pixel is regarded as the second pixel. In step S102, the pixels between the target pixel and the first pixel are calculated The difference is the first pixel difference, and the pixel difference between the first pixel and the second pixel is the second pixel difference. For other edge pixels, the calculation method of the corresponding first pixel difference and second pixel difference is similar to the case where the target pixel is the left edge pixel, and details are not repeated here.
本实施例即在计算目标像素点、及其邻域的像素点中具有相邻位置关系的每两个像素点的像素差值,分别得到第一像素差值以及第二像素差值时,具体计算所述目标像素点、所述第一像素点、所述第二像素点中具有相邻位置关系的每两个像素点的像素差值,分别得到第一像素差值以及第二像素差值。In this embodiment, when calculating the pixel difference value of every two pixels having an adjacent position relationship among the target pixel point and the pixel points in its neighborhood, to obtain the first pixel difference value and the second pixel difference value, the specific Calculate the pixel difference of every two pixels that have an adjacent position relationship among the target pixel, the first pixel, and the second pixel to obtain the first pixel difference and the second pixel difference respectively .
此处,需要说明的是,在计算上述相邻两个像素的像素差值时,计算差值的方向要一致,即统一用其中前一个像素值减去后一个像素值;或者,统一用后一个像素值减去前一个像素值即可。Here, it should be noted that when calculating the pixel difference of the two adjacent pixels, the direction of calculating the difference must be the same, that is, the previous pixel value is used to subtract the next pixel value; or, after uniform use Just subtract the previous pixel value from one pixel value.
进一步地,为了进一步提高坏点检测的准确度,在步骤S102中确定目标像素点及其邻域内的第一像素点以及第二像素点时,具体确定目标像素点若干个邻域内的第一像素点以及第二像素点,以针对每个邻域,计算所述目标像素点、所述第一像素点、所述第二像素点中具有相邻位置关系的每两个像素点的像素差值,分别得到第一像素差值以及第二像素差值。Further, in order to further improve the accuracy of dead pixel detection, when determining the first pixel and the second pixel in the target pixel and its neighborhood in step S102, specifically determine the first pixel in several neighborhoods of the target pixel Point and second pixel point, to calculate the pixel difference value of every two pixels in the adjacent position relationship among the target pixel point, the first pixel point, and the second pixel point for each neighborhood , Respectively obtain the first pixel difference value and the second pixel difference value.
比如,对于上述目标像素点如果为边缘像素的话,选择其的两个邻域进行 第一像素点和第二像素点的选择,对于每一个邻域,计算一次上述像素差值得到对应的第一像素差值和第二像素差值;两个邻域共计得两个第一像素差值以及两个第二像素差值。对于目标像素点为非边缘像素的情形,类似此处边缘像素的情形。For example, if the above target pixel is an edge pixel, select its two neighborhoods to select the first pixel and the second pixel. For each neighborhood, calculate the above pixel difference once to obtain the corresponding first pixel. Pixel difference value and second pixel difference value; two neighborhoods total two first pixel difference values and two second pixel difference values. For the case where the target pixel is a non-edge pixel, it is similar to the case of the edge pixel here.
S103、根据所述第一像素差值以及所述第二像素差值,判断所述目标像素点是否为图像坏点。S103: Determine whether the target pixel is a bad image according to the first pixel difference value and the second pixel difference value.
具体地,本实施例中,在步骤S103中确定所述第一像素差值以及所述第二像素差值之间的像素变化率;根据所述像素变化率以及像素变化率阈值,判断所述目标像素点是否为图像坏点。Specifically, in this embodiment, the pixel change rate between the first pixel difference value and the second pixel difference value is determined in step S103; the pixel change rate and the pixel change rate threshold are used to determine the Whether the target pixel is a bad image.
本实施例中,所述像素变化率阈值的大小根据应用场景需求灵活配置。而实际上,从坏点的检测角度来看,该像素变化率阈值又可以称之为检测强度。In this embodiment, the size of the pixel change rate threshold is flexibly configured according to the requirements of the application scenario. In fact, from the point of view of bad pixel detection, the pixel change rate threshold can also be called the detection intensity.
如前所述,如果为了提高坏点的检测准确度,如果从至少两个邻域方向上进行了像素点的选择,即从一个邻域方向上选择一个第一像素点以及一个第二像素点,由此在每个邻域方向上都会得到一个第一像素差值以及第二像素差值,则进一步根据其中一个邻域方向上对应的第一像素差值以及第二像素差值,初步判断所述目标像素点是否为图像可疑坏点,当初步判断为图像可疑坏点的时候,比如第一像素差值以及第二像素差值的差值即像素变化率大于设定的第一像素变化率阈值时判定目标像素点为图像可疑坏点。再使用另一个邻域方向上对应的第一像素差值以及第二像素差值进行再次判断,以最终判断所述可疑图像坏点是否为图像实质坏点;比如,另一个邻域方向上对应的第一像素差值以及第二像素差值之间的像素变化率大于设定的第二像素变化率阈值时判定图像可疑坏点为图像实质坏点。此处,需要说明的是,第一像素变化率阈值可以与第二像素差值阈值相同,也可以不同。As mentioned above, if in order to improve the detection accuracy of dead pixels, if the pixel is selected from at least two neighborhood directions, that is, a first pixel and a second pixel are selected from a neighborhood direction Therefore, a first pixel difference value and a second pixel difference value will be obtained in each neighborhood direction, and then a preliminary judgment is made based on the corresponding first pixel difference value and second pixel difference value in one of the neighborhood directions Whether the target pixel is a suspicious bad pixel of the image, when it is preliminarily judged to be a suspicious bad pixel of the image, such as the difference between the first pixel difference and the second pixel difference, that is, the pixel change rate is greater than the set first pixel change The target pixel is judged to be a suspected bad pixel in the image when the rate threshold is used. Then use the corresponding first pixel difference value and the second pixel difference value in another neighborhood direction to judge again, to finally determine whether the suspicious image defect is a substantial image defect; for example, the corresponding one in another neighborhood direction When the pixel change rate between the first pixel difference value and the second pixel difference value is greater than the set second pixel change rate threshold value, it is determined that the suspected bad pixel of the image is the substantial bad pixel of the image. Here, it should be noted that the first pixel change rate threshold may be the same as or different from the second pixel difference threshold.
即实际上对于任一一个单独的目标像素点来说,如果为其确定了多个邻域的话,则根据其中至少一邻域对应的第一像素差值以及第二像素差值,初步判断所述目标像素点是否为图像可疑坏点;根据其中剩余邻域中的至少一邻域对应的第一像素差值以及第二像素差值,再次判断所述可疑图像坏点是否为图像实质坏点。比如,在初次判断时,对于至少一个邻域内的第一像素点以及第二像素点来说,出现了第一像素差值以及第二像素差值之间的像素变化率大于设定的第一像素变化率阈值的情形,则初步判定所述目标像素点为图像可疑坏点,如果再次判断时,对于剩余领域中至少一个邻域内的第一像素点以及第二像素点来说,又出现了第一像素差值以及第二像素差值之间的像素变化率大于设定 的第一像素变化率阈值的情形,则可以最终判定图像实质坏点。That is to say, for any single target pixel, if multiple neighborhoods are determined for it, a preliminary judgment is made based on the first pixel difference and the second pixel difference corresponding to at least one of the neighborhoods Whether the target pixel is a suspicious bad image; according to the first pixel difference and the second pixel difference corresponding to at least one of the remaining neighborhoods, it is judged again whether the suspicious image bad pixel is a substantial image bad point. For example, in the initial judgment, for the first pixel and the second pixel in at least one neighborhood, the pixel change rate between the first pixel difference and the second pixel difference is greater than the set first pixel. In the case of the pixel change rate threshold, it is preliminarily determined that the target pixel is a suspicious bad pixel of the image. If it is determined again, for the first pixel and the second pixel in at least one neighborhood in the remaining area, there will be If the pixel change rate between the first pixel difference value and the second pixel difference value is greater than the set threshold value of the first pixel change rate, it is possible to finally determine the actual bad pixels of the image.
上述图1中,以检测单个目标像素点是否为坏点为例进行说明。下述实施例中,针对图像传感器感应到的一副图像上进行坏点的检测为例进行说明,即判断一副完整的图像上实际存在的坏点。为此,在下述实施例中,整体上按照像素阵列的行方向依次进行的检测,每检测完一行像素点则进入下一行像素点继续进行坏点的检测。即相当于目标像素点的数量有多个时,如何进行坏点的检测。In the above FIG. 1, it is described as an example to detect whether a single target pixel is a dead pixel. In the following embodiments, the detection of dead pixels on an image sensed by the image sensor is taken as an example to describe, that is, to determine the actual dead pixels on a complete image. For this reason, in the following embodiments, the detection is performed sequentially according to the row direction of the pixel array as a whole, and each row of pixels is detected, the next row of pixels is entered to continue the detection of dead pixels. That is, when there are multiple target pixels, how to detect dead pixels.
图2为本申请实施例二中图像坏点的检测方法流程示意图;如图2所示,其包括:Figure 2 is a schematic flow chart of the method for detecting dead pixels in an image in the second embodiment of the application; as shown in Figure 2, it includes:
S201、确定当前所述目标像素点各自邻域内的第一像素点以及第二像素点;S201: Determine the first pixel point and the second pixel point in the respective neighborhood of the current target pixel point;
本实施例中,步骤S201的详细执行可参见上述图1实施例的记载,即判断目标像素点是边缘像素还是非边缘像素,如果是边缘像素确定对应邻域内的第一像素点以及第二像素点,如果是非边缘像素则同样确定对应邻域内的第一像素点以及第二像素点。如果为了提高检测准确度,还可以在多个邻域内确定第一像素点以及第二像素点。In this embodiment, the detailed execution of step S201 can refer to the record of the embodiment in FIG. 1, that is, it is determined whether the target pixel is an edge pixel or a non-edge pixel. If it is an edge pixel, determine the first pixel and the second pixel in the corresponding neighborhood. If it is a non-edge pixel, the first pixel and the second pixel in the corresponding neighborhood are also determined. In order to improve the detection accuracy, the first pixel and the second pixel can also be determined in multiple neighborhoods.
S202、根据当前所述目标像素点、所述第一像素点、所述第二像素点中具有相邻位置关系的每两个像素点的像素差值,得到像素差值组,所述像素差值组包括第一像素差值以及第二像素差值;S202. Obtain a pixel difference value group according to the pixel difference value of every two pixels having an adjacent position relationship among the current target pixel point, the first pixel point, and the second pixel point. The value group includes a first pixel difference value and a second pixel difference value;
本实施例中,由于是基于包括了目标像素点、第一像素点以及第二像素点在内共计三个像素点的像素值求取相邻像素点像素值的差值得到两个像素差值,该两个像素差值即可组成一个像素差值组。In this embodiment, the difference between the pixel values of adjacent pixels is calculated based on the pixel values of a total of three pixels including the target pixel, the first pixel, and the second pixel to obtain two pixel differences. , The two pixel differences can form a pixel difference group.
如前所述,当从目标像素点的多个邻域内分别确定出第一像素点以及第二像素点时,由此而会得到多个像素差值组。As mentioned above, when the first pixel and the second pixel are respectively determined from multiple neighborhoods of the target pixel, multiple pixel difference groups will be obtained.
S203、根据当前所述目标像素点对应的像素差值组中的第一像素差值以及第二像素差值,初步判断当前所述目标像素点是否为图像可疑坏点,以及再判断当前所述目标像素点是否为图像实质坏点。S203. According to the first pixel difference value and the second pixel difference value in the pixel difference value group corresponding to the current target pixel point, preliminary judgment is made whether the current target pixel point is a suspicious or bad image pixel, and then the current target pixel point is determined Whether the target pixel is a real dead pixel of the image.
本实施例中,如果上述步骤S201中邻域的数量为1个,而对于精确度较高的场景中,通过一个像素差值组中的第一像素差值和第二像素差值,确定出的坏点实际上可认为是图像可疑坏点,有可能并非真正的坏点,因此,在此,增加了再次进行坏点判断的处理。In this embodiment, if the number of neighborhoods in step S201 is one, and for a scene with higher accuracy, the first pixel difference and the second pixel difference in a pixel difference group are used to determine The dead pixels of is actually considered to be suspicious dead pixels of the image, and may not be real dead pixels. Therefore, here, the processing of re-determination of dead pixels is added.
而在本实施例中,如前所述,如果对于当前所述目标像素点,确定了至少两个邻域内的第一像素点和第二像素点的话,则可以根据其中至少一邻域对应 的第一像素差值以及第二像素差值,初步判断所述目标像素点是否为图像可疑坏点;根据其中剩余邻域中的至少一邻域对应的第一像素差值以及第二像素差值,再次判断所述可疑图像坏点是否为图像实质坏点。比如,通过至少两个领域对应的像素变化率是否都大于分别设定的第一像素变化率阈值、第二像素变化率阈值,如果都大于,则目标像素点为图像实质坏点,否则,目标像素点仅仅为图像可疑坏点。此处,第一像素变化率阈值、第二像素变化率阈值的数值可以相同,或者又称之只设置一个像素变化率阈值,同时用于初步判断和再次判断的处理。In this embodiment, as mentioned above, if the first pixel and the second pixel in at least two neighborhoods are determined for the current target pixel, then at least one of the neighborhoods can correspond to The first pixel difference value and the second pixel difference value are used to preliminarily determine whether the target pixel is a suspicious bad image; according to the first pixel difference value and the second pixel difference value corresponding to at least one of the remaining neighborhoods , Judge again whether the suspicious image defect is a substantial image defect. For example, whether the pixel change rates corresponding to at least two areas are both greater than the first pixel change rate threshold and the second pixel change rate threshold respectively set. If both are greater than, the target pixel is the substantial dead pixel of the image; otherwise, the target Pixels are only suspected dead pixels in the image. Here, the values of the first pixel change rate threshold and the second pixel change rate threshold may be the same, or it is also called that only one pixel change rate threshold is set, which is used for preliminary judgment and second judgment at the same time.
或者,在另外一种情形中,针对目标像素存在至少两个邻域的情形,如果至少有两个邻域存在像素变化率大于对应的像素变化率阈值的情形,即像素变化率大于对应的像素变化率阈值的次数大于等于两次,则直接判定所述目标像素点为图像实质坏点。即若根据其中至少一邻域对应的第一像素差值以及第二像素差值,判断所述目标像素点是否为图像可疑坏点;根据其中剩余邻域中的至少一邻域对应的第一像素差值以及第二像素差值,判断所述目标像素点是否为图像可疑坏点;若所述目标像素点被判定为图像可疑坏点的次数大于等于两次,则判定所述目标像素点为图像实质坏点。Or, in another case, for the situation where the target pixel has at least two neighborhoods, if there are at least two neighborhoods where the pixel change rate is greater than the corresponding pixel change rate threshold, that is, the pixel change rate is greater than the corresponding pixel If the number of times of the change rate threshold is greater than or equal to twice, it is directly determined that the target pixel is a substantial dead pixel of the image. That is, if the target pixel is judged according to the first pixel difference value and the second pixel difference value corresponding to at least one of the neighborhoods, whether the target pixel is a suspicious bad image; according to the first pixel corresponding to at least one of the remaining neighborhoods The pixel difference value and the second pixel difference value are used to determine whether the target pixel is a suspicious bad image; if the target pixel is determined to be a suspicious bad image more than twice, then the target pixel is determined It is the real dead pixels of the image.
S204、结束对当前所述目标像素点的检测,启动对下一所述目标像素点的坏点检测。S204: End the detection of the current target pixel, and start the dead pixel detection of the next target pixel.
此处,需要说明的是,如果当前所述目标像素点为其所在行的最后一个像素,则下一所述目标像素点为下一行的第一个像素点。如果当前所述目标像素点为其所在行的非最后一个像素,则下一所述目标像素点与当前所述目标像素点位于同一行,即实现上述按照行方向每完成一行像素点的图像坏点检测,即切换到下一行继续进行图像坏点的检测。Here, it should be noted that if the current target pixel is the last pixel in the row, the next target pixel is the first pixel in the next row. If the current target pixel is the non-last pixel in the row, the next target pixel is located in the same row as the current target pixel, which means that the image failure of each row of pixels in the row direction is achieved. Point detection, that is, switch to the next line to continue the detection of dead pixels in the image.
图3为本申请实施例三中图像坏点的检测方法流程示意图;如图3所示,其包括:Fig. 3 is a schematic flow chart of the method for detecting dead pixels in an image in the third embodiment of the application; as shown in Fig. 3, it includes:
S301、确定多个所述目标像素点各自邻域内的第一像素点以及第二像素点;S301: Determine first pixel points and second pixel points in respective neighborhoods of a plurality of target pixels;
与上述实施例不同的是,本实施例中,是在确定出所有目标像素点的各自邻域内的第一像素点以及第二像素点之后,在跳转到步骤S302执行,并非针对一个所述目标像素点完成步骤S301之后,立即跳转到步骤S302,继续针对该同一个所述待检测像点进行处理。此处,步骤S301也可以理解为对多个目标像素点的批量处理,以确定出所有所述目标像素点各自邻域内的第一像素点 以及第二像素点。The difference from the above-mentioned embodiment is that in this embodiment, after determining the first pixel and the second pixel in the respective neighborhoods of all target pixels, jump to step S302 for execution, not for one of the aforementioned After the target pixel completes step S301, it immediately jumps to step S302, and continues to process the same image to be detected. Here, step S301 can also be understood as batch processing of multiple target pixels to determine the first pixel and the second pixel in the respective neighborhoods of all the target pixels.
S302、计算每个所述目标像素点、所述第一像素点、所述第二像素点中具有相邻位置关系的每两个像素点的像素差值,分别得到像素差值组,所述像素差值组包括第一像素差值以及第二像素差值,以得到多个目标像素点对应多个像素差值组;S302. Calculate the pixel difference value of every two pixels having an adjacent position relationship among each of the target pixel point, the first pixel point, and the second pixel point to obtain a pixel difference value group, respectively, The pixel difference group includes a first pixel difference value and a second pixel difference value, so as to obtain multiple target pixel points corresponding to multiple pixel difference value groups;
本实施例中,步骤S302类似上述步骤S301的批量化思想设计,即步骤S302步骤的执行结果为得到所有目标像素点对应多个像素差值组,此时,才跳转到步骤S303执行,并非针对一个所述目标像素点完成步骤S302之后,立即跳转到步骤S303。In this embodiment, step S302 is similar to the batch design of step S301 above, that is, the execution result of step S302 is that all target pixels correspond to multiple pixel difference groups. At this time, it jumps to step S303 for execution. After completing step S302 for one target pixel, immediately jump to step S303.
S303、对每个目标像素点,根据对应的像素差值组中的第一像素差值以及第二像素差值,初步判断对应的所述目标像素点是否为图像可疑坏点,以确定出多个图像可疑坏点,再从多个图像可疑坏点中筛选出图像实质坏点。S303. For each target pixel point, according to the first pixel difference value and the second pixel difference value in the corresponding pixel difference value group, it is preliminarily determined whether the corresponding target pixel point is a suspicious bad pixel in the image, so as to determine how much If there are suspicious dead pixels in one image, the actual dead pixels of the image are filtered out from the suspicious dead pixels in multiple images.
本实施例中,步骤S03类似上述步骤S301、S302的批量化思想设计,即步骤S303的执行结果为得到所有目标像素点是否为图像可疑坏点,即又可以称之为得到所有的图像可疑坏点,再进一步从所有的图像可疑坏点中筛选出图像实质坏点。In this embodiment, step S03 is similar to the batch design of steps S301 and S302, that is, the execution result of step S303 is to obtain whether all target pixels are suspected bad pixels, which can also be called obtaining all suspected bad images. Point, and then further filter out the real bad pixels of the image from all the suspicious bad pixels of the image.
为实现上述实施例中的方法实施例,本申请实施例提供了一种图像处理芯片,其可以包括:控制器,所控制器用于确定目标像素点的邻域内的至少两个像素点,分别作为第一像素点以及第二像素点,所述第一像素点和第二像素点中至少其一与所述目标像素点,以及计算目标像素点、所述第一像素点以及所述第二像素点中具有相邻位置关系的每两个像素点的像素差值,分别得到第一像素差值以及第二像素差值;并根据所述第一像素差值以及所述第二像素差值,判断所述目标像素点是否为图像坏点。In order to implement the method embodiments in the above embodiments, the embodiments of the present application provide an image processing chip, which may include: a controller, and the controller is used to determine at least two pixel points in the neighborhood of the target pixel point as The first pixel point and the second pixel point, at least one of the first pixel point and the second pixel point and the target pixel point, and the calculation target pixel point, the first pixel point, and the second pixel The pixel difference values of every two pixels in the point that have an adjacent position relationship are respectively obtained as a first pixel difference value and a second pixel difference value; and according to the first pixel difference value and the second pixel difference value, It is determined whether the target pixel is a bad image.
进一步地,如图4所示,为本申请实施例四中图像处理芯片结构示意图;如图4所示,其除了包括控制器外,还包括:存储器、扫描单元以及输出单元,所述存储器用于存储像素阵列的像素值,所述扫描单元用于确定目标像素点及其邻域内的第一像素点以及第二像素点,所述输出单元用于输出所述检测结果,比如图像坏点的数量、位置,以及非图像坏点的数量、位置等等。Further, as shown in FIG. 4, it is a schematic diagram of the structure of the image processing chip in the fourth embodiment of the application; as shown in FIG. 4, in addition to the controller, it also includes a memory, a scanning unit, and an output unit. In order to store the pixel values of the pixel array, the scanning unit is used to determine the target pixel and the first pixel and the second pixel in its neighborhood, and the output unit is used to output the detection result, such as image defect Quantity, location, and the number and location of non-image dead pixels, etc.
本实施例还提供一种电子设备,其包括上述实施例中的图像处理芯片。This embodiment also provides an electronic device, which includes the image processing chip in the foregoing embodiment.
本申请实施例的电子设备以多种形式存在,包括但不限于:The electronic devices in the embodiments of this application exist in various forms, including but not limited to:
(1)移动通信设备:这类设备的特点是具备移动通信功能,并且以提供话音、数据通信为主要目标。这类终端包括:智能手机(例如iPhone)、多媒体手机、功能性手机,以及低端手机等。(1) Mobile communication equipment: This type of equipment is characterized by mobile communication functions, and its main goal is to provide voice and data communications. Such terminals include: smart phones (such as iPhone), multimedia phones, functional phones, and low-end phones.
(2)超移动个人计算机设备:这类设备属于个人计算机的范畴,有计算和处理功能,一般也具备移动上网特性。这类终端包括:PDA、MID和UMPC设备等,例如iPad。(2) Ultra-mobile personal computer equipment: This type of equipment belongs to the category of personal computers, has calculation and processing functions, and generally also has mobile Internet features. Such terminals include: PDA, MID and UMPC devices, such as iPad.
(3)便携式娱乐设备:这类设备可以显示和播放多媒体内容。该类设备包括:音频、视频播放器(例如iPod),掌上游戏机,电子书,以及智能玩具和便携式车载导航设备。(3) Portable entertainment equipment: This type of equipment can display and play multimedia content. Such devices include: audio, video players (such as iPod), handheld game consoles, e-books, as well as smart toys and portable car navigation devices.
(4)服务器:提供计算服务的设备,服务器的构成包括处理器810、硬盘、内存、系统总线等,服务器和通用的计算机架构类似,但是由于需要提供高可靠的服务,因此在处理能力、稳定性、可靠性、安全性、可扩展性、可管理性等方面要求较高。(4) Server: A device that provides computing services. The composition of a server includes a processor 810, hard disk, memory, system bus, etc. The server is similar to a general computer architecture, but because it needs to provide highly reliable services, it is High requirements in terms of performance, reliability, security, scalability, and manageability.
(5)其他具有数据交互功能的电子装置。(5) Other electronic devices with data interaction functions.
至此,已经对本主题的特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作可以按照不同的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序,以实现期望的结果。在某些实施方式中,多任务处理和并行处理可以是有利的。So far, specific embodiments of the subject matter have been described. Other embodiments are within the scope of the appended claims. In some cases, the actions recited in the claims can be performed in a different order and still achieve desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or sequential order shown in order to achieve the desired result. In certain embodiments, multitasking and parallel processing may be advantageous.
在20世纪90年代,对于一个技术的改进可以很明显地区分是硬件上的改进(例如,对二极管、晶体管、开关等电路结构的改进)还是软件上的改进(对于方法流程的改进)。然而,随着技术的发展,当今的很多方法流程的改进已经可以视为硬件电路结构的直接改进。设计人员几乎都通过将改进的方法流程编程到硬件电路中来得到相应的硬件电路结构。因此,不能说一个方法流程的改进就不能用硬件实体模块来实现。例如,可编程逻辑器件(Programmable Logic Device,PLD)(例如现场可编程门阵列(Field Programmable Gate Array,FPGA))就是这样一种集成电路,其逻辑功能由用户对器件编程来确定。由设计人员自行编程来把一个数字系统“集成”在一片PLD上,而不需要请芯片制造厂商来设计和制作专用的集成电路芯片。而且,如今,取代手工地制作集成电路芯片,这种编程也多半改用“逻辑编译器(logic compiler)”软件来实现,它与程序开发撰写时所用的软件编译器相类似,而要编译之前的原始代码也得用特定的编程语言来撰写,此称之为硬件描述语言(Hardware Description Language, HDL),而HDL也并非仅有一种,而是有许多种,如ABEL(Advanced Boolean Expression Language)、AHDL(Altera Hardware Description Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby Hardware Description Language)等,目前最普遍使用的是VHDL(Very-High-Speed Integrated Circuit Hardware Description Language)与Verilog。本领域技术人员也应该清楚,只需要将方法流程用上述几种硬件描述语言稍作逻辑编程并编程到集成电路中,就可以很容易得到实现该逻辑方法流程的硬件电路。In the 1990s, the improvement of a technology can be clearly distinguished between hardware improvements (for example, improvements in circuit structures such as diodes, transistors, switches, etc.) and software improvements (improvements in method flow). However, with the development of technology, the improvement of many methods and processes of today can be regarded as a direct improvement of the hardware circuit structure. Designers almost always get the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that the improvement of a method flow cannot be realized by hardware entity modules. For example, a programmable logic device (Programmable Logic Device, PLD) (for example, a Field Programmable Gate Array (FPGA)) is such an integrated circuit whose logic function is determined by the user's programming of the device. It is programmed by the designer to "integrate" a digital system on a PLD without requiring the chip manufacturer to design and manufacture a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly realized by "logic compiler" software, which is similar to the software compiler used in program development and writing. The original code must also be written in a specific programming language, which is called Hardware Description Language (HDL), and there is not only one type of HDL, but many types, such as ABEL (Advanced Boolean Expression Language) , AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description), etc., currently most commonly used It is VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. It should also be clear to those skilled in the art that only a little logic programming of the method flow in the above-mentioned hardware description languages and programming into an integrated circuit can easily obtain the hardware circuit that implements the logic method flow.
控制器可以按任何适当的方式实现,例如,控制器可以采取例如微处理器或处理器以及存储可由该(微)处理器执行的计算机可读程序代码(例如软件或固件)的计算机可读介质、逻辑门、开关、专用集成电路(Application Specific Integrated Circuit,ASIC)、可编程逻辑控制器和嵌入微控制器的形式,控制器的例子包括但不限于以下微控制器:ARC 625D、Atmel AT91SAM、Microchip PIC18F26K20以及Silicone Labs C8051F320,存储器控制器还可以被实现为存储器的控制逻辑的一部分。本领域技术人员也知道,除了以纯计算机可读程序代码方式实现控制器以外,完全可以通过将方法步骤进行逻辑编程来使得控制器以逻辑门、开关、专用集成电路、可编程逻辑控制器和嵌入微控制器等的形式来实现相同功能。因此这种控制器可以被认为是一种硬件部件,而对其内包括的用于实现各种功能的装置也可以视为硬件部件内的结构。或者甚至,可以将用于实现各种功能的装置视为既可以是实现方法的软件模块又可以是硬件部件内的结构。The controller can be implemented in any suitable manner. For example, the controller can take the form of, for example, a microprocessor or a processor and a computer-readable medium storing computer-readable program codes (such as software or firmware) executable by the (micro)processor. , Logic gates, switches, application specific integrated circuits (ASICs), programmable logic controllers and embedded microcontrollers. Examples of controllers include but are not limited to the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicon Labs C8051F320, the memory controller can also be implemented as a part of the memory control logic. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, it is entirely possible to program the method steps to make the controller use logic gates, switches, application specific integrated circuits, programmable logic controllers and embedded The same function can be realized in the form of a microcontroller, etc. Therefore, such a controller can be regarded as a hardware component, and the devices included in it for implementing various functions can also be regarded as a structure within the hardware component. Or even, the device for realizing various functions can be regarded as both a software module for realizing the method and a structure within a hardware component.
上述实施例阐明的系统、装置、模块或单元,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机。具体的,计算机例如可以为个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、电子邮件设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任何设备的组合。The systems, devices, modules, or units illustrated in the above embodiments may be specifically implemented by computer chips or entities, or implemented by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cell phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or Any combination of these devices.
为了描述的方便,描述以上装置时以功能分为各种单元分别描述。当然,在实施本申请时可以把各单元的功能在同一个或多个软件和/或硬件中实现。For the convenience of description, when describing the above device, the functions are divided into various units and described separately. Of course, when implementing this application, the functions of each unit can be implemented in the same one or more software and/or hardware.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包 含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention can be in the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowcharts and/or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and/or block in the flowchart and/or block diagram, and the combination of processes and/or blocks in the flowchart and/or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing equipment to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing equipment are generated It is a device that realizes the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device. The device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so as to execute on the computer or other programmable equipment. The instructions provide steps for implementing functions specified in a flow or multiple flows in the flowchart and/or a block or multiple blocks in the block diagram.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, product or equipment including a series of elements not only includes those elements, but also includes Other elements that are not explicitly listed, or include elements inherent to this process, method, commodity, or equipment. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, commodity, or equipment that includes the element.
本领域技术人员应明白,本申请的实施例可提供为方法、系统或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, this application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
本申请可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定事务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可以在分布式计算环境中实践本申请,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来 执行事务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。This application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific transactions or implement specific abstract data types. The present application can also be practiced in distributed computing environments. In these distributed computing environments, remote processing devices connected through a communication network execute transactions. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
以上所述仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。The above descriptions are only examples of this application and are not used to limit this application. For those skilled in the art, this application can have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application shall be included in the scope of the claims of this application.

Claims (10)

  1. 一种图像坏点的检测方法,其特征在于,包括:A method for detecting dead pixels in an image, which is characterized in that it includes:
    确定目标像素点的邻域内的至少两个像素点,分别作为第一像素点以及第二像素点,所述第一像素点和第二像素点中至少其一与所述目标像素点相邻;Determining at least two pixels in the neighborhood of the target pixel as a first pixel and a second pixel respectively, and at least one of the first pixel and the second pixel is adjacent to the target pixel;
    计算目标像素点、所述第一像素点、所述第二像素点中具有相邻位置关系的每两个像素点的像素差值,分别得到第一像素差值以及第二像素差值;Calculating the pixel difference value of every two pixels having an adjacent position relationship among the target pixel point, the first pixel point, and the second pixel point to obtain the first pixel difference value and the second pixel difference value respectively;
    根据所述第一像素差值以及所述第二像素差值,判断所述目标像素点是否为图像坏点。According to the first pixel difference value and the second pixel difference value, it is determined whether the target pixel is a bad image.
  2. 根据权利要求1所述的方法,其特征在于,还包括:判断所述目标像素点是否位于像素阵列的边缘,以根据所述判断的结果确定目标像素点邻域内的至少两个像素点。The method according to claim 1, further comprising: determining whether the target pixel is located at the edge of the pixel array, so as to determine at least two pixels in the neighborhood of the target pixel according to the result of the determination.
  3. 根据权利要求1所述的方法,其特征在于,若所述目标像素点位于像素阵列的左边缘,则所述邻域为右邻域、上邻域、下邻域中的至少一种;若所述目标像素点位于像素阵列的右边缘,则所述邻域为左邻域、上邻域、下邻域中的至少一种;若所述目标像素点位于像素阵列的上边缘,则所述邻域为下邻域、左邻域、右邻域中的至少一种;若所述目标像素点位于像素阵列的下边缘,则所述邻域为上领域、左邻域、右邻域中的至少一种。The method according to claim 1, wherein if the target pixel is located at the left edge of the pixel array, the neighborhood is at least one of a right neighborhood, an upper neighborhood, and a lower neighborhood; if If the target pixel is located at the right edge of the pixel array, the neighborhood is at least one of a left neighborhood, an upper neighborhood, and a lower neighborhood; if the target pixel is located at the upper edge of the pixel array, then The neighborhood is at least one of a lower neighborhood, a left neighborhood, and a right neighborhood; if the target pixel is located at the lower edge of the pixel array, the neighborhood is an upper area, a left neighborhood, and a right neighborhood At least one of them.
  4. 根据权利要求1所述的方法,其特征在于,计算所述目标像素点、所述第一像素点、所述第二像素点中具有相邻位置关系的每两个像素点的像素差值,分别得到第一像素差值以及第二像素差值,包括:计算所述目标像素点与所述第一像素点的像素差值得到第一像素差值;计算第一像素点与所述第二像素点的像素差值得到第二像素差值。The method according to claim 1, wherein the pixel difference value of every two pixels having an adjacent position relationship among the target pixel, the first pixel, and the second pixel is calculated, Obtaining the first pixel difference value and the second pixel difference value respectively includes: calculating the pixel difference value between the target pixel point and the first pixel point to obtain the first pixel difference value; calculating the first pixel point and the second pixel point The pixel difference value of the pixel point obtains the second pixel difference value.
  5. 根据权利要求1所述的方法,其特征在于,计算所述目标像素点、所述第一像素点、所述第二像素点中具有相邻位置关系的每两个像素点的像素差值,分别得到第一像素差值以及第二像素差值,包括:计算所述目标像素点与所述第一像素点的像素差值得到第一像素差值;计算第二像素点与所述目标像素点的像素差值得到第二像素差值。The method according to claim 1, wherein the pixel difference value of every two pixels having an adjacent position relationship among the target pixel, the first pixel, and the second pixel is calculated, Obtaining the first pixel difference and the second pixel difference respectively includes: calculating the pixel difference between the target pixel and the first pixel to obtain the first pixel difference; calculating the second pixel and the target pixel The pixel difference value of the point obtains the second pixel difference value.
  6. 根据权利要求1所述的方法,其特征在于,确定目标像素点的邻域内的第一像素点以及第二像素点,包括:确定目标像素点的若干个邻域内的第一像素点以及第二像素点,以针对每个邻域,计算所述目标像素点、所述第一像素点、所述第二像素点中具有相邻位置关系的每两个像素点的像素差值,分别得 到第一像素差值以及第二像素差值;The method according to claim 1, wherein the determining the first pixel and the second pixel in the neighborhood of the target pixel comprises: determining the first pixel and the second pixel in several neighborhoods of the target pixel Pixels, for each neighborhood, calculate the pixel difference of every two pixels that have an adjacent position relationship among the target pixel, the first pixel, and the second pixel to obtain the first A pixel difference value and a second pixel difference value;
    对应地,根据所述第一像素差值以及所述第二像素差值,判断所述目标像素点是否为图像坏点,包括:根据其中至少一邻域对应的第一像素差值以及第二像素差值,初步判断所述目标像素点是否为图像可疑坏点;根据其中剩余邻域中的至少一邻域对应的第一像素差值以及第二像素差值,再次判断所述可疑图像坏点是否为图像实质坏点。Correspondingly, judging whether the target pixel is a bad image according to the first pixel difference value and the second pixel difference value includes: according to the first pixel difference value and the second pixel difference value corresponding to at least one of the neighborhoods. The pixel difference value is used to preliminarily determine whether the target pixel is a suspicious bad image; according to the first pixel difference value and the second pixel difference value corresponding to at least one of the remaining neighborhoods, the suspicious image is judged again as bad Whether the dots are actually dead pixels of the image.
  7. 根据权利要求1所述的方法,确定目标像素点的邻域内的第一像素点以及第二像素点,包括:确定目标像素点的若干个邻域内的第一像素点以及第二像素点,以针对每个邻域,计算所述目标像素点、所述第一像素点、所述第二像素点中具有相邻位置关系的每两个像素点的像素差值,分别得到第一像素差值以及第二像素差值;The method according to claim 1, determining the first pixel and the second pixel in the neighborhood of the target pixel includes: determining the first pixel and the second pixel in several neighborhoods of the target pixel to For each neighborhood, calculate the pixel difference of every two pixels that have an adjacent position relationship among the target pixel, the first pixel, and the second pixel to obtain the first pixel difference respectively And the second pixel difference;
    对应地,根据所述第一像素差值以及所述第二像素差值,判断所述目标像素点是否为图像坏点,包括:根据其中至少一邻域对应的第一像素差值以及第二像素差值,判断所述目标像素点是否为图像可疑坏点;根据其中剩余邻域中的至少一邻域对应的第一像素差值以及第二像素差值,判断所述目标像素点是否为图像可疑坏点;若所述目标像素点被判定为图像可疑坏点的次数大于等于两次,则判定所述目标像素点为图像实质坏点。Correspondingly, judging whether the target pixel is a bad image according to the first pixel difference value and the second pixel difference value includes: according to the first pixel difference value and the second pixel difference value corresponding to at least one of the neighborhoods. Pixel difference value, to determine whether the target pixel is a suspicious bad image; according to the first pixel difference value and the second pixel difference value corresponding to at least one of the remaining neighborhoods, determine whether the target pixel point is Suspicious dead pixels in the image; if the number of times the target pixel is determined to be a suspicious dead pixel in the image is greater than or equal to twice, it is determined that the target pixel is a substantial dead pixel in the image.
  8. 根据权利要求1所述的方法,其特征在于,根据所述第一像素差值以及所述第二像素差值,判断所述目标像素点是否为图像坏点,包括:确定所述第一像素差值以及所述第二像素差值之间的像素变化率;根据所述像素变化率以及像素变化率阈值,判断所述目标像素点是否为图像坏点。The method according to claim 1, wherein determining whether the target pixel is a bad image based on the first pixel difference value and the second pixel difference value comprises: determining the first pixel The pixel change rate between the difference value and the second pixel difference value; according to the pixel change rate and the pixel change rate threshold, it is determined whether the target pixel is an image dead pixel.
  9. 一种图像处理芯片,其特征在于,包括:控制器,所控制器用于确定目标像素点的邻域内的至少两个像素点,分别作为第一像素点以及第二像素点,所述第一像素点和第二像素点中至少其一与所述目标像素点相邻,以及计算目标像素点、所述第一像素点以及所述第二像素点中具有相邻位置关系的每两个像素点的像素差值,分别得到第一像素差值以及第二像素差值;并根据所述第一像素差值以及所述第二像素差值,判断所述目标像素点是否为图像坏点。An image processing chip, characterized by comprising: a controller, the controller is used to determine at least two pixels in the neighborhood of a target pixel as a first pixel and a second pixel, the first pixel At least one of the dot and the second pixel is adjacent to the target pixel, and every two pixels of the target pixel, the first pixel, and the second pixel that have an adjacent position relationship are calculated The first pixel difference value and the second pixel difference value are obtained respectively; and according to the first pixel difference value and the second pixel difference value, it is determined whether the target pixel is a bad image.
  10. 一种电子设备,其特征在于,包括权利要求11图像处理芯片。An electronic device, characterized by comprising the image processing chip of claim 11.
PCT/CN2019/077989 2019-03-13 2019-03-13 Defective pixel detection method, image processing chip, and electronic device WO2020181522A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2019/077989 WO2020181522A1 (en) 2019-03-13 2019-03-13 Defective pixel detection method, image processing chip, and electronic device
CN201980000335.4A CN112020729A (en) 2019-03-13 2019-03-13 Image dead pixel detection method, image processing chip and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/077989 WO2020181522A1 (en) 2019-03-13 2019-03-13 Defective pixel detection method, image processing chip, and electronic device

Publications (1)

Publication Number Publication Date
WO2020181522A1 true WO2020181522A1 (en) 2020-09-17

Family

ID=72427760

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/077989 WO2020181522A1 (en) 2019-03-13 2019-03-13 Defective pixel detection method, image processing chip, and electronic device

Country Status (2)

Country Link
CN (1) CN112020729A (en)
WO (1) WO2020181522A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113674238A (en) * 2021-08-16 2021-11-19 浙江大华技术股份有限公司 Dead pixel detection method and device, electronic equipment and storage medium
CN113873229A (en) * 2021-09-26 2021-12-31 江西盛泰精密光学有限公司 Image dead pixel detection method, system and device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112637587B (en) * 2020-12-22 2022-04-01 维沃移动通信有限公司 Dead pixel detection method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0723297A (en) * 1993-06-29 1995-01-24 Sony Corp Defect detector of solid-state image pickup element
US20090303357A1 (en) * 2004-03-30 2009-12-10 Canon Kabushiki Kaisha Method and apparatus for correcting a defective pixel
CN103888690A (en) * 2012-12-19 2014-06-25 三星泰科威株式会社 Device and method for testing defective pixel
CN106205437A (en) * 2015-05-05 2016-12-07 联想(北京)有限公司 A kind of dead pixel detection method, electronic equipment and device
CN108198150A (en) * 2018-01-30 2018-06-22 努比亚技术有限公司 A kind of removing method of dead pixel points of images, terminal and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0723297A (en) * 1993-06-29 1995-01-24 Sony Corp Defect detector of solid-state image pickup element
US20090303357A1 (en) * 2004-03-30 2009-12-10 Canon Kabushiki Kaisha Method and apparatus for correcting a defective pixel
CN103888690A (en) * 2012-12-19 2014-06-25 三星泰科威株式会社 Device and method for testing defective pixel
CN106205437A (en) * 2015-05-05 2016-12-07 联想(北京)有限公司 A kind of dead pixel detection method, electronic equipment and device
CN108198150A (en) * 2018-01-30 2018-06-22 努比亚技术有限公司 A kind of removing method of dead pixel points of images, terminal and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113674238A (en) * 2021-08-16 2021-11-19 浙江大华技术股份有限公司 Dead pixel detection method and device, electronic equipment and storage medium
CN113674238B (en) * 2021-08-16 2024-06-11 浙江大华技术股份有限公司 Method and device for detecting dead pixel, electronic equipment and storage medium
CN113873229A (en) * 2021-09-26 2021-12-31 江西盛泰精密光学有限公司 Image dead pixel detection method, system and device
CN113873229B (en) * 2021-09-26 2024-02-27 江西盛泰精密光学有限公司 Image dead pixel detection method, system and device

Also Published As

Publication number Publication date
CN112020729A (en) 2020-12-01

Similar Documents

Publication Publication Date Title
TWI716008B (en) Face recognition method and device
WO2020181522A1 (en) Defective pixel detection method, image processing chip, and electronic device
CN107274442B (en) Image identification method and device
CN105227838B (en) A kind of image processing method and mobile terminal
KR102316230B1 (en) Image processing method and device
CN105308618B (en) Face recognition by means of parallel detection and tracking and/or grouped feature motion shift tracking
WO2020220809A1 (en) Action recognition method and device for target object, and electronic apparatus
CN110162089B (en) Unmanned driving simulation method and device
CN105022498A (en) Electronic apparatus and method thereof
JP7291168B2 (en) Video frame processing method and apparatus
WO2021046793A1 (en) Image acquisition method and apparatus, and storage medium
US11587240B2 (en) Moving body detecting device, moving body detecting method, and moving body detecting program
CN109743566A (en) A kind of method and apparatus of the video format of VR for identification
CN112584015A (en) Object detection method, device, storage medium and electronic equipment
WO2023179342A1 (en) Relocalization method and related device
CN107818584B (en) Method and device for determining finger position information of user, projector and projection system
CN114863206A (en) Model training method, target detection method and device
US9479716B2 (en) Image processing method, electronic device, electronic device readable storage medium and program applied in electronic device
TWI719591B (en) Method and computer system for object tracking
CN114549927B (en) Feature detection network training, enhanced actual virtual-actual registration tracking and shielding processing method
CN108449551B (en) Camera configuration method and device
CN111860285B (en) User registration method, device, electronic equipment and storage medium
CN110503109B (en) Image feature extraction method and device, and image processing method and device
CN116358533B (en) Loop detection data processing method and device, storage medium and vehicle
CN107507224B (en) Moving object detection method, device, medium and computing device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19919222

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19919222

Country of ref document: EP

Kind code of ref document: A1