CN111800592A - Dead pixel correction method and device capable of inhibiting pixel fluctuation and storage medium - Google Patents

Dead pixel correction method and device capable of inhibiting pixel fluctuation and storage medium Download PDF

Info

Publication number
CN111800592A
CN111800592A CN202010689894.5A CN202010689894A CN111800592A CN 111800592 A CN111800592 A CN 111800592A CN 202010689894 A CN202010689894 A CN 202010689894A CN 111800592 A CN111800592 A CN 111800592A
Authority
CN
China
Prior art keywords
pixel
detected
fault
dead
correction
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.)
Granted
Application number
CN202010689894.5A
Other languages
Chinese (zh)
Other versions
CN111800592B (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.)
Hefei Zhongke Junda Vision Technology Co ltd
Original Assignee
Hefei Fuhuang Junda High Tech Information 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 Hefei Fuhuang Junda High Tech Information Technology Co ltd filed Critical Hefei Fuhuang Junda High Tech Information Technology Co ltd
Priority to CN202010689894.5A priority Critical patent/CN111800592B/en
Publication of CN111800592A publication Critical patent/CN111800592A/en
Application granted granted Critical
Publication of CN111800592B publication Critical patent/CN111800592B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • H04N23/81Camera processing pipelines; Components thereof for suppressing or minimising disturbance in the image signal generation

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Image Processing (AREA)

Abstract

The invention discloses a dead pixel correction method and a device capable of inhibiting pixel fluctuation and a storage medium, wherein the dead pixel correction method comprises the following steps: based on a same-channel m × m neighborhood matrix of a pixel to be detected, dividing pixels of the neighborhood matrix into a bright dot dead pixel analysis sequence and a dark dot dead pixel analysis sequence according to pixel brightness values; judging whether the brightness value distribution of the pixels in the dead pixel analysis sequence of the pixels to be detected has a first fault, if so, entering first correction, otherwise, entering second correction condition judgment, judging whether the brightness value distribution of the pixels in the dead pixel candidate sequence of the pixels to be detected has a second fault, if so, entering second correction.

Description

Dead pixel correction method and device capable of inhibiting pixel fluctuation and storage medium
Technical Field
The invention relates to the field of image processing, in particular to a dead pixel correction method and device capable of inhibiting pixel fluctuation and a storage medium.
Background
The existing image sensor dead pixel correction algorithm takes a pixel to be detected as a center, considers the processing of a Bayer color matrix of 5X5 around the pixel, compares surrounding pixels with the center pixel, judges as a dead pixel if a difference value exceeds a threshold value, and then takes a median value or an average value or a probability estimation result as a correction value of the dead pixel. The method is characterized in that the processing of judging and correcting the dead pixel is single, the processing of a single image can obtain an ideal effect, but the flicker of pixels caused by pixels with fluctuation is not considered, when the dead pixel fluctuates, the pixel is judged to be dead pixel at the previous moment and corrected to be a median value or other values, but the gray value change generated by fluctuation at the next moment does not meet the dead pixel judgment condition and is not corrected, and when a large difference exists between the corrected value and the original value, the pixel values of two frames before and after the pixel represented on the image at the position are changed greatly, so that the flicker phenomenon is formed. The flicker is not the pixel flicker of the sensor, but the flicker caused by the pixel fluctuation amplification of the dead pixel correction algorithm, namely the dead pixel correction algorithm of the existing image sensor solves the dead pixel problem and simultaneously brings a new flicker problem.
To solve this problem, it can be handled by the following method: and performing time domain filtering again, independently suppressing the fluctuation of the image pixels in the time domain, or adopting time-space domain filtering to reduce the traversal times, and simultaneously performing dead pixel correction in the space domain and flicker suppression in the time domain.
Disclosure of Invention
Aiming at the problems in the prior art, the invention provides a dead pixel correction method and a device and a storage medium which can inhibit pixel fluctuation, and a dead pixel correction algorithm is improved, so that the amplification effect of the dead pixel correction algorithm on the pixel fluctuation is reduced, and the problem of image flicker is weakened or inhibited.
Specifically, the dead pixel correction method capable of suppressing the pixel fluctuation of the present invention includes the following steps:
(11) based on a same-channel m × m neighborhood matrix of a pixel to be detected, dividing pixels of the neighborhood matrix into a bright dot dead pixel analysis sequence and a dark dot dead pixel analysis sequence according to pixel brightness values;
(12) judging whether the brightness value distribution of the pixels in the dead pixel analysis sequence of the pixels to be detected has a first fault or not, if so, entering a step (13), and otherwise, entering a step (14);
(13) correcting the brightness value of the pixel to be detected to a position crossing over a nearest first fault;
(14) judging whether the brightness value distribution of the pixels in the dead pixel candidate point sequence of the pixel to be detected has a second fault, if so, entering the step (15), and otherwise, finishing the correction process of the pixel to be detected;
(15) correcting the brightness value of the pixel to be detected to reach or cross the position of the nearest second fault;
the first/second fault is an interval larger than a preset first/second segmentation threshold, and the first segmentation threshold is larger than the second segmentation threshold.
As a further optimization of the above solution, the step (11) comprises:
(21) sequencing m pixels with the number of m including the pixels to be detected from high to low according to the brightness value to obtain a pixel sequence;
(22) according to the parity condition of the m value, dividing the pixel sequence:
when m is odd, the pixel sequence is preceded by
Figure BDA0002588950820000021
Dividing each pixel into a bright spot and dead spot candidate point sequence, and then
Figure BDA0002588950820000022
The individual pixels are divided into a dark-spot dead-spot candidate point sequence
Figure BDA0002588950820000023
Determining each pixel as a non-dead pixel;
when m is even number, the pixel sequence is preceded by
Figure BDA0002588950820000024
Dividing each pixel into a bright spot and dead spot candidate point sequence, and then
Figure BDA0002588950820000025
Dividing each pixel into a dark point dead point candidate point sequence;
(23) obtaining a dead pixel candidate point sequence of a pixel to be detected, and adding a second point into the sequence
Figure BDA0002588950820000026
Each pixel forms either a bright spot dead pixel analysis sequence or a dark spot dead pixel analysis sequence.
As a further optimization of the above scheme, the step (13) includes determining whether the luminance value of the pixel to be detected needs to be corrected across a first fault according to whether the correction direction of the pixel to be detected has the first fault, and the specific steps include:
(31) when the sequence of the pixels to be detected is a bright spot dead pixel analysis sequence:
judging the position relation between the pixel position to be detected and all the first faults;
when the first fault does not exist below the position of the pixel to be detected, no correction is carried out, and the pixel to be detected is output as non-dead pixel information;
when at least one first fault is arranged below the pixel position to be detected, the upper and lower limit positions of the first fault which is closest to the pixel position to be detected below the pixel position to be detected are obtained;
correcting the brightness value of the pixel to be detected to the lower limit position of the nearest first fault downwards;
(32) when the sequence of the pixels to be detected is a dark point dead point analysis sequence:
judging the position relation between the pixel position to be detected and all the first faults;
when the first fault does not exist above the position of the pixel to be detected, no correction is carried out, and the pixel to be detected is output as non-dead pixel information;
when at least one first fault exists above the pixel position to be detected, acquiring the upper and lower limit positions of the first fault which is above the pixel position to be detected and is closest to the pixel position to be detected;
the luminance value of the pixel to be detected is corrected upward to the upper limit position of the nearest one of the first faults.
As a further optimization of the above scheme, in the step (15), according to whether the distance between the brightness value of the pixel to be detected and the nearest second fault is greater than a preset correction threshold, the brightness value of the pixel to be detected is selected to be corrected to reach or cross the position of the nearest second fault, and the correction threshold is greater than a second segmentation threshold and smaller than a first segmentation threshold.
As a further optimization of the above scheme, the step (15) includes determining whether a correction process needs to be performed according to whether the correction direction of the pixel to be detected has the second fault, and the specific steps include:
(51) when the sequence of the pixels to be detected is a bright spot dead pixel analysis sequence:
judging the position relation between the pixel position to be detected and all second faults;
when the second fault does not exist below the position of the pixel to be detected, no correction is carried out, and pixel fluctuation information of the pixel to be detected is output;
when at least one second fault is arranged below the pixel position to be detected, the upper and lower limit positions of the second fault which is closest to the pixel position to be detected below the pixel position to be detected are obtained;
calculating the distance A1 from the pixel position to be detected to the upper limit of the nearest second fault and the distance A2 from the pixel position to be detected to the lower limit of the nearest second fault;
judging whether A2 is greater than a preset correction threshold value;
if so, correcting the brightness value of the pixel to be detected downwards to reach the position of the nearest second fault;
otherwise, correcting the brightness value of the pixel to be detected downwards to a position beyond the nearest second fault;
(52) when the sequence of the pixels to be detected is a dark point dead point analysis sequence:
judging the position relation between the pixel position to be detected and all second faults;
when the second fault does not exist above the position of the pixel to be detected, no correction is carried out, and pixel fluctuation information of the pixel to be detected is output;
when at least one second fault exists above the pixel position to be detected, acquiring the upper and lower limit positions of the second fault which is above the pixel position to be detected and is closest to the pixel position to be detected;
calculating the distance A1 from the pixel position to be detected to the upper limit of the nearest second fault and the distance A2 from the pixel position to be detected to the lower limit of the second fault;
judging whether A1 is greater than a preset correction threshold value;
if so, correcting the brightness value of the pixel to be detected upwards to reach the position of the nearest second fault;
otherwise, the pixel brightness value to be detected is corrected upward to a position beyond the nearest one of the second faults.
The invention relates to a dead pixel correction device capable of inhibiting pixel fluctuation, which comprises:
the neighborhood pixel classification module is used for classifying pixels of the neighborhood matrix into a bright spot dead pixel analysis sequence and a dark spot dead pixel analysis sequence according to pixel brightness values based on the same-channel m × m neighborhood matrix of the pixels to be detected;
the first correction condition judgment module is used for judging whether the brightness value distribution of the pixels in the dead pixel analysis sequence of the pixels to be detected has a first fault or not, if so, the first correction execution module is started, and if not, the second correction execution module is started;
a first correction execution module for correcting the brightness value of the pixel to be detected to a position crossing a first fault;
the second correction condition judgment module is used for judging whether the brightness value distribution of the pixels in the dead pixel analysis sequence of the pixels to be detected has a second fault or not, if so, the second correction execution module is started, and if not, the correction process of the pixels to be detected is completed;
a second correction execution module for correcting the brightness value of the pixel to be detected to a position reaching or crossing a nearest one of the second faults;
the first/second fault is an interval larger than a preset first/second segmentation threshold, and the first segmentation threshold is larger than the second segmentation threshold.
As a further optimization of the above scheme, the second correction execution module includes:
the second fault position distribution acquisition unit is used for judging the position relation between the pixel position to be detected and all second faults in the dead pixel analysis sequence where the pixel to be detected is located;
the pixel fluctuation judging unit is used for judging whether at least one second fault exists below the pixel to be detected when the pixel to be detected is in the bright spot dead pixel analysis sequence, and whether at least one second fault exists above the pixel to be detected when the pixel to be detected is in the dark spot dead pixel analysis sequence, if so, the pixel to be detected generates pixel fluctuation and needs to be corrected, otherwise, the pixel fluctuation does not occur;
the correction candidate position acquisition unit is used for acquiring the upper and lower limit positions of a second fault which is above the position of the pixel to be detected and has the closest distance with the position of the pixel to be detected;
and the correction candidate position selection unit is used for judging whether the distance between the pixel position to be detected and the nearest second fault is greater than a preset correction threshold value or not, if so, the correction position is selected to reach the position of the nearest second fault, otherwise, the correction position is selected to cross the position of the nearest second fault, and the correction threshold value is greater than the second segmentation threshold value and smaller than the first segmentation threshold value.
As a further optimization of the above solution, the first correction execution module includes:
the first fault position distribution acquisition unit is used for judging the position relation between the position of the pixel to be detected and all first faults in the dead pixel analysis sequence where the pixel to be detected is located;
the correction condition judging unit is used for judging whether at least one first fault exists below the pixel to be detected when the pixel to be detected is in the bright spot dead pixel analysis sequence, and whether at least one first fault exists above the pixel to be detected when the pixel to be detected is in the dark spot dead pixel analysis sequence;
and the correction position acquisition unit is used for acquiring the upper and lower limit positions of the first fault which is above the position of the pixel to be detected and is closest to the position of the pixel to be detected, and correcting the brightness value of the pixel to be detected to the upper limit position crossing the closest first fault.
The invention also provides a storage medium on which computer instructions are stored, wherein the computer instructions execute the steps of the bad pixel correction method capable of inhibiting the pixel fluctuation when running.
The invention also provides a terminal based on the above dead pixel correction method capable of inhibiting pixel fluctuation, which comprises a memory and a processor, wherein the memory is stored with a computer instruction capable of running on the processor, and the processor executes the steps of the dead pixel correction method capable of inhibiting pixel fluctuation when running the computer instruction.
The invention discloses a dead pixel correction method and device capable of inhibiting pixel fluctuation, a storage medium and a terminal, and has the following beneficial effects:
1. according to the invention, through setting the first/second segmentation threshold values respectively, the brightness value of the pixel to be detected is corrected to the position crossing a first fault according to the position relationship between the first fault and the pixel to be detected in the analysis sequence of the pixel to be detected, the first fault which enables the pixel to be detected to be a dead pixel is eliminated, then the brightness value of the pixel to be detected is corrected to the position reaching or crossing a nearest second fault according to the position relationship between the second fault and the pixel to be detected in the analysis sequence of the pixel to be detected, the second fault which enables the pixel to be detected to generate pixel fluctuation is eliminated, the dead pixel correction and the pixel fluctuation inhibition of the image sensor are simultaneously realized through two correction processes, and the single pixel point flicker phenomenon caused by photosensitive fluctuation of some pixels on the image sensor is avoided.
2. In the first correction process, the brightness value of the pixel to be detected is corrected to the position crossing a first fault, namely the correction amplitude only crosses the first fault closest to the pixel to be detected, and the brightness value of the pixel to be detected is only jumped by one fault, so that the fluctuation of the brightness value of the pixel in the time domain in the correction process is reduced.
3. In the second correction process, the brightness value of the pixel to be detected is corrected to reach or cross the position of the nearest second fault, on one hand, the correction amplitude is only related to the position of the nearest second fault, the fluctuation of the brightness value of the pixel in the time domain in the correction process is reduced, meanwhile, through the setting of the preset correction threshold value, the correction amplitude is judged to reach the position of the nearest second fault or cross the position of the nearest second fault, the condition that the correction amplitude exceeds the preset correction threshold value when the pixel to be detected fluctuates is avoided, and the fluctuation of the brightness value of the pixel in the time domain in the correction process is further reduced.
Drawings
FIG. 1 is a block diagram of the overall process of the bad pixel correction method of the present invention for suppressing pixel fluctuation;
FIG. 2 is a block diagram of a first correction flow of the method for correcting a dead pixel capable of suppressing pixel fluctuation according to the present invention;
FIG. 3 is a block diagram of a second correction process when a sequence of a pixel to be detected is a bright dot dead pixel analysis sequence in the dead pixel correction method capable of suppressing pixel fluctuation of the present invention;
FIG. 4 is a block diagram of a second correction process when a sequence of a pixel to be detected is a dark-pixel dead pixel analysis sequence in the dead pixel correction method capable of suppressing pixel fluctuation according to the present invention;
FIG. 5 is a block diagram of a module structure of the bad pixel correction apparatus capable of suppressing pixel fluctuation according to the present invention.
Detailed Description
The technical solution of the present invention is further explained below with reference to the specific embodiments and the accompanying drawings.
The invention provides a dead pixel correction method capable of inhibiting pixel fluctuation, which can simultaneously process the problems of an image in a space domain and a time domain, not only effectively corrects dead pixels in image pixels in the space domain of the image, but also can inhibit large-amplitude fluctuation of the pixels in the time domain through two correction processes, and avoids the phenomenon of single-pixel-point flicker caused by photosensitive fluctuation of some pixels on an image sensor, and comprises the following steps:
(11) establishing a Bayer color matrix by taking the pixel points to be detected as central pixel points, and acquiring an m × m single-channel matrix of the same channel;
based on a same-channel m × m neighborhood matrix of a pixel to be detected, dividing pixels of the neighborhood matrix into a bright dot dead pixel analysis sequence and a dark dot dead pixel analysis sequence according to pixel brightness values;
specifically, m × m pixels including the pixel to be detected are sequenced from high to low according to the brightness value, and a pixel sequence is obtained; it is easy to understand that, in the pixel sequence of the m × m neighborhood matrix, when the pixel to be detected is at the first half position, it is most likely to be a bright dot dead pixel as a bright dot dead pixel candidate, the luminance value of the pixel to be detected needs to be corrected downward, i.e., the correction direction is downward, when the pixel to be detected is at the second half position, it is most likely to be a dark dot dead pixel as a dark dot dead pixel candidate, and the luminance value of the pixel to be detected needs to be corrected upward, i.e., the correction direction is upward.
(22) Considering the condition that more than one dead pixel exists in the neighborhood matrix, dividing the pixel sequence according to the parity condition of the m value, and taking more than half of the pixels including the pixel to be detected as a dead pixel analysis sequence:
when m is odd number, the pixel sequence is changedFront of the column
Figure BDA0002588950820000071
Dividing each pixel into a bright spot and dead spot candidate point sequence, and then
Figure BDA0002588950820000072
The individual pixels are divided into a dark-spot dead-spot candidate point sequence
Figure BDA0002588950820000073
Determining each pixel as a non-dead pixel;
when m is even number, the pixel sequence is preceded by
Figure BDA0002588950820000074
Dividing each pixel into a bright spot and dead spot candidate point sequence, and then
Figure BDA0002588950820000075
Dividing each pixel into a dark point dead point candidate point sequence;
(23) obtaining a dead pixel candidate point sequence of a pixel to be detected, and adding a second point into the sequence
Figure BDA0002588950820000076
Each pixel forms either a bright spot dead pixel analysis sequence or a dark spot dead pixel analysis sequence.
When the pixel to be detected is in the bright spot dead spot candidate point sequence, the pixel to be detected is in the bright spot dead spot candidate point sequence
Figure BDA0002588950820000077
Adding each pixel in the front of the bright spot dead spot candidate point sequence to form a bright spot dead spot analysis sequence, and when the pixel to be detected is in the dark spot dead spot candidate point sequence, adding the first pixel in the bright spot dead spot candidate point sequence to form a bright spot dead spot analysis sequence
Figure BDA0002588950820000078
And adding the pixels to the rearmost part of the dark point dead point candidate point sequence to form a dark point dead point analysis sequence, so that all the pixels in the dark point dead point analysis sequence are sorted from high to low according to the brightness value.
Then, sequentially acquiring the brightness value gradients of two adjacent pixels according to the dead pixel analysis sequence of the pixel to be detected;
setting an interval larger than a preset first/second segmentation threshold value as a first/second fault, wherein the first segmentation threshold value is larger than the second segmentation threshold value.
Recording the interval with the brightness value gradient larger than a first preset segmentation threshold as a first fault position;
(12) judging whether the brightness value distribution of the pixels in the dead pixel analysis sequence of the pixels to be detected has a first fault or not, if so, entering a step (13), and otherwise, entering a step (14);
(13) correcting the brightness value of the pixel to be detected to a position crossing a first fault; the step comprises the steps of judging whether a correction process is needed or not according to whether the correction direction of the pixel to be detected has a first fault or not, specifically:
(31) when the sequence of the pixels to be detected is a bright spot dead pixel analysis sequence:
judging the position relation between the pixel position to be detected and all the first faults;
when the first fault does not exist below the position of the pixel to be detected, no correction is carried out, and the pixel to be detected is output as non-dead pixel information; at this time, in the bright dot dead pixel analysis sequence, all pixels are sorted from high to low according to the brightness values, and there is no first fault below the position of the pixel to be detected, which indicates that the brightness value of the pixel to be detected is closer to the middle brightness in the whole m × m neighborhood matrix, and no large abnormal jump occurs, and no correction is needed.
When at least one first fault is arranged below the pixel position to be detected, correction is needed at the moment, and the upper and lower limit positions of the first fault which is closest to the pixel position to be detected below the pixel position to be detected are obtained;
correcting the brightness value of the pixel to be detected to the lower limit position of the nearest first fault downwards;
there may be a plurality of first faults below the pixel position to be detected, and in this embodiment, the selection of the correction position only relates to one first fault below the pixel position to be detected which is closest to the pixel position to be detected; that is, the correction amplitude is only skipped by one slice (the difference between the pixel value after the pixel to be detected is corrected and the original value is defined as the correction amplitude or the skipping amplitude), so that the large fluctuation of the brightness value of the pixel to be detected in the time domain in the first correction process is avoided.
(32) Similar to the first correction process of the bright dot dead pixel analysis sequence, when the sequence of the pixels to be detected is the dark dot dead pixel analysis sequence:
judging the position relation between the pixel position to be detected and all the first faults;
when the first fault does not exist above the position of the pixel to be detected, no correction is carried out, and the pixel to be detected is output as non-dead pixel information;
when at least one first fault exists above the pixel position to be detected, acquiring the upper and lower limit positions of the first fault which is above the pixel position to be detected and is closest to the pixel position to be detected;
the luminance value of the pixel to be detected is corrected upward to the upper limit position of the nearest one of the first faults.
Then, according to the brightness value gradients of two adjacent pixels in the dead pixel analysis sequence of the pixel to be detected, recording the interval with the brightness value gradient larger than a second preset segmentation threshold as a second fault position;
(14) judging whether the brightness value distribution of the pixels in the dead pixel candidate point sequence of the pixel to be detected has a second fault, if so, entering the step (15), and otherwise, finishing the correction process of the pixel to be detected;
(15) correcting the brightness value of the pixel to be detected to reach or cross the position of the nearest second fault; the step includes judging whether a correction process needs to be performed according to whether the correction direction of the pixel to be detected has a second fault, and selecting whether the luminance value of the pixel to be detected reaches or crosses the position of the nearest second fault according to whether the distance between the luminance value of the pixel to be detected and the nearest second fault is greater than a preset correction threshold, wherein the correction threshold is greater than a second segmentation threshold and smaller than a first segmentation threshold, specifically:
(51) when the sequence of the pixels to be detected is a bright spot dead pixel analysis sequence:
judging the position relation between the pixel position to be detected and all second faults;
when the second fault does not exist below the position of the pixel to be detected, no correction is carried out, and pixel fluctuation information of the pixel to be detected is output;
when at least one second fault is arranged below the pixel position to be detected, the upper and lower limit positions of the second fault which is closest to the pixel position to be detected below the pixel position to be detected are obtained;
calculating the distance A1 from the pixel position to be detected to the upper limit of the nearest second fault and the distance A2 from the pixel position to be detected to the lower limit of the nearest second fault;
judging whether A2 is larger than a preset correction threshold value or not, if so, correcting the brightness value of the pixel to be detected downwards to reach the position of the nearest second fault;
otherwise, correcting the brightness value of the pixel to be detected downwards to a position beyond the nearest second fault;
(52) when the sequence of the pixels to be detected is a dark point dead point analysis sequence:
judging the position relation between the pixel position to be detected and all second faults;
when the second fault does not exist above the position of the pixel to be detected, no correction is carried out, and pixel fluctuation information of the pixel to be detected is output;
when at least one second fault exists above the pixel position to be detected, acquiring the upper and lower limit positions of the second fault which is above the pixel position to be detected and is closest to the pixel position to be detected;
calculating the distance A1 from the pixel position to be detected to the upper limit of the nearest second fault and the distance A2 from the pixel position to be detected to the lower limit of the second fault;
judging whether A1 is greater than a preset correction threshold value;
if so, correcting the brightness value of the pixel to be detected upwards to reach the position of the nearest second fault;
otherwise, the brightness value of the pixel to be detected is corrected upwards to the position of crossing the nearest second fault.
Aiming at the process, taking 3 as an example of a neighborhood matrix m, taking a pixel point to be detected as a central pixel point, establishing a 5x 5Bayer color matrix, and obtaining a 3 x 3 single-channel matrix of the same channel;
and analyzing 9 pixels in a 3-by-3 neighborhood matrix of the same channel, and setting a preset first segmentation threshold TH1 to be 25, a preset second segmentation threshold TH2 to be 10 and a preset correction threshold TH _ C to be 15.
The method comprises the steps of sequencing the brightness values of 9 pixels in a channel image from high to low, judging whether a pixel to be detected is one of brightest 4 pixels or one of darkest 4 pixels, wherein when the brightness value of the pixel to be detected is located at the 5 th bit in the sequence, the pixel to be detected is a non-dead pixel, when the pixel to be detected is located at other positions, further judging whether the pixel to be detected is a dead pixel or not is needed, analyzing by taking one of the darkest 4 pixels as an example, performing double-threshold judgment on the brightness gradient value of the sequenced last 5 pixels, judging whether the brightness gradient value exceeds a first segmentation threshold value or not for the first time, and judging whether the brightness gradient value exceeds a second segmentation threshold value or not for the second time.
The difference value of 5 pixels forms 4 gradients, first, judgment of a first segmentation threshold is carried out, whether first faults exist in the 4 gradients or not is detected, and a plurality of first faults exist;
if the first fault exists, the position relation between the pixel to be detected and the first fault is continuously judged, taking the first fault as an example, if the pixel to be detected is positioned above the first fault, the brightness value of the pixel to be detected is in the middle of the whole neighborhood matrix and cannot be a dead pixel, and the original value is reserved; if the pixel to be detected is located below the first fault, the pixel to be detected belongs to a dead pixel, namely the pixel to be detected is determined to be the dead pixel as long as the gray value of the pixel to be detected is located below the first fault, the dead pixel enters a first dead pixel correction process, and after the first correction process is completed, the pixel to be detected enters a second segmentation threshold value.
If the first fault does not exist, directly judging a second segmentation threshold, and detecting whether the 4 gradients have second faults or not, wherein a plurality of second faults exist; similarly, as long as the brightness value of the pixel to be detected is positioned below the second fault, the pixel is judged to be a dead pixel, and the second dead pixel correction process is carried out.
For the first correction process, it is corrected to the pixel value that is closest above its adjacent first slice, i.e. the corrected pixel value variation jumps by only one slice no matter how many slices are actually distributed.
And when the first fault does not exist, firstly judging the threshold value of the second fault, detecting the distribution of the second fault, and correcting the pixel to be detected below the second fault by comparing the threshold value with a preset correction threshold value again, namely, correcting the pixel to be detected to the nearest pixel value above the second fault, namely jumping by one second fault, if the pixel to be detected is smaller than the correction threshold value, and correcting the pixel to be detected to the nearest pixel value below the second fault.
The dead pixel judgment mode of the double thresholds prevents the singularity of dead pixel judgment, and the correction threshold judgment during the second fault correction processing limits the correction jitter of the pixel to be detected and reduces the pixel value fluctuation of the pixel to be detected in the time domain.
Experiments show that when the first segmentation threshold TH1 is 25, the second segmentation threshold TH2 is 10, and the correction threshold TH _ C is 15, not only static dead pixels in an image can be effectively corrected, but also a good flicker suppression effect can be achieved for dynamic flickering dead pixels, and the fluctuation range can be within 20 gray values.
The embodiment of the invention also provides a dead pixel correction device capable of inhibiting pixel fluctuation, which comprises:
the neighborhood pixel classification module is used for classifying pixels of the neighborhood matrix into a bright spot dead pixel analysis sequence and a dark spot dead pixel analysis sequence according to pixel brightness values based on the same-channel m × m neighborhood matrix of the pixels to be detected;
the first correction condition judgment module is used for judging whether the brightness value distribution of the pixels in the dead pixel analysis sequence of the pixels to be detected has a first fault or not, if so, the first correction execution module is started, and if not, the second correction execution module is started;
a first correction execution module for correcting the brightness value of the pixel to be detected to a position crossing a first fault;
the second correction condition judgment module is used for judging whether the brightness value distribution of the pixels in the dead pixel analysis sequence of the pixels to be detected has a second fault or not, if so, the second correction execution module is started, and if not, the correction process of the pixels to be detected is completed;
a second correction execution module for correcting the brightness value of the pixel to be detected to a position reaching or crossing a nearest one of the second faults;
the first/second fault is an interval larger than a preset first/second segmentation threshold, and the first segmentation threshold is larger than the second segmentation threshold.
Wherein the second correction execution module includes:
the second fault position distribution acquisition unit is used for judging the position relation between the pixel position to be detected and all second faults in the dead pixel analysis sequence where the pixel to be detected is located;
the pixel fluctuation judging unit is used for judging whether a second fault exists below the pixel to be detected when the pixel to be detected is in the bright spot dead pixel analysis sequence, and whether a second fault exists above the pixel to be detected when the pixel to be detected is in the dark spot dead pixel analysis sequence, if so, the pixel to be detected generates pixel fluctuation and needs to be corrected, otherwise, the pixel fluctuation does not occur;
the correction candidate position acquisition unit is used for acquiring the upper and lower limit positions of a second fault which is above the position of the pixel to be detected and has the closest distance with the position of the pixel to be detected;
and the correction candidate position selection unit is used for judging whether the distance between the pixel position to be detected and the nearest second fault is greater than a preset correction threshold value or not, if so, the correction position is selected to reach the position of the nearest second fault, otherwise, the correction position is selected to cross the position of the nearest second fault, and the correction threshold value is greater than the second segmentation threshold value and smaller than the first segmentation threshold value.
Wherein, the first correction execution module comprises:
the first fault position distribution acquisition unit is used for judging the position relation between the position of the pixel to be detected and all first faults in the dead pixel analysis sequence where the pixel to be detected is located;
the correction condition judging unit is used for judging whether a first fault exists below the pixel to be detected when the pixel to be detected is in the bright spot dead pixel analysis sequence or not, and whether a first fault exists above the pixel to be detected when the pixel to be detected is in the dark spot dead pixel analysis sequence or not, if yes, the pixel to be detected is a dead pixel and needs to be corrected, and if not, the pixel to be detected is a non-dead pixel;
and the correction position acquisition unit is used for acquiring the upper and lower limit positions of the first fault which is above the position of the pixel to be detected and is closest to the position of the pixel to be detected, and correcting the brightness value of the pixel to be detected to the upper limit position crossing the closest first fault.
The embodiment of the invention also provides a storage medium, wherein a computer instruction is stored on the storage medium, and when the computer instruction runs, the steps of the bad pixel correction method capable of inhibiting pixel fluctuation are executed. The storage medium may include ROM, RAM, magnetic or optical disks, etc. The storage medium may further include a non-volatile memory (non-volatile) or a non-transitory memory (non-transient) or the like.
The embodiment of the invention also provides a terminal, which comprises a memory and a processor, wherein the memory is stored with computer instructions capable of running on the processor, and the processor executes the steps of the dead pixel correction method capable of inhibiting pixel fluctuation when running the computer instructions.
The present invention is not limited to the above-described embodiments, and those skilled in the art will be able to make various modifications without creative efforts from the above-described conception, and fall within the scope of the present invention.

Claims (10)

1. A dead pixel correction method capable of suppressing fluctuation of a pixel is characterized in that: the method comprises the following steps:
(11) based on a same-channel m × m neighborhood matrix of a pixel to be detected, dividing pixels of the neighborhood matrix into a bright dot dead pixel analysis sequence and a dark dot dead pixel analysis sequence according to pixel brightness values;
(12) judging whether the brightness value distribution of the pixels in the dead pixel analysis sequence of the pixels to be detected has a first fault or not, if so, entering a step (13), and otherwise, entering a step (14);
(13) correcting the brightness value of the pixel to be detected to a position crossing over a nearest first fault;
(14) judging whether the brightness value distribution of the pixels in the dead pixel candidate point sequence of the pixel to be detected has a second fault, if so, entering the step (15), and otherwise, finishing the correction process of the pixel to be detected;
(15) correcting the brightness value of the pixel to be detected to reach or cross the position of the nearest second fault;
the first/second fault is an interval larger than a preset first/second segmentation threshold, and the first segmentation threshold is larger than the second segmentation threshold.
2. The method of correcting a dead pixel that suppresses fluctuation of a pixel according to claim 1, wherein: the step (11) comprises:
(21) sequencing m pixels with the number of m including the pixels to be detected from high to low according to the brightness value to obtain a pixel sequence;
(22) according to the parity condition of the m value, dividing the pixel sequence:
when m is odd, the pixel sequence is preceded by
Figure FDA0002588950810000011
Dividing each pixel into a bright spot and dead spot candidate point sequence, and then
Figure FDA0002588950810000012
The individual pixels are divided into a dark-spot dead-spot candidate point sequence
Figure FDA0002588950810000013
Determining each pixel as a non-dead pixel;
when m is even number, the pixel sequence is preceded by
Figure FDA0002588950810000014
Each pixel being divided into bright spotsSequence of dead pixel candidates, post
Figure FDA0002588950810000015
Dividing each pixel into a dark point dead point candidate point sequence;
(23) obtaining a dead pixel candidate point sequence of a pixel to be detected, and adding a second point into the sequence
Figure FDA0002588950810000016
Each pixel forms either a bright spot dead pixel analysis sequence or a dark spot dead pixel analysis sequence.
3. The method of correcting a dead pixel that suppresses fluctuation of a pixel according to claim 2, wherein: the step (13) includes determining whether the luminance value of the pixel to be detected needs to be corrected across a first slice according to whether the correction direction of the pixel to be detected has the first slice, and the specific steps include:
(31) when the sequence of the pixels to be detected is a bright spot dead pixel analysis sequence:
judging the position relation between the pixel position to be detected and all the first faults;
when the first fault does not exist below the position of the pixel to be detected, no correction is carried out, and the pixel to be detected is output as non-dead pixel information;
when at least one first fault is arranged below the pixel position to be detected, the upper and lower limit positions of the first fault which is closest to the pixel position to be detected below the pixel position to be detected are obtained;
correcting the brightness value of the pixel to be detected to the lower limit position of the nearest first fault downwards;
(32) when the sequence of the pixels to be detected is a dark point dead point analysis sequence:
judging the position relation between the pixel position to be detected and all the first faults;
when the first fault does not exist above the position of the pixel to be detected, no correction is carried out, and the pixel to be detected is output as non-dead pixel information;
when at least one first fault exists above the pixel position to be detected, acquiring the upper and lower limit positions of the first fault which is above the pixel position to be detected and is closest to the pixel position to be detected;
the luminance value of the pixel to be detected is corrected upward to the upper limit position of the nearest one of the first faults.
4. A method of correcting a dead pixel that suppresses fluctuation in a picture element according to claim 3, wherein: and (15) selecting to correct the brightness value of the pixel to be detected to reach or cross the position of the nearest second fault according to whether the distance between the brightness value of the pixel to be detected and the nearest second fault is larger than a preset correction threshold value, wherein the correction threshold value is larger than a second segmentation threshold value and smaller than a first segmentation threshold value.
5. The method of correcting a dead pixel according to claim 4, wherein: the step (15) includes judging whether a correction process needs to be performed according to whether the correction direction of the pixel to be detected has a second fault, and specifically includes:
(51) when the sequence of the pixels to be detected is a bright spot dead pixel analysis sequence:
judging the position relation between the pixel position to be detected and all second faults;
when the second fault does not exist below the position of the pixel to be detected, no correction is carried out, and pixel fluctuation information of the pixel to be detected is output;
when at least one second fault is arranged below the pixel position to be detected, the upper and lower limit positions of the second fault which is closest to the pixel position to be detected below the pixel position to be detected are obtained;
calculating the distance A1 from the pixel position to be detected to the upper limit of the nearest second fault and the distance A2 from the pixel position to be detected to the lower limit of the nearest second fault;
judging whether A2 is greater than a preset correction threshold value;
if so, correcting the brightness value of the pixel to be detected downwards to reach the position of the nearest second fault;
otherwise, correcting the brightness value of the pixel to be detected downwards to a position beyond the nearest second fault;
(52) when the sequence of the pixels to be detected is a dark point dead point analysis sequence:
judging the position relation between the pixel position to be detected and all second faults;
when the second fault does not exist above the position of the pixel to be detected, no correction is carried out, and pixel fluctuation information of the pixel to be detected is output;
when at least one second fault exists above the pixel position to be detected, acquiring the upper and lower limit positions of the second fault which is above the pixel position to be detected and is closest to the pixel position to be detected;
calculating the distance A1 from the pixel position to be detected to the upper limit of the nearest second fault and the distance A2 from the pixel position to be detected to the lower limit of the second fault;
judging whether A1 is greater than a preset correction threshold value;
if so, correcting the brightness value of the pixel to be detected upwards to reach the position of the nearest second fault;
otherwise, the pixel brightness value to be detected is corrected upward to a position beyond the nearest one of the second faults.
6. A dead pixel correction device capable of suppressing fluctuation of a pixel, characterized in that: the method comprises the following steps:
the neighborhood pixel classification module is used for classifying pixels of the neighborhood matrix into a bright spot dead pixel analysis sequence and a dark spot dead pixel analysis sequence according to pixel brightness values based on the same-channel m × m neighborhood matrix of the pixels to be detected;
the first correction condition judgment module is used for judging whether the brightness value distribution of the pixels in the dead pixel analysis sequence of the pixels to be detected has a first fault or not, if so, the first correction execution module is started, and if not, the second correction execution module is started;
a first correction execution module for correcting the brightness value of the pixel to be detected to a position crossing a first fault;
the second correction condition judgment module is used for judging whether the brightness value distribution of the pixels in the dead pixel analysis sequence of the pixels to be detected has a second fault or not, if so, the second correction execution module is started, and if not, the correction process of the pixels to be detected is completed;
a second correction execution module for correcting the brightness value of the pixel to be detected to a position reaching or crossing a nearest one of the second faults;
the first/second fault is an interval larger than a preset first/second segmentation threshold, and the first segmentation threshold is larger than the second segmentation threshold.
7. The device of claim 6, wherein the bad pixel correction device is configured to suppress fluctuation of pixels, and comprises: the second correction execution module includes:
the second fault position distribution acquisition unit is used for judging the position relation between the pixel position to be detected and all second faults in the dead pixel analysis sequence where the pixel to be detected is located;
the pixel fluctuation judging unit is used for judging whether at least one second fault exists below the pixel to be detected when the pixel to be detected is in the bright spot dead pixel analysis sequence, and whether at least one second fault exists above the pixel to be detected when the pixel to be detected is in the dark spot dead pixel analysis sequence, if so, the pixel to be detected generates pixel fluctuation and needs to be corrected, otherwise, the pixel fluctuation does not occur;
the correction candidate position acquisition unit is used for acquiring the upper and lower limit positions of a second fault which is above the position of the pixel to be detected and has the closest distance with the position of the pixel to be detected;
and the correction candidate position selection unit is used for judging whether the distance between the pixel position to be detected and the nearest second fault is greater than a preset correction threshold value or not, if so, the correction position is selected to reach the position of the nearest second fault, otherwise, the correction position is selected to cross the position of the nearest second fault, and the correction threshold value is greater than the second segmentation threshold value and smaller than the first segmentation threshold value.
8. The device of claim 6, wherein the bad pixel correction device is configured to suppress fluctuation of pixels, and comprises: the first correction execution module includes:
the first fault position distribution acquisition unit is used for judging the position relation between the position of the pixel to be detected and all first faults in the dead pixel analysis sequence where the pixel to be detected is located;
the correction condition judging unit is used for judging whether at least one first fault exists below the pixel to be detected when the pixel to be detected is in the bright spot dead pixel analysis sequence, and whether at least one first fault exists above the pixel to be detected when the pixel to be detected is in the dark spot dead pixel analysis sequence;
and the correction position acquisition unit is used for acquiring the upper and lower limit positions of the first fault which is above the position of the pixel to be detected and is closest to the position of the pixel to be detected, and correcting the brightness value of the pixel to be detected to the upper limit position crossing the closest first fault.
9. A storage medium having stored thereon computer instructions, characterized in that: the computer instructions when executed perform the steps of the method for correcting the dead pixel capable of suppressing the fluctuation of the pixel according to any one of claims 1 to 5.
10. A terminal comprising a memory and a processor, the memory having stored thereon computer instructions executable on the processor, the terminal comprising: the processor executes the computer instructions to execute the steps of the method for correcting the dead pixel, which can suppress the fluctuation of the pixel, according to any one of claims 1 to 5.
CN202010689894.5A 2020-07-17 2020-07-17 Dead pixel correction method and device capable of inhibiting pixel fluctuation and storage medium Active CN111800592B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010689894.5A CN111800592B (en) 2020-07-17 2020-07-17 Dead pixel correction method and device capable of inhibiting pixel fluctuation and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010689894.5A CN111800592B (en) 2020-07-17 2020-07-17 Dead pixel correction method and device capable of inhibiting pixel fluctuation and storage medium

Publications (2)

Publication Number Publication Date
CN111800592A true CN111800592A (en) 2020-10-20
CN111800592B CN111800592B (en) 2022-04-29

Family

ID=72807552

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010689894.5A Active CN111800592B (en) 2020-07-17 2020-07-17 Dead pixel correction method and device capable of inhibiting pixel fluctuation and storage medium

Country Status (1)

Country Link
CN (1) CN111800592B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112911174A (en) * 2021-01-18 2021-06-04 珠海全志科技股份有限公司 Image dead pixel cluster correction method, computer device and computer readable storage medium
CN113223109A (en) * 2021-05-27 2021-08-06 明峰医疗系统股份有限公司 Dead pixel correction method based on CT axis scanning
CN113298764A (en) * 2021-05-11 2021-08-24 合肥富煌君达高科信息技术有限公司 High-speed camera imaging quality analysis method based on image noise analysis

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101459765A (en) * 2007-12-13 2009-06-17 广达电脑股份有限公司 Method and circuit for correcting dead pixel in video signal
US20110102624A1 (en) * 2009-11-02 2011-05-05 Sony Corporation Pixel defect correction device, imaging apparatus, pixel defect correction method, and program
CN103475828A (en) * 2013-10-10 2013-12-25 旗瀚科技有限公司 Method for rectifying missing pixels and image sensor
CN207283689U (en) * 2017-09-30 2018-04-27 杭州雄迈集成电路技术有限公司 A kind of dead pixels of image sensor surveys means for correcting
CN110650334A (en) * 2019-10-29 2020-01-03 昆山锐芯微电子有限公司 Dead pixel detection and correction method and device, storage medium and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101459765A (en) * 2007-12-13 2009-06-17 广达电脑股份有限公司 Method and circuit for correcting dead pixel in video signal
US20110102624A1 (en) * 2009-11-02 2011-05-05 Sony Corporation Pixel defect correction device, imaging apparatus, pixel defect correction method, and program
CN103475828A (en) * 2013-10-10 2013-12-25 旗瀚科技有限公司 Method for rectifying missing pixels and image sensor
CN207283689U (en) * 2017-09-30 2018-04-27 杭州雄迈集成电路技术有限公司 A kind of dead pixels of image sensor surveys means for correcting
CN110650334A (en) * 2019-10-29 2020-01-03 昆山锐芯微电子有限公司 Dead pixel detection and correction method and device, storage medium and terminal

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112911174A (en) * 2021-01-18 2021-06-04 珠海全志科技股份有限公司 Image dead pixel cluster correction method, computer device and computer readable storage medium
CN113298764A (en) * 2021-05-11 2021-08-24 合肥富煌君达高科信息技术有限公司 High-speed camera imaging quality analysis method based on image noise analysis
CN113223109A (en) * 2021-05-27 2021-08-06 明峰医疗系统股份有限公司 Dead pixel correction method based on CT axis scanning
CN113223109B (en) * 2021-05-27 2022-08-12 明峰医疗系统股份有限公司 Dead pixel correction method based on CT axis scanning

Also Published As

Publication number Publication date
CN111800592B (en) 2022-04-29

Similar Documents

Publication Publication Date Title
CN111800592B (en) Dead pixel correction method and device capable of inhibiting pixel fluctuation and storage medium
US9179038B2 (en) Image processing device, and image processing method and program
US7649555B2 (en) Apparatus for processing dead pixel
CN110650334B (en) Dead pixel detection and correction method and device, storage medium and terminal
KR102622151B1 (en) Driving controller, display apparatus including the same and method of driving display panel using the same
CN110246129B (en) Image detection method, device, computer readable storage medium and computer equipment
US20100150462A1 (en) Image processing apparatus, method, and program
EP2641390B1 (en) Component filtering for low-light noise reduction
US7330592B2 (en) Method and apparatus for detecting the location and luminance transition range of slant image edges
JP5324508B2 (en) Image processing apparatus and method, and image processing program
CN108965749B (en) Defect pixel detection and correction device and method based on texture recognition
US7308137B2 (en) Method of determining color composition of an image
CN113068011B (en) Image sensor, image processing method and system
KR101854432B1 (en) Method and apparatus for detecting and compensating back light frame
KR20100067268A (en) Apparatus and method for adjusting auto white balance using effective area
US8351729B2 (en) Apparatus, method, and program for image correction
US9826174B2 (en) Image processing apparatus and method
JP5110161B2 (en) Image correction apparatus, image correction program, and image correction method
JP4577174B2 (en) Video signal processing device
CN111582100A (en) Target object detection method and device
KR20130021977A (en) Device for correcting a difference of gr and gb sensitivity in image sensor and method thereof
KR100671838B1 (en) Afterimage preventing apparatus and method for plasma display pannel
KR101896992B1 (en) Method for processing video and computer readable recording medium thereof
US20130201404A1 (en) Image processing method
CN113792771B (en) TCON chip for processing graphics card

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
CP03 Change of name, title or address

Address after: Fuhuang New Vision Building, No. 77 Wutaishan Road, Baohe Economic Development Zone, Hefei City, Anhui Province, 230051

Patentee after: Hefei Zhongke Junda Vision Technology Co.,Ltd.

Address before: 230088 Room 107, Building 3, Tiandao 10 Software Park, Hefei High-tech Zone, Anhui Province

Patentee before: HEFEI FUHUANG JUNDA HIGH-TECH INFORMATION TECHNOLOGY Co.,Ltd.

CP03 Change of name, title or address