CN108198150B - Method for eliminating image dead pixel, terminal and storage medium - Google Patents

Method for eliminating image dead pixel, terminal and storage medium Download PDF

Info

Publication number
CN108198150B
CN108198150B CN201810089468.0A CN201810089468A CN108198150B CN 108198150 B CN108198150 B CN 108198150B CN 201810089468 A CN201810089468 A CN 201810089468A CN 108198150 B CN108198150 B CN 108198150B
Authority
CN
China
Prior art keywords
pixel
target pixel
pixel point
value
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810089468.0A
Other languages
Chinese (zh)
Other versions
CN108198150A (en
Inventor
张文婷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201810089468.0A priority Critical patent/CN108198150B/en
Publication of CN108198150A publication Critical patent/CN108198150A/en
Application granted granted Critical
Publication of CN108198150B publication Critical patent/CN108198150B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • G06T5/70
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20024Filtering details
    • G06T2207/20032Median filtering

Abstract

The invention discloses a method for eliminating image dead pixels, which comprises the following steps: establishing a pixel point matrix by taking a target pixel point as a center; determining a strategy according to a pixel point matrix and a preset detection condition, and determining a bad point detection condition; the preset detection condition determining strategy is used for determining a critical value corresponding to the pixel value of the target pixel point based on the pixel point matrix; judging whether the target pixel point is a dead pixel or not according to the pixel value of the target pixel point and the dead pixel detection condition; when the target pixel point is judged to be a dead point, determining a target pixel value of the target pixel point according to the position of the target pixel point, the pixel point matrix and a preset target pixel value calculation strategy; and updating the pixel value of the target pixel point to be the target pixel value. The invention also provides a terminal and a computer readable storage medium, by implementing the scheme, dead pixels randomly generated by the external environment in the image are eliminated, and the display effect of the image is improved.

Description

Method for eliminating image dead pixel, terminal and storage medium
Technical Field
The present invention relates to the field of image processing technologies, and in particular, to a method, a terminal, and a storage medium for eliminating an image dead pixel.
Background
With the rapid development of electronic technology, the definition of images acquired by terminals with shooting functions such as mobile phones and tablet computers is higher and higher, and higher visual experience is brought to users.
In the prior art, due to a manufacturing process of an image sensor configured on a terminal, an acquired image usually has a dead pixel, that is, some pixel points in the image do not change along with sensitization, and always present a color. For this problem, in general, a static dead pixel elimination method is adopted, in the production process of the image sensor, existing dead pixel information, such as dead pixel coordinates, is detected, an elimination method corresponding to the dead pixel is set, the dead pixel information is stored, and then the dead pixel information can be directly read to eliminate the image dead pixel.
However, the static dead pixel elimination method can only eliminate dead pixels at fixed positions in the acquired image, and in the actual process, the acquired image generates dead pixels randomly due to external environments such as light during the process of acquiring the image by the image sensor, so that even if the static dead pixel elimination method is adopted, the randomly generated dead pixels cannot be completely eliminated, and the display effect of the image is poor.
Disclosure of Invention
In order to solve the above problem, embodiments of the present invention provide a method, a terminal, and a storage medium for eliminating dead pixels of an image, where the terminal can detect a dead pixel randomly generated in the image due to an external environment, and perform corresponding dead pixel elimination according to a location of the dead pixel, so as to improve a display effect of the image.
The technical scheme of the invention is realized as follows:
the embodiment of the invention provides a method for eliminating image dead pixels, which comprises the following steps:
establishing a pixel point matrix by taking a target pixel point as a center;
determining a strategy according to the pixel point matrix and a preset detection condition, and determining a bad point detection condition; the preset detection condition determining strategy is used for determining a critical value corresponding to the pixel value of the target pixel point based on the pixel point matrix;
judging whether the target pixel point is a dead pixel or not according to the pixel value of the target pixel point and the dead pixel detection condition;
when the target pixel point is judged to be a dead pixel, determining a target pixel value of the target pixel point according to the position of the target pixel point, the pixel point matrix and a preset target pixel value calculation strategy;
and updating the pixel value of the target pixel point to be the target pixel value.
In the above scheme, the determining a policy according to the pixel point matrix and a preset detection condition and determining a dead pixel detection condition include:
in the pixel point matrix, determining a pixel point with a second largest pixel value as a first pixel point, determining a pixel point with a second smallest pixel value as a second pixel point, and determining a pixel point which is not the first pixel point, is not the second pixel point, and is not the target pixel point as a third pixel point;
determining the average value of the pixel values of the third pixel points as an average pixel value;
determining the difference between the pixel value of the first pixel point and the pixel value of the second pixel point as a detection parameter;
and determining the sum of the average pixel value and the detection parameter as a maximum critical value, and determining the difference between the average pixel value and the detection parameter as a minimum critical value.
In the foregoing solution, the determining whether the target pixel is a dead pixel according to the pixel value of the target pixel and the dead pixel detection condition includes:
when the pixel value of the target pixel point is greater than or equal to the minimum critical value and less than or equal to the maximum critical value, judging that the target pixel point is a non-dead pixel;
and when the pixel value of the target pixel point is smaller than the minimum critical value or the pixel value of the target pixel point is larger than the maximum critical value, judging that the target pixel point is a dead pixel.
In the above scheme, the determining a target pixel value of the target pixel according to the position of the target pixel, the pixel matrix, and a preset target pixel value calculation policy includes:
judging whether the target pixel point is in an edge position or not according to a preset edge detection method;
when the target pixel point is at the edge position, determining a target pixel value of the target pixel point according to a first preset target pixel value calculation method;
and when the target pixel point is at a non-edge position, determining the target pixel value of the target pixel point according to a second preset target pixel value calculation method.
In the foregoing solution, when the target pixel point is located at the edge position, determining the target pixel value of the target pixel point according to a first preset target pixel value calculation method includes:
determining adjacent pixel points of the target pixel points in the pixel point matrix according to the edge direction of the target pixel points;
and determining the average value of the pixel values of the adjacent pixel points as the target pixel value.
In the foregoing solution, the determining a target pixel value of the target pixel according to the pixel matrix and according to a second preset target pixel value calculation method includes:
determining the pixel points in the pixel point matrix which are not the target pixel points as surrounding pixel points;
and determining the average value of the pixel values of the surrounding pixel points as the target pixel value.
An embodiment of the present invention further provides a terminal, where the terminal includes: a processor, a memory, and a communication bus;
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is used for executing the elimination program of the image dead pixel stored in the memory so as to realize the following steps:
establishing a pixel point matrix by taking a target pixel point as a center; determining a strategy according to the pixel point matrix and a preset detection condition, and determining a bad point detection condition; the preset detection condition determining strategy is used for determining a critical value corresponding to the pixel value of the target pixel point based on the pixel point matrix; judging whether the target pixel point is a dead pixel or not according to the pixel value of the target pixel point and the dead pixel detection condition; when the target pixel point is judged to be a dead pixel, determining a target pixel value of the target pixel point according to the position of the target pixel point, the pixel point matrix and a preset target pixel value calculation strategy; and updating the pixel value of the target pixel point to be the target pixel value.
In the above terminal, the processor is specifically configured to execute the elimination program of the image dead pixel, so as to implement the following steps:
in the pixel point matrix, determining a pixel point with a second largest pixel value as a first pixel point, determining a pixel point with a second smallest pixel value as a second pixel point, and determining a pixel point which is not the first pixel point, is not the second pixel point, and is not the target pixel point as a third pixel point; determining the average value of the pixel values of the third pixel points as an average pixel value; determining the difference between the pixel value of the first pixel point and the pixel value of the second pixel point as a detection parameter; determining the sum of the average pixel value and the detection parameter as a maximum critical value, and determining the difference between the average pixel value and the detection parameter as a minimum critical value;
wherein, the determining whether the target pixel point is a dead pixel according to the pixel value of the target pixel point and the dead pixel detection condition includes: when the pixel value of the target pixel point is greater than or equal to the minimum critical value and less than or equal to the maximum critical value, judging that the target pixel point is a non-dead pixel; and when the pixel value of the target pixel point is smaller than the minimum critical value or the pixel value of the target pixel point is larger than the maximum critical value, judging that the target pixel point is a dead pixel.
In the above terminal, the processor is specifically configured to execute the elimination program of the image dead pixel, so as to implement the following steps:
judging whether the target pixel point is in an edge position or not according to a preset edge detection method; when the target pixel point is at the edge position, determining a target pixel value of the target pixel point according to a first preset target pixel value calculation method; when the target pixel point is at a non-edge position, determining a target pixel value of the target pixel point according to a second preset target pixel value calculation method;
when the target pixel point is located at the edge position, determining the target pixel value of the target pixel point according to a first preset target pixel value calculation method includes: determining adjacent pixel points of the target pixel points in the pixel point matrix according to the edge direction of the target pixel points; determining the average value of the pixel values of the adjacent pixel points as the target pixel value; determining a target pixel value of the target pixel point according to the pixel point matrix and a second preset target pixel value calculation method, including: determining the pixel points in the pixel point matrix which are not the target pixel points as surrounding pixel points; and determining the average value of the pixel values of the surrounding pixel points as the target pixel value.
An embodiment of the present invention further provides a computer-readable storage medium, where one or more programs are stored, and the one or more programs may be executed by one or more processors to implement the method for eliminating the image dead pixel.
Therefore, in the technical scheme of the embodiment of the invention, the terminal takes the target pixel point as the center to establish the pixel point matrix; determining a strategy according to a pixel point matrix and a preset detection condition, and determining a bad point detection condition; the preset detection condition determining strategy is used for determining a critical value corresponding to the pixel value of the target pixel point based on the pixel point matrix; judging whether the target pixel point is a dead pixel or not according to the pixel value of the target pixel point and the dead pixel detection condition; when the target pixel point is judged to be a dead point, determining a target pixel value of the target pixel point according to the position of the target pixel point, the pixel point matrix and a preset target pixel value calculation strategy; and updating the pixel value of the target pixel point to be the target pixel value. In the prior art, the terminal can only eliminate the dead pixel corresponding to the pre-stored fixed position according to the static dead pixel elimination method, but in the technical scheme of the embodiment of the invention, the terminal can detect the dead pixel randomly generated in the image due to the external environment and carry out corresponding dead pixel elimination according to the position of the dead pixel, thereby improving the display effect of the image.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of an alternative mobile terminal for implementing various embodiments of the present invention;
fig. 2 is a diagram of a communication network system architecture according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of a method for eliminating an image dead pixel according to an embodiment of the present invention;
fig. 4 is a schematic diagram of an exemplary pixel matrix according to an embodiment of the present invention;
fig. 5 is a schematic flowchart of determining a bad point detection condition according to an embodiment of the present invention;
fig. 6 is a schematic diagram of an exemplary method for determining adjacent pixels according to an embodiment of the present invention;
FIG. 7 is a diagram illustrating an exemplary pixel value update according to an embodiment of the present invention;
fig. 8 is a schematic diagram of a terminal structure according to an embodiment of the present invention.
Detailed Description
It should be understood that the embodiments described herein are only for explaining the technical solutions of the present invention, and are not intended to limit the scope of the present invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in themselves. Thus, "module" and "component" may be used in a mixture.
The terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a fixed terminal such as a Digital TV, a desktop computer, and the like.
The following description will be given by way of example of a mobile terminal, and it will be understood by those skilled in the art that the construction according to the embodiment of the present invention can be applied to a fixed type terminal, in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of an optional mobile terminal for implementing various embodiments of the present invention, the mobile terminal 100 may include: radio Frequency (RF) unit 101, Wi-Fi module 102, audio output unit 103, audio/video (a/V) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access 2000(Code Division Multiple Access 2000, CDMA2000), Wideband Code Division Multiple Access (WCDMA), Time Division-Synchronous Code Division Multiple Access (TD-SCDMA), Frequency Division duplex Long Term Evolution (FDD-LTE), and Time Division duplex Long Term Evolution (TDD-LTE), etc.
Wi-Fi belongs to a short-distance wireless transmission technology, and a mobile terminal can help a user to receive and send emails, browse webpages, access streaming media and the like through a Wi-Fi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the Wi-Fi module 102, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the Wi-Fi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphics processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the Wi-Fi module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation or suppression algorithms to cancel or suppress noise or interference generated during reception and transmission of audio signals.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited to these specific examples.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
In order to facilitate understanding of the embodiments of the present invention, a communication network system on which the mobile terminal of the present invention is based is described below.
Referring to fig. 2, fig. 2 is an architecture diagram of a communication Network system according to an embodiment of the present invention, where the communication Network system is an LTE system of a universal mobile telecommunications technology, and the LTE system includes User Equipment (UE) 201, Evolved UMTS Terrestrial Radio Access Network (E-UTRAN) 202, Evolved Packet Core Network (EPC) 203, and IP service 204 of an operator, which are in communication connection in sequence.
Specifically, the UE201 may be the terminal 100 described above, and is not described herein again.
The E-UTRAN202 includes eNodeB2021 and other eNodeBs 2022, among others. Among them, the eNodeB2021 may be connected with other eNodeB2022 through backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide the UE201 access to the EPC 203.
The EPC203 may include a Mobility Management Entity (MME) 2031, a Home Subscriber Server (HSS) 2032, other MMEs 2033, a Serving Gateway (SGW) 2034, a packet data network gateway (PDN Gate Way, PGW)2035, and a Policy and Charging Rules Function (PCRF) 2036, and the like. The MME2031 is a control node that handles signaling between the UE201 and the EPC203, and provides bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location register (not shown) and holds subscriber specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034, PGW2035 may provide IP address assignment for UE201 and other functions, and PCRF2036 is a policy and charging control policy decision point for traffic data flow and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
The IP services 204 may include the internet, intranets, IP Multimedia Subsystem (IMS) or other IP services, and the like.
Although the LTE system is described as an example, it should be understood by those skilled in the art that the present invention is not limited to the LTE system, but may also be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the above mobile terminal hardware structure and communication network system, the present invention provides various embodiments of the method.
Example one
An embodiment of the present invention provides a method for eliminating an image dead pixel, and fig. 3 is a flowchart illustrating the method for eliminating an image dead pixel according to the embodiment of the present invention. As shown in fig. 3, the method mainly comprises the following steps:
s301, taking the target pixel point as a center, and establishing a pixel point matrix.
In the embodiment of the invention, the terminal takes the target pixel point as the center and establishes the corresponding pixel point matrix. Wherein, the target pixel point is any pixel point in the image, namely the pixel point needing to carry out dead pixel detection,
it should be noted that, in the embodiment of the present invention, the terminal uses the target pixel point as a center, and in the process of establishing the pixel point matrix, the number of rows and the number of columns of the determined pixel point matrix may be preset on the terminal by a user, and the specific pixel point matrix is not limited in the embodiment of the present invention.
Optionally, in the embodiment of the present invention, the terminal may establish a 3 × 3 pixel matrix, a 5 × 5 pixel matrix, and the like with the target pixel as a center.
Fig. 4 is a schematic diagram of an exemplary pixel matrix according to an embodiment of the present invention. As shown in fig. 4, the 3 × 3 pixel matrix includes 9 pixels, where the pixel G5 is a target pixel, that is, a pixel that needs to perform dead pixel detection.
It can be understood that, in the prior art, the dead pixel information in the image sensor is stored in advance mainly by a static dead pixel elimination method for eliminating the dead pixel of the image, that is, a corresponding dead pixel elimination method is set for the position of the image sensor, which is a component having a defect. In the embodiment of the invention, the dead pixel in the image is eliminated by the terminal, and the dead pixel at the fixed position can be eliminated and the dead pixel randomly generated in the image acquisition process can be eliminated aiming at the image, so that the display effect of the image is improved.
S302, determining a strategy according to a pixel point matrix and a preset detection condition, and determining a dead pixel detection condition; the preset detection condition determining strategy is used for determining a critical value corresponding to the pixel value of the target pixel point based on the pixel point matrix.
In the embodiment of the invention, after the terminal establishes the pixel point matrix by taking the target pixel point as the center, the strategy is determined according to the established pixel point matrix and the preset detection condition, and the bad point detection condition is determined.
It should be noted that, in the embodiment of the present invention, the preset detection condition determining policy is used to determine a critical value corresponding to a pixel value of the target pixel based on the pixel matrix, and the dead pixel detection condition is used to detect whether the target pixel is a dead pixel.
Specifically, in the embodiment of the present invention, fig. 5 is a schematic flowchart of determining a dead pixel detection condition according to the embodiment of the present invention. As shown in fig. 5, the terminal determines a policy according to a preset detection condition and a dead pixel detection condition according to a pixel matrix, and mainly includes the following steps:
s501, in the pixel point matrix, determining a pixel point with the second largest pixel value as a first pixel point, determining a pixel point with the second smallest pixel value as a second pixel point, and determining pixel points which are not the first pixel point, the second pixel point and a non-target pixel point as a third pixel point.
In the embodiment of the invention, after the terminal establishes the pixel point matrix, the pixel values are sequenced in the pixel point matrix, so that the pixel point with the second largest pixel value is determined as the first pixel point, the pixel point with the second smallest pixel value is determined as the second pixel point, but the pixel points other than the first pixel point, the non-second pixel point and the non-target pixel point are determined as the third pixel point.
It should be noted that, in the embodiment of the present invention, the target pixel may also be the first pixel or the second pixel.
Illustratively, the pixel matrix established by the terminal is shown in fig. 4. If the pixel point G2 is the pixel point with the second largest pixel value, the terminal determines the pixel point G2 as the first pixel point, and if the pixel point G6 is the pixel point with the second smallest pixel value, the terminal determines the pixel point G6 as the second pixel point. Since the pixel matrix is determined by taking the target pixel as the center, that is, the target pixel is the pixel G5, the terminal determines the pixel G1, the pixel G3, the pixel G4, the pixel G7, the pixel G8 and the pixel G9 as the third pixel.
S502, determining the average value of the pixel values of the third pixel points as an average pixel value.
In the embodiment of the invention, after the terminal determines the first pixel point, the second pixel point and the third pixel point in the pixel point matrix, the average pixel value is determined according to the pixel value of the third pixel point.
Illustratively, the pixel matrix established by the terminal is shown in fig. 4. The pixel point G1, the pixel point G3, the pixel point G4, the pixel point G7, the pixel point G8 and the pixel point G9 are third pixel points. Therefore, the terminal calculates the average value of the pixel values of the 6 pixels, and determines the average pixel value. That is, the average pixel value is (G1+ G3+ G4+ G7+ G8+ G9)/6, the terminal sums up the pixel values of the 6 pixels, and then divides the sum by 6, and the obtained pixel value is the average pixel value.
It can be understood that, in the embodiment of the present invention, the average pixel value determined by the terminal is an average value of the pixel values of the third pixel points, that is, the average value of the pixel values of the pixel points after the first pixel point, the second pixel point and the target pixel point are removed from the pixel point matrix, and the pixel point with the second largest pixel point, the pixel point with the second smallest pixel point and the target pixel point are removed. The target pixel point is a pixel point which needs to be detected by the terminal, namely a detection object, so that the first pixel point and the second pixel point are eliminated in the calculation process of the average pixel value, but the pixel point with the maximum pixel value and the pixel point with the minimum pixel value are not eliminated, and the probability that the terminal detects a dead pixel can be improved because the first pixel point and the second pixel point are eliminated by the terminal in comparison with the eliminated pixel point with the maximum pixel value and the minimum pixel value.
S503, determining the difference between the pixel value of the first pixel and the pixel value of the second pixel as a detection parameter.
In the embodiment of the present invention, after determining the average pixel value, the terminal further calculates a difference between the pixel value of the first pixel and the pixel value of the second pixel, and determines the pixel value difference as the detection parameter.
Illustratively, the pixel matrix established by the terminal is shown in fig. 4. The terminal determines that the pixel G2 is a first pixel and the pixel G6 is a second pixel. Therefore, the terminal calculates a difference between the pixel value of the pixel point G2 and the pixel value of the pixel point G6, and determines the difference as a detection parameter.
S504, the sum of the average pixel value and the detection parameter is determined as a maximum critical value, and the difference between the average pixel value and the detection parameter is determined as a minimum critical value.
In the embodiment of the present invention, after determining the average pixel value and the detection parameter, the terminal may determine the dead pixel detection condition according to the average pixel value and the detection parameter.
Specifically, in the embodiment of the present invention, the terminal determines the sum of the average pixel value and the detection parameter as the maximum threshold, and determines the difference between the average pixel value and the detection parameter as the minimum threshold. The terminal can detect the dead pixel according to the maximum critical value and the minimum critical value and judge whether the target pixel point is the dead pixel.
Illustratively, the average pixel value determined by the terminal is a, and the detection parameter is B. The terminal determines the sum of the average pixel value and the detection parameter, i.e., A + B, as a maximum threshold value and determines the difference between the average pixel value and the detection parameter, i.e., A-B, as a minimum threshold value.
It can be understood that, in the embodiment of the present invention, the terminal may determine the dead pixel detection condition for detecting whether the target pixel point is a dead pixel by performing the steps S501 to S504.
S303, judging whether the target pixel point is a dead pixel or not according to the pixel value of the target pixel point and the dead pixel detection condition.
In the embodiment of the invention, after the dead pixel detection condition is determined, the terminal can detect the pixel value of the target pixel point according to the dead pixel detection condition, so as to judge whether the target pixel point is a dead pixel.
Specifically, in the embodiment of the present invention, when the pixel value of the target pixel is greater than or equal to the minimum critical value and less than or equal to the maximum critical value, the terminal determines that the target pixel is a non-defective pixel. And when the pixel value of the target pixel point is smaller than the minimum critical value or the pixel value of the target pixel point is larger than the maximum critical value, the terminal judges that the target pixel point is a dead pixel.
Illustratively, the minimum critical value determined by the terminal is C, the maximum critical value is D, and the pixel value of the target pixel point is M. If M is larger than or equal to C and smaller than or equal to D, the terminal judges that the target pixel point is a non-dead pixel, and if M is smaller than C or M is larger than D, the terminal judges that the target pixel point is a dead pixel.
S304, when the target pixel point is judged to be a dead pixel, determining a target pixel value of the target pixel point according to the position of the target pixel point, the pixel point matrix and a preset target pixel value calculation strategy.
In the embodiment of the invention, after the terminal detects the dead pixel of the target pixel point, when the target pixel point is judged to be the dead pixel, the target pixel value of the target pixel point is determined according to the position of the target pixel point, the pixel point matrix and the preset target pixel value calculation strategy.
It can be understood that, in the embodiment of the present invention, after performing dead pixel detection on the target pixel, when it is determined that the target pixel is a non-dead pixel, that is, the pixel value of the target pixel does not need to be adjusted, the terminal stops executing the subsequent steps. However, the terminal may determine a pixel point again as a target pixel point, and restart the method for eliminating the dead pixel in the image until each pixel point in the image is judged to be dead pixel and the judged dead pixel is eliminated.
In the embodiment of the invention, when the target pixel point is a dead pixel, the terminal determines the target pixel value of the target pixel point according to a preset edge detection method, firstly, whether the target pixel point is at an edge position is judged, then, when the target pixel point is at the edge position, the target pixel value of the target pixel point is determined according to a first preset target pixel value calculation method, and when the target pixel point is at a non-edge position, the target pixel value of the target pixel point is determined according to a second preset target pixel value calculation method.
It should be noted that, in the embodiment of the present invention, a user may store a preset edge detection method on a terminal according to a requirement of the user, where the preset edge detection method is used to detect whether a target pixel is an image edge. The specific preset edge detection method is not limited in the embodiments of the present invention.
Optionally, in the embodiment of the present invention, the preset edge detection method may be a sobel algorithm. The specific sobel algorithm is not described herein.
Specifically, in the embodiment of the present invention, when the target pixel point is located at the edge position, the determining, by the terminal, the target pixel value of the target pixel point according to the first preset target pixel value calculating method includes: and the terminal determines adjacent pixel points of the target pixel points in the pixel point matrix according to the edge direction of the target pixel points, and determines the average value of the pixel values of the adjacent pixel points as a target pixel value.
It can be understood that, in the embodiment of the present invention, when the target pixel is located at the edge position, if the target pixel is located in the edge horizontal direction, that is, the pixel point in the left-right direction of the target pixel in the pixel matrix is closest to the target pixel, it may be determined as an adjacent pixel. If the target pixel point is in the edge vertical direction, that is, the pixel point in the up-and-down direction of the target pixel point in the pixel point matrix is closest to the target pixel point, and the target pixel point can be determined as an adjacent pixel point. If the target pixel point is in the edge right oblique direction, that is, the pixel points in the upper left and lower right directions of the target pixel point in the pixel point matrix are closest to the target pixel point, and the target pixel point can be determined as an adjacent pixel point. If the target pixel point is in the edge left oblique direction, that is, the pixel points in the upper right and lower left directions of the target pixel point in the pixel point matrix are closest to the target pixel point, and the target pixel point can be determined as an adjacent pixel point.
Fig. 6 is a schematic diagram of an exemplary method for determining adjacent pixels according to an embodiment of the present invention. As shown in fig. 6, when the target pixel point is at the edge position, if the target pixel point is at the edge vertical direction, i.e., at position 1 in fig. 6, the adjacent pixel points are the pixel points in the up-and-down direction of position 1, if the target pixel point is at the edge left oblique direction, i.e., at position 2 in fig. 6, the adjacent pixel points are the pixel points in the up-and-down right direction of position 2, if the target pixel point is at the edge horizontal direction, i.e., at position 3 in fig. 6, the adjacent pixel points are the pixel points in the left-and-right direction of position 3, if the target pixel point is at the edge vertical direction, i.e., at position 4 in fig. 6, the adjacent pixel points are the pixel points in the up-and-right direction of position 4.
Exemplarily, as shown in fig. 4, when the terminal determines that the target pixel, that is, the pixel G5 is a dead pixel and is located at an edge position, if the pixel G5 is located in the edge horizontal direction, it is determined that the adjacent pixels are the pixel G4 and the pixel G6, the target pixel value is (G4+ G6)/2, if the pixel G5 is located in the edge vertical direction, it is determined that the adjacent pixels are the pixel G2 and the pixel G8, the target pixel value is (G2+ G8)/2, if the pixel G5 is located in the edge right oblique direction, it is determined that the adjacent pixels are the pixel G1 and the pixel G9, the target pixel value is (G1+ G9)/2, if the pixel G5 is located in the left oblique direction, it is determined that the adjacent pixels are the pixels G3 and G7, and the target pixel value is (G3+ G7)/2.
Specifically, in the embodiment of the present invention, when the target pixel is located at a non-edge position, the determining, by the terminal, the target pixel value of the target pixel according to the pixel matrix and according to the second preset target pixel value calculation method includes: and determining the pixel points of the non-target pixel points in the pixel point matrix as the surrounding pixel points, and determining the average value of the pixel values of the surrounding pixel points as the target pixel value.
It can be understood that, in the embodiment of the present invention, when the target pixel is located at the non-edge position, the pixels in the pixel matrix are all close to the target pixel, and therefore, the terminal determines the pixels excluding the target pixel in the pixel matrix as surrounding pixels, and determines the target pixel value according to the surrounding pixels.
Exemplarily, as shown in fig. 4, when the terminal determines that the target pixel, that is, the pixel G5 is a dead pixel, and the pixel G5 is located at a non-edge position, the terminal determines the pixel G1, the pixel G2, the pixel G3, the pixel G4, the pixel G6, the pixel G7, the pixel G8, and the pixel G9 as surrounding pixels, and the target pixel value is (G1+ G2+ G3+ G4+ G6+ G7+ G8+ G9)/8.
It can be understood that, in the embodiment of the present invention, when the terminal determines that the target pixel point is a dead pixel, the corresponding target pixel value may be calculated according to the actual position of the target pixel point, and the determined target pixel value is more accurate and reasonable.
S305, updating the pixel value of the target pixel point to be the target pixel value.
In the embodiment of the invention, after the terminal determines the target pixel value, the terminal can update the pixel value of the target pixel point to the target pixel value, namely, the dead pixel of the target pixel point is eliminated.
Fig. 7 is a diagram illustrating an exemplary pixel value update according to an embodiment of the present invention. As shown in fig. 7, the pixel G5 is a target pixel, and its pixel value is X, when the terminal determines that the pixel G5 is a dead pixel and determines that the target pixel value is Y, the pixel value X of the pixel G5 is updated to the target pixel value Y, so that the dead pixel G5 is eliminated.
The embodiment of the invention provides a method for eliminating image dead pixels, wherein a terminal takes a target pixel point as a center and establishes a pixel point matrix; determining a strategy according to a pixel point matrix and a preset detection condition, and determining a bad point detection condition; the preset detection condition determining strategy is used for determining a critical value corresponding to the pixel value of the target pixel point based on the pixel point matrix; judging whether the target pixel point is a dead pixel or not according to the pixel value of the target pixel point and the dead pixel detection condition; when the target pixel point is judged to be a dead point, determining a target pixel value of the target pixel point according to the position of the target pixel point, the pixel point matrix and a preset target pixel value calculation strategy; and updating the pixel value of the target pixel point to be the target pixel value. In the prior art, the terminal can only eliminate the dead pixel corresponding to the pre-stored fixed position according to the static dead pixel elimination method, but in the technical scheme of the embodiment of the invention, the terminal can detect the dead pixel randomly generated in the image due to the external environment and carry out corresponding dead pixel elimination according to the position of the dead pixel, thereby improving the display effect of the image.
Example two
Fig. 8 is a schematic diagram of a terminal structure according to an embodiment of the present invention. As shown in fig. 8, the terminal includes: a processor 801, a memory 802, and a communication bus 803;
the communication bus 803 is used for realizing connection communication between the processor 801 and the memory 802;
the processor 801 is configured to execute the elimination program of the image dead pixel stored in the memory 802 to implement the following steps:
establishing a pixel point matrix by taking a target pixel point as a center; determining a strategy according to the pixel point matrix and a preset detection condition, and determining a bad point detection condition; the preset detection condition determining strategy is used for determining a critical value corresponding to the pixel value of the target pixel point based on the pixel point matrix; judging whether the target pixel point is a dead pixel or not according to the pixel value of the target pixel point and the dead pixel detection condition; when the target pixel point is judged to be a dead pixel, determining a target pixel value of the target pixel point according to the position of the target pixel point, the pixel point matrix and a preset target pixel value calculation strategy; and updating the pixel value of the target pixel point to be the target pixel value.
Optionally, the processor 801 is specifically configured to execute the elimination program of the image dead pixel, so as to implement the following steps:
in the pixel point matrix, determining a pixel point with a second largest pixel value as a first pixel point, determining a pixel point with a second smallest pixel value as a second pixel point, and determining a pixel point which is not the first pixel point, is not the second pixel point, and is not the target pixel point as a third pixel point; determining the average value of the pixel values of the third pixel points as an average pixel value; determining the difference between the pixel value of the first pixel point and the pixel value of the second pixel point as a detection parameter; determining the sum of the average pixel value and the detection parameter as a maximum critical value, and determining the difference between the average pixel value and the detection parameter as a minimum critical value;
wherein, the determining whether the target pixel point is a dead pixel according to the pixel value of the target pixel point and the dead pixel detection condition includes: when the pixel value of the target pixel point is greater than or equal to the minimum critical value and less than or equal to the maximum critical value, judging that the target pixel point is a non-dead pixel; and when the pixel value of the target pixel point is smaller than the minimum critical value or the pixel value of the target pixel point is larger than the maximum critical value, judging that the target pixel point is a dead pixel.
Optionally, the processor 801 is specifically configured to execute the elimination program of the image dead pixel, so as to implement the following steps:
judging whether the target pixel point is in an edge position or not according to a preset edge detection method; when the target pixel point is at the edge position, determining a target pixel value of the target pixel point according to a first preset target pixel value calculation method; when the target pixel point is at a non-edge position, determining a target pixel value of the target pixel point according to a second preset target pixel value calculation method;
when the target pixel point is located at the edge position, determining the target pixel value of the target pixel point according to a first preset target pixel value calculation method includes: determining adjacent pixel points of the target pixel points in the pixel point matrix according to the edge direction of the target pixel points; determining the average value of the pixel values of the adjacent pixel points as the target pixel value; determining a target pixel value of the target pixel point according to the pixel point matrix and a second preset target pixel value calculation method, including: determining the pixel points in the pixel point matrix which are not the target pixel points as surrounding pixel points; and determining the average value of the pixel values of the surrounding pixel points as the target pixel value.
The embodiment of the invention provides a terminal, which takes a target pixel point as a center and establishes a pixel point matrix; determining a strategy according to a pixel point matrix and a preset detection condition, and determining a bad point detection condition; the preset detection condition determining strategy is used for determining a critical value corresponding to the pixel value of the target pixel point based on the pixel point matrix; judging whether the target pixel point is a dead pixel or not according to the pixel value of the target pixel point and the dead pixel detection condition; when the target pixel point is judged to be a dead point, determining a target pixel value of the target pixel point according to the position of the target pixel point, the pixel point matrix and a preset target pixel value calculation strategy; and updating the pixel value of the target pixel point to be the target pixel value. In the prior art, the terminal can only eliminate the dead pixel corresponding to the pre-stored fixed position according to the static dead pixel elimination method, but in the technical scheme of the embodiment of the invention, the terminal can detect the dead pixel randomly generated in the image due to the external environment and carry out corresponding dead pixel elimination according to the position of the dead pixel, thereby improving the display effect of the image.
An embodiment of the present invention provides a computer-readable storage medium, which stores one or more programs that can be executed by one or more processors to implement the above-mentioned method for eliminating image dead pixels. The computer-readable storage medium may be a volatile Memory (volatile Memory), such as a Random-Access Memory (RAM); or a non-volatile Memory (non-volatile Memory), such as a Read-Only Memory (ROM), a flash Memory (flash Memory), a Hard Disk (Hard Disk Drive, HDD) or a Solid-State Drive (SSD); or may be a respective device, such as a mobile phone, computer, tablet device, personal digital assistant, etc., that includes one or any combination of the above-mentioned memories.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (9)

1. A method for eliminating image dead pixels, the method comprising:
establishing a pixel point matrix by taking a target pixel point as a center;
in the pixel point matrix, determining a pixel point with a second largest pixel value as a first pixel point, determining a pixel point with a second smallest pixel value as a second pixel point, and determining a pixel point which is not the first pixel point, is not the second pixel point, and is not the target pixel point as a third pixel point;
determining the average value of the pixel values of the third pixel points as an average pixel value;
determining the difference between the pixel value of the first pixel point and the pixel value of the second pixel point as a detection parameter;
determining the sum of the average pixel value and the detection parameter as a maximum critical value, and determining the difference between the average pixel value and the detection parameter as a minimum critical value;
judging whether the target pixel point is a dead pixel or not according to the pixel value of the target pixel point, the maximum critical value and the minimum critical value;
when the target pixel point is judged to be a dead pixel, determining a target pixel value of the target pixel point according to the position of the target pixel point, the pixel point matrix and a preset target pixel value calculation strategy;
and updating the pixel value of the target pixel point to be the target pixel value.
2. The method of claim 1, wherein the determining whether the target pixel is a dead pixel according to the pixel value of the target pixel, the maximum threshold, and the minimum threshold comprises:
when the pixel value of the target pixel point is greater than or equal to the minimum critical value and less than or equal to the maximum critical value, judging that the target pixel point is a non-dead pixel;
and when the pixel value of the target pixel point is smaller than the minimum critical value or the pixel value of the target pixel point is larger than the maximum critical value, judging that the target pixel point is a dead pixel.
3. The method of claim 1, wherein determining the target pixel value of the target pixel according to the position of the target pixel, the pixel matrix and a preset target pixel value calculation policy comprises:
judging whether the target pixel point is in an edge position or not according to a preset edge detection method;
when the target pixel point is at the edge position, determining a target pixel value of the target pixel point according to a first preset target pixel value calculation method;
and when the target pixel point is at a non-edge position, determining the target pixel value of the target pixel point according to a second preset target pixel value calculation method.
4. The method of claim 3, wherein determining the target pixel value of the target pixel point according to a first preset target pixel value calculation method when the target pixel point is at the edge position comprises:
determining adjacent pixel points of the target pixel points in the pixel point matrix according to the edge direction of the target pixel points;
and determining the average value of the pixel values of the adjacent pixel points as the target pixel value.
5. The method of claim 3, wherein determining the target pixel value of the target pixel according to a second predetermined target pixel value calculation method based on the pixel matrix comprises:
determining the pixel points in the pixel point matrix which are not the target pixel points as surrounding pixel points;
and determining the average value of the pixel values of the surrounding pixel points as the target pixel value.
6. A terminal, characterized in that the terminal comprises: a processor, a memory, and a communication bus;
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is used for executing the elimination program of the image dead pixel stored in the memory so as to realize the following steps:
establishing a pixel point matrix by taking a target pixel point as a center; in the pixel point matrix, determining a pixel point with a second largest pixel value as a first pixel point, determining a pixel point with a second smallest pixel value as a second pixel point, and determining a pixel point which is not the first pixel point, is not the second pixel point, and is not the target pixel point as a third pixel point; determining the average value of the pixel values of the third pixel points as an average pixel value; determining the difference between the pixel value of the first pixel point and the pixel value of the second pixel point as a detection parameter; determining the sum of the average pixel value and the detection parameter as a maximum critical value, and determining the difference between the average pixel value and the detection parameter as a minimum critical value; judging whether the target pixel point is a dead pixel or not according to the pixel value of the target pixel point, the maximum critical value and the minimum critical value; when the target pixel point is judged to be a dead pixel, determining a target pixel value of the target pixel point according to the position of the target pixel point, the pixel point matrix and a preset target pixel value calculation strategy; and updating the pixel value of the target pixel point to be the target pixel value.
7. The terminal of claim 6, wherein the processor is specifically configured to execute the elimination procedure of the image dead pixel to implement the following steps:
the determining whether the target pixel point is a dead pixel according to the pixel value of the target pixel point, the maximum critical value, and the minimum critical value includes: when the pixel value of the target pixel point is greater than or equal to the minimum critical value and less than or equal to the maximum critical value, judging that the target pixel point is a non-dead pixel; and when the pixel value of the target pixel point is smaller than the minimum critical value or the pixel value of the target pixel point is larger than the maximum critical value, judging that the target pixel point is a dead pixel.
8. The terminal of claim 6, wherein the processor is specifically configured to execute the elimination procedure of the image dead pixel to implement the following steps:
judging whether the target pixel point is in an edge position or not according to a preset edge detection method; when the target pixel point is at the edge position, determining a target pixel value of the target pixel point according to a first preset target pixel value calculation method;
when the target pixel point is at a non-edge position, determining a target pixel value of the target pixel point according to a second preset target pixel value calculation method;
when the target pixel point is located at the edge position, determining the target pixel value of the target pixel point according to a first preset target pixel value calculation method includes: determining adjacent pixel points of the target pixel points in the pixel point matrix according to the edge direction of the target pixel points; determining the average value of the pixel values of the adjacent pixel points as the target
A target pixel value; determining a target pixel value of the target pixel point according to the pixel point matrix and a second preset target pixel value calculation method, wherein the method comprises the following steps: determining the pixel points in the pixel point matrix which are not the target pixel points as surrounding pixel points; and determining the average value of the pixel values of the surrounding pixel points as the target pixel value.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium stores one or more programs which are executable by one or more processors to implement the method of any one of claims 1-5.
CN201810089468.0A 2018-01-30 2018-01-30 Method for eliminating image dead pixel, terminal and storage medium Active CN108198150B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810089468.0A CN108198150B (en) 2018-01-30 2018-01-30 Method for eliminating image dead pixel, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810089468.0A CN108198150B (en) 2018-01-30 2018-01-30 Method for eliminating image dead pixel, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN108198150A CN108198150A (en) 2018-06-22
CN108198150B true CN108198150B (en) 2022-03-18

Family

ID=62591859

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810089468.0A Active CN108198150B (en) 2018-01-30 2018-01-30 Method for eliminating image dead pixel, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN108198150B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109615587B (en) * 2018-10-11 2020-10-02 杭州雄迈集成电路技术股份有限公司 Image singular point correction method
WO2020181522A1 (en) * 2019-03-13 2020-09-17 深圳市汇顶科技股份有限公司 Defective pixel detection method, image processing chip, and electronic device
CN111083401A (en) * 2019-12-20 2020-04-28 成都费恩格尔微电子技术有限公司 CIS chip dynamic bad point processing method and system
CN112019775B (en) * 2020-09-04 2023-03-24 成都微光集电科技有限公司 Bad point detection and correction method and device
CN115841451B (en) * 2022-09-27 2023-11-17 宁德时代新能源科技股份有限公司 Method and device for detecting number of lugs

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1295255A (en) * 1999-10-27 2001-05-16 三洋电机株式会社 Image signal processing device and picture element flaw detecting method
CN1595957A (en) * 2004-06-22 2005-03-16 东软飞利浦医疗设备系统有限责任公司 Method for determining automatic detection threshold of bad pixel of medical image
CN106210712A (en) * 2016-08-11 2016-12-07 上海大学 A kind of dead pixel points of images detection and processing method
CN107016669A (en) * 2017-03-27 2017-08-04 福州瑞芯微电子股份有限公司 A kind of dead pixel points of images detection method and device
CN107305695A (en) * 2016-04-14 2017-10-31 上海富瀚微电子股份有限公司 A kind of automatic bad point means for correcting of image and method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3717725B2 (en) * 1999-10-07 2005-11-16 三洋電機株式会社 Pixel defect detection method and image processing apparatus
JP2012217139A (en) * 2011-03-30 2012-11-08 Sony Corp Image processing device and method, and program
KR102346961B1 (en) * 2015-03-18 2022-01-04 삼성전자주식회사 Image Process Device and Denoising System Having the Same

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1295255A (en) * 1999-10-27 2001-05-16 三洋电机株式会社 Image signal processing device and picture element flaw detecting method
CN1595957A (en) * 2004-06-22 2005-03-16 东软飞利浦医疗设备系统有限责任公司 Method for determining automatic detection threshold of bad pixel of medical image
CN107305695A (en) * 2016-04-14 2017-10-31 上海富瀚微电子股份有限公司 A kind of automatic bad point means for correcting of image and method
CN106210712A (en) * 2016-08-11 2016-12-07 上海大学 A kind of dead pixel points of images detection and processing method
CN107016669A (en) * 2017-03-27 2017-08-04 福州瑞芯微电子股份有限公司 A kind of dead pixel points of images detection method and device

Also Published As

Publication number Publication date
CN108198150A (en) 2018-06-22

Similar Documents

Publication Publication Date Title
CN108650503B (en) Camera fault determination method and device and computer readable storage medium
CN108198150B (en) Method for eliminating image dead pixel, terminal and storage medium
CN110035176B (en) Brightness adjusting method of mobile terminal, mobile terminal and storage medium
CN109471571B (en) Display method of suspension control, mobile terminal and computer readable storage medium
CN110675342A (en) Video frame optimization method, mobile terminal and computer readable storage medium
CN108038834B (en) Method, terminal and computer readable storage medium for reducing noise
CN107635070B (en) Message reminding method, terminal and storage medium
CN107832032B (en) Screen locking display method and mobile terminal
CN107705247B (en) Image saturation adjusting method, terminal and storage medium
CN110069122B (en) Screen control method, terminal and computer readable storage medium
CN112188058A (en) Video shooting method, mobile terminal and computer storage medium
CN107610057B (en) Depth map repairing method, terminal and computer readable storage medium
CN111381762A (en) Double-screen switching method and device and computer readable storage medium
CN113222850A (en) Image processing method, device and computer readable storage medium
CN112437472A (en) Network switching method, equipment and computer readable storage medium
CN110083294B (en) Screen capturing method, terminal and computer readable storage medium
CN112346824A (en) Screen projection application control method and device and computer readable storage medium
CN109462829B (en) Call transfer method, device and computer readable storage medium
CN111970738A (en) Network switching control method, equipment and computer readable storage medium
CN111443818A (en) Screen brightness regulation and control method and device and computer readable storage medium
CN107743204B (en) Exposure processing method, terminal, and computer-readable storage medium
CN107256108B (en) Screen splitting method, device and computer readable storage medium
CN109379719B (en) Application program broadcast processing method and device and computer readable storage medium
CN113485667A (en) Method for screen projection display of terminal, terminal and storage medium
CN109413272B (en) Gravity sensor management method, double-sided screen mobile terminal and storage medium

Legal Events

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