US20090180687A1 - Method for realizing color interpolation of value correction of exceptional points - Google Patents

Method for realizing color interpolation of value correction of exceptional points Download PDF

Info

Publication number
US20090180687A1
US20090180687A1 US12/158,551 US15855106A US2009180687A1 US 20090180687 A1 US20090180687 A1 US 20090180687A1 US 15855106 A US15855106 A US 15855106A US 2009180687 A1 US2009180687 A1 US 2009180687A1
Authority
US
United States
Prior art keywords
center point
known color
color
value
points
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.)
Abandoned
Application number
US12/158,551
Inventor
Ziyu Zhu
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.)
BYD Co Ltd
Original Assignee
BYD 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 BYD Co Ltd filed Critical BYD Co Ltd
Assigned to BYD COMPANY LIMITED reassignment BYD COMPANY LIMITED ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: ZHU, ZIYU
Publication of US20090180687A1 publication Critical patent/US20090180687A1/en
Abandoned legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/40Scaling the whole image or part thereof
    • G06T3/4015Demosaicing, e.g. colour filter array [CFA], Bayer pattern
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/64Circuits for processing colour signals
    • H04N9/67Circuits for processing colour signals for matrixing
    • 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/84Camera processing pipelines; Components thereof for processing colour signals
    • H04N23/843Demosaicing, e.g. interpolating colour pixel values
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N25/00Circuitry of solid-state image sensors [SSIS]; Control thereof
    • H04N25/10Circuitry of solid-state image sensors [SSIS]; Control thereof for transforming different wavelengths into image signals
    • H04N25/11Arrangement of colour filter arrays [CFA]; Filter mosaics
    • H04N25/13Arrangement of colour filter arrays [CFA]; Filter mosaics characterised by the spectral characteristics of the filter elements
    • H04N25/134Arrangement of colour filter arrays [CFA]; Filter mosaics characterised by the spectral characteristics of the filter elements based on three different wavelength filter elements
    • 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
    • H04N25/683Noise processing, e.g. detecting, correcting, reducing or removing noise applied to defects by defect estimation performed on the scene signal, e.g. real time or on the fly detection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/64Circuits for processing colour signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N2209/00Details of colour television systems
    • H04N2209/04Picture signal generators
    • H04N2209/041Picture signal generators using solid-state devices
    • H04N2209/042Picture signal generators using solid-state devices having a single pick-up sensor
    • H04N2209/045Picture signal generators using solid-state devices having a single pick-up sensor using mosaic colour filter
    • H04N2209/046Colour interpolation to calculate the missing colour values

Definitions

  • the present invention relates to a method for color interpolation, and more specially to a method that is designed to realize value correction of exceptional points along with color interpolation for a Bayer color matrix obtained during the process of digital image processing.
  • color interpolation must be carried out for the image obtained by a BAYER color matrix, so as to recover the image colors.
  • Most existing methods realize interpolation for the pixel points with spatial correlation or color correlation.
  • the exceptionality will diffuse to the interpolation for the surrounding points, and thereby strongly influences the result of color interpolation; in addition, utilizing a specific method solely often results in image blur on the boundaries or pseudo colors in fine structures, which has adverse effect to the result of color interpolation.
  • the object of the present invention is to provide a method for color interpolation that can realize value correction of exceptional points in an image and thereby improves image quality.
  • the color interpolation method for realizing value correction of exceptional points comprises the following steps:
  • a point at which interpolation is to be carried out is set as the center point to establish in which each point is represented by one known color and two unknown colors (the three colors are R, G, and B), and the known color of the center point is R or B;
  • a principle for the correction is as follows: if the known color value of the center point is higher by a preset value than the known color values of all surrounding points with the same known color as that of the center point or lower by a preset value than the known color values of all the surrounding points, replace the known color value of the center point with the average value of the known color values of the surrounding points; otherwise the known color value of the center point is maintained.
  • the color interpolation method for realizing value correction of exceptional points comprises the following steps:
  • a point at which interpolation is to be carried out is set as a center point to establish a 5 ⁇ 5 Bayer matrix, in which each point is represented by one known color and two unknown colors, the three colors being R, G, and B, and the known color of the center point is G;
  • the known color value of the center point is corrected based on the relationship of difference of the known color value of points in the matrix with the same known color as that of the center point;
  • the principle for the correction calculation is: if the known color value of a certain point is higher by a preset value than the known color values of all surrounding points with the same known color as that of the center point, and the difference value between the known color value of the point and the average value of the known color values of the surrounding points is also higher than the preset value, then the known color value of the point is replaced with the average value of the known color values of the surrounding points; otherwise the known color value of the point is maintained.
  • the present invention has the following advantages: the present invention can eliminate exceptional points in an image, prevent diffusion of exceptional color values in the interpolation process, and thereby refine image details and colors; in addition, it can enhance image boundaries and make the image on the boundaries clearer, and therefore prevent pseudo colors.
  • FIG. 1 and FIG. 4 show a Bayer matrix with a Blue center point and a Bayer matrix with a Red center point;
  • FIG. 2 and FIG. 3 show a Bayer matrix with a Green center point, respectively;
  • FIG. 5 is a flow diagram of the present invention.
  • the color interpolation method for realizing value correction for exceptional points in the present invention utilizes a 5 ⁇ 5 Bayer matrix to realize interpolation in the image.
  • the 5 ⁇ 5 Bayer matrix may be in either of the following two cases: 1) the known color of the center point is Blue (as shown in FIG. 1 ) or Red (as shown in FIG. 4 ), and the green points are in the same positions; 2) the known color of the center point is Green, and the positions of Red points and the positions of Blue points are interchangeable, as shown in FIG. 2 and FIG. 3 .
  • the interpolation method comprises the following steps:
  • a point at which interpolation is to be carried out is set as the center point to establish a 5 ⁇ 5 Bayer matrix, in which each point is represented by one known color and two unknown colors, the three colors being R, G, and B, and the known color of the center point is R or B;
  • the known color value of the center point is corrected based on the relationship of difference of the known color value of points in the matrix with the same known color as that of the center point;
  • the principle for the correction calculation is as follows: if the known color value of the center point is higher by a preset value (Th) than the known color values of all surrounding points that have the same known color as the center point or lower by the preset value (Th) than the known color values of all surrounding points with the same known color as that of the center point, the known color value of the center point is replaced with the average value of the known color values of the surrounding points; otherwise keep the known color value of the center point.
  • the correction process is as follows:
  • Ra 1 ⁇ 8*(R11+R13+R15+R31+R35+R51+R53+R55);
  • H 1
  • V 1
  • the two parameters H1 and V1 describe the color chance trends along column and row directions in which the center point is located, respectively; the color change trend can be described in two aspects: the difference value between surrounding Green points in row and column directions (i.e.,
  • the color values are more authentic to reflect the brightness change trend; therefore, the color values that have brightness change trend smoother that varies less brightness change trend can be used in the interpolation calculation.
  • G33 1 ⁇ 2*(G32+G34)+1 ⁇ 4*(R33 ⁇ R31+R33 ⁇ R35);
  • G33 1 ⁇ 2*(G23+G43)+1 ⁇ 4*(R33 ⁇ R13+R33 ⁇ R53);
  • G33 1 ⁇ 4*(G32+G34+G23+G43)+1 ⁇ 8*(R33 ⁇ R31+R33 ⁇ R35+R33 ⁇ R13+R33 ⁇ R53);
  • the interpolation calculation is carried out for the values of unknown colors with the known color values that reflects brightness change trend that varies less, which comprises two parts: carry out estimation with the average value of surrounding points with the same known color in row or column direction in which the brightness change trend v; carry out correction for the estimated value with the difference between the center point and the surrounding points that have the same known color and reflect brightness change trend that varies less, so as to obtain a color interpolation result that is closer to the actual value.
  • the difference in Green color has higher weight than the difference in Red color in terms of the contribution to color brightness, the deviation in green color in row or column must be considered in the interpolation process.
  • the interpolation method comprises the following steps;
  • a point at which interpolation is to be carried out is set as a center point to establish a 5 ⁇ 5 Bayer matrix, in which each point is represented by one known color and two unknown colors, the three colors being R, G, and B, and the known color of the center point is G;
  • the known color value of the center point is corrected based on the relationship of difference of the known color value of points in the matrix with the same known color as that of the center point;
  • step 2 the principle for correction is as follows: if the difference value between the known color values of G33 and the eight surrounding points with the same known color as that of the center point is higher than parameter Th and the difference between G33 and the average value of the known color values of the eight points is also higher than Th, it is deemed that G33 is exceptional, and the original value must be replaced with the average value of the eight surrounding points.
  • the calculation process is as follows:
  • Ga 1 ⁇ 8*(G13+G22+G24+G31+G35+G42+G44+G53);
  • R32, R34 i.e., the reference point for R33
  • B23, and B43 i.e., the reference point for B33
  • R32, R34, B23, and B43 must be corrected, in the same principle as the correction calculation for R33 (or B33) in the first case, in order to reduce the adverse effect of exceptionality of reference point to the interpolation calculation, since there are only two reference points for interpolation calculation evaluation for R33 (or B33).
  • the weights of the points are slightly different to each other.
  • the weighted average value equations are as follows:
  • Ral 1 ⁇ 8*(2 *R 12 +R 14+2 *R 34+2 *R 52 +R 54)
  • Rar 1 ⁇ 8*( R 12+2 *R 14+2 *R 32 +R 52+2 *R 54)
  • interpolation employs the basic point for reference in the evaluation and employs the values of Green color for compensation and correction.
  • the interpolation equations are as follows:
  • R 33 1 ⁇ 2*( R 32 +R 34)+1 ⁇ 4*( G 33 ⁇ Rl+G 33 ⁇ Rr )
  • B 33 1 ⁇ 2*( B 23 +R 43)+1 ⁇ 4*( G 33 ⁇ Bu+G 33 ⁇ Bd );
  • Rl 1 ⁇ 4*( G 33 +G 31 +G 22 +G 42);
  • Rr 1 ⁇ 4*( G 33 +G 35 +G 24 +G 44);
  • the interpolation estimation also comprises two parts: generating an estimated value with the average value of two surrounding points after correction, and then correcting the estimated value with the difference in Green color between the center point and the surrounding Green points, so as to obtain the final color interpolation result.
  • Other interpolation methods that make Green point as center point is similar to the interpolation method described above, only the positions of Red and Blue colors must be exchanged.

Abstract

A method for realizing color interpolation of the value correction of exceptional points is disclosed. The method includes the following steps: the certain point in the BAYER matrix is set as the center to establish a 5×5 interpolation matrix, in which each point is represented by one known color and two unknown colors and the known color of the center is R or B; the known color of the center point is corrected based on the known color value of the known points in the matrix with the same color as that of the center point; the color change trends along both row and column directions in which the center point is located are judged to select the row direction or column direction in which the center as the reference direction of the interpolation calculation; and the two color values of the center point are interpolated.

Description

    FIELD OF THE INVENTION
  • The present invention relates to a method for color interpolation, and more specially to a method that is designed to realize value correction of exceptional points along with color interpolation for a Bayer color matrix obtained during the process of digital image processing.
  • BACKGROUND OF THE INVENTION
  • During the process of digital image processing, color interpolation must be carried out for the image obtained by a BAYER color matrix, so as to recover the image colors. Most existing methods realize interpolation for the pixel points with spatial correlation or color correlation. However, with such methods, if any exceptional point occurs in the BAYER matrix, the exceptionality will diffuse to the interpolation for the surrounding points, and thereby strongly influences the result of color interpolation; in addition, utilizing a specific method solely often results in image blur on the boundaries or pseudo colors in fine structures, which has adverse effect to the result of color interpolation.
  • SUMMARY OF THE INVENTION
  • The object of the present invention is to provide a method for color interpolation that can realize value correction of exceptional points in an image and thereby improves image quality.
  • The object of the present invention is attained as follows: the color interpolation method for realizing value correction of exceptional points comprises the following steps:
  • 1) Establishing a matrix for color interpolation: a point at which interpolation is to be carried out is set as the center point to establish in which each point is represented by one known color and two unknown colors (the three colors are R, G, and B), and the known color of the center point is R or B;
  • 2) correcting the known color value of the center point: correct the known color value of the center point is corrected based on the relationship of difference of the known color value of points in the matrix with the same known color as that of the center point;
  • 3) determining a reference: color change trends along row and column directions in which the center point is located are judged, and the row or column direction in which the center point is located is selected as a reference direction for the interpolation calculation;
  • 4) interpolating for the two unknown color values of the center point: average values of points with the unknown colors of the center point as the known color of the points in the reference direction are taken as the estimated values for the unknown colors of the center point, and the estimated values are corrected with difference values between the known color values of another two points with the same known color as that of the center point in the reference direction and the known color value of the center point, so as to obtain interpolation results for the two unknown colors of the center point.
  • In above step 2), a principle for the correction is as follows: if the known color value of the center point is higher by a preset value than the known color values of all surrounding points with the same known color as that of the center point or lower by a preset value than the known color values of all the surrounding points, replace the known color value of the center point with the average value of the known color values of the surrounding points; otherwise the known color value of the center point is maintained.
  • The color interpolation method for realizing value correction of exceptional points comprises the following steps:
  • 1) establishing a Bayer matrix for color interpolation: a point at which interpolation is to be carried out is set as a center point to establish a 5×5 Bayer matrix, in which each point is represented by one known color and two unknown colors, the three colors being R, G, and B, and the known color of the center point is G;
  • 2) correcting the known color value of the center point: the known color value of the center point is corrected based on the relationship of difference of the known color value of points in the matrix with the same known color as that of the center point;
  • 3) correcting the known color value of the points surrounding to the center point: the known color values of two points with B as known color surrounding to the center point and two points with R as known color surrounding to the center point;
  • 4) interpolating for two unknown color values of the center point: average values of the corrected known color values of the two points with R or B as known color surrounding to the center point are respectively taken as estimated values for color R or B of the center point, and the estimated values are corrected with difference values between the known color value of the center point and the known color values of the surrounding points, so as to obtain the values of color R and B of the center point, respectively.
  • In above step 2) and 3), the principle for the correction calculation is: if the known color value of a certain point is higher by a preset value than the known color values of all surrounding points with the same known color as that of the center point, and the difference value between the known color value of the point and the average value of the known color values of the surrounding points is also higher than the preset value, then the known color value of the point is replaced with the average value of the known color values of the surrounding points; otherwise the known color value of the point is maintained.
  • Compared to the prior art, the present invention has the following advantages: the present invention can eliminate exceptional points in an image, prevent diffusion of exceptional color values in the interpolation process, and thereby refine image details and colors; in addition, it can enhance image boundaries and make the image on the boundaries clearer, and therefore prevent pseudo colors.
  • BRIEF DESCRIPTION OF THE DRAWINGS
  • FIG. 1 and FIG. 4 show a Bayer matrix with a Blue center point and a Bayer matrix with a Red center point;
  • FIG. 2 and FIG. 3 show a Bayer matrix with a Green center point, respectively;
  • FIG. 5 is a flow diagram of the present invention.
  • DETAILED DESCRIPTION OF THE EMBODIMENTS
  • Please see FIG. 1-FIG. 5, the color interpolation method for realizing value correction for exceptional points in the present invention utilizes a 5×5 Bayer matrix to realize interpolation in the image. The 5×5 Bayer matrix may be in either of the following two cases: 1) the known color of the center point is Blue (as shown in FIG. 1) or Red (as shown in FIG. 4), and the green points are in the same positions; 2) the known color of the center point is Green, and the positions of Red points and the positions of Blue points are interchangeable, as shown in FIG. 2 and FIG. 3.
  • In the first case, the interpolation method comprises the following steps:
  • 1) establishing a matrix for color interpolation: a point at which interpolation is to be carried out is set as the center point to establish a 5×5 Bayer matrix, in which each point is represented by one known color and two unknown colors, the three colors being R, G, and B, and the known color of the center point is R or B;
  • 2) correcting the known color value of the center point: the known color value of the center point is corrected based on the relationship of difference of the known color value of points in the matrix with the same known color as that of the center point;
  • 3) determining a reference: the color change trends along row and column directions in which the center point is located are judged, and the row or column direction in which the center point is located as the reference direction for interpolation calculation is selected;
  • 4) interpolating for the two unknown color values of the center point: average values of points with the unknown colors of the center point as the known color of the points in the reference direction are taken as the estimated values for the unknown colors of the center point, and the estimated values are corrected with difference values between the known color values of another two points with the same known color as that of the center point in the reference direction and the known color value of the center point, so as to obtain the interpolation result for the two unknown colors of the center point.
  • In above step 2), the principle for the correction calculation is as follows: if the known color value of the center point is higher by a preset value (Th) than the known color values of all surrounding points that have the same known color as the center point or lower by the preset value (Th) than the known color values of all surrounding points with the same known color as that of the center point, the known color value of the center point is replaced with the average value of the known color values of the surrounding points; otherwise keep the known color value of the center point. The correction process is as follows:
  • Ra=⅛*(R11+R13+R15+R31+R35+R51+R53+R55);
  • Rb=R33+Th;
  • Rs=R33−Th;
  • If R11>Rb, R13>Rb, R15>Rb, R31>Rb, R35>Rb, R51>Rb, R53>Rb, and R55>Rb are all true, or R11<Rs, R13<Rs, R15<Rs, R31<Rs, R35<Rs, R51<Rs, R53<Rs, and R55<Rs are all true, then R33=Ra; otherwise R33=R33.
  • After the correction for point R33 is completed, two parameters H1 and V1 can be calculated and obtained:

  • H1=|G32−G34|+|R33−R31+R33−R35|

  • V1=|G23−G43|+|R33−R13+R33−R53|
  • The two parameters H1 and V1 describe the color chance trends along column and row directions in which the center point is located, respectively; the color change trend can be described in two aspects: the difference value between surrounding Green points in row and column directions (i.e., |G32-G34| and |G23-G43|, respectively), and the difference value between the actual value of Red R33 of the center point and the average value of surrounding points ((R31+R35)/2 and (R13+R53)/2) in row and column directions (due to the fact that the contribution of Green is the highest in the contribution of colors to brightness, the weight of Green difference is higher than the weight of Red difference). In the direction in which the parameters are smaller, the color values are more authentic to reflect the brightness change trend; therefore, the color values that have brightness change trend smoother that varies less brightness change trend can be used in the interpolation calculation.
  • According to above deduction, in the case that the center point is Red, as shown in FIG. 4, the interpolation calculations for G33 and B33 are as follows:
  • If H1<V1:
  • G33=½*(G32+G34)+¼*(R33−R31+R33−R35);
  • B33=¼*(B22+B24+B42+B44)+¼*(R33−½*(R13+R53)+½*(G32+G34)−½*(G23+G43));
  • If H1>V1:
  • G33=½*(G23+G43)+¼*(R33−R13+R33−R53);
  • B33=¼*(B22+B24+B42+B44)+¼*(R33−½*(R31+R35)+½*(G23+G43)−½*(G32+G34));
  • If H1>V1:
  • G33=¼*(G32+G34+G23+G43)+⅛*(R33−R31+R33−R35+R33−R13+R33−R53);
  • B33=¼*(B22+B24+B42+B44)+⅛*(R33−R31+R33−R35+R33−R13+R33−R53);
  • In above interpolation method, for G33 and B33, the interpolation calculation is carried out for the values of unknown colors with the known color values that reflects brightness change trend that varies less, which comprises two parts: carry out estimation with the average value of surrounding points with the same known color in row or column direction in which the brightness change trend v; carry out correction for the estimated value with the difference between the center point and the surrounding points that have the same known color and reflect brightness change trend that varies less, so as to obtain a color interpolation result that is closer to the actual value. In the interpolation calculation for B33 and G33, since the difference in Green color has higher weight than the difference in Red color in terms of the contribution to color brightness, the deviation in green color in row or column must be considered in the interpolation process.
  • In the second case, the interpolation method comprises the following steps;
  • 1) establishing a Bayer matrix for color interpolation: a point at which interpolation is to be carried out is set as a center point to establish a 5×5 Bayer matrix, in which each point is represented by one known color and two unknown colors, the three colors being R, G, and B, and the known color of the center point is G;
  • 2) correcting the known color value of the center point: the known color value of the center point is corrected based on the relationship of difference of the known color value of points in the matrix with the same known color as that of the center point;
  • 3) correcting the known color value of points surrounding to the center point: the known color value of two points with B as known color surrounding to the center point and two points with R as known color surrounding to the center point are corrected;
  • 4) interpolating for two unknown color values of the center point: average values of the corrected known color values of the two points with R or B as known color surrounding to the center point are respectively taken as estimated values for color R or B of the center point, and the estimated values are corrected with difference values between the known color value of the center point and the known color values of the surrounding points, so as to obtain the values of color R and B of the center point, respectively.
  • Please see FIG. 3. For step 2), the principle for correction is as follows: if the difference value between the known color values of G33 and the eight surrounding points with the same known color as that of the center point is higher than parameter Th and the difference between G33 and the average value of the known color values of the eight points is also higher than Th, it is deemed that G33 is exceptional, and the original value must be replaced with the average value of the eight surrounding points. The calculation process is as follows:
  • Ga=⅛*(G13+G22+G24+G31+G35+G42+G44+G53);
  • If |G33−G13|>Th, |G33−G22|>Th, |G33−G24|>Th, |G33−G31|>Th, |G33−G35|>Th, |G33−G42|>Th, |G33−G44|>Th, |G33−G53|>Th along with |G33−Ga|>Th, then G33=Ga.
  • After G33 is corrected, R32, R34 (i.e., the reference point for R33), B23, and B43 (i.e., the reference point for B33) must be corrected, in the same principle as the correction calculation for R33 (or B33) in the first case, in order to reduce the adverse effect of exceptionality of reference point to the interpolation calculation, since there are only two reference points for interpolation calculation evaluation for R33 (or B33). The reference points with the same known color around R32 are R12, R14, R34, R52, and R54; the reference points with the same known color around R34 are R12, R14, R32, R52, and R54; the reference points with the same known color around B23 are B21, B25, B41, B43, and B45; the reference points with the same known color around B43 are B21, B23, B25, B41, and B45. In the view of the position relationship between the points and the corrected points, the weights of the points are slightly different to each other. The weighted average value equations are as follows:

  • Ral=⅛*(2*R12+R14+2*R34+2*R52+R54)

  • Rar=⅛*(R12+2*R14+2*R32+R52+2*R54)

  • Bau=⅛*(2*R21+2*R25+R41+2*R43+R45)

  • Bad=⅛*(R21+2*R23+R25+2*R41+2*R45)
  • In the same principle for correction for G33, if the difference values between R32 (or R34, B23, B43) and the five reference points with the same color around R32 (or R34, B23, B43) are higher than parameter Th and the weighted average difference values between R32 (or R34, B23, B43) and the five points are higher than Th, it is deemed that R32 (or R34, B23, B43) is exceptional, and the original value must be replaced with the weighted average value; otherwise the original value can be used.
  • After the four points are corrected, reference points without exceptionality can be obtained for interpolation calculation. The interpolation employs the basic point for reference in the evaluation and employs the values of Green color for compensation and correction. The interpolation equations are as follows:

  • R33=½*(R32+R34)+¼*(G33−Rl+G33−Rr)

  • B33=½*(B23+R43)+¼*(G33−Bu+G33−Bd);

  • Wherein:

  • Rl=¼*(G33+G31+G22+G42);

  • Rr=¼*(G33+G35+G24+G44);

  • Bu=¼*(G33+G13+G22+G24);

  • Bd=¼*(G33+G53+G42+G44);
  • It is seen from above equations: the interpolation estimation also comprises two parts: generating an estimated value with the average value of two surrounding points after correction, and then correcting the estimated value with the difference in Green color between the center point and the surrounding Green points, so as to obtain the final color interpolation result. Other interpolation methods that make Green point as center point is similar to the interpolation method described above, only the positions of Red and Blue colors must be exchanged.

Claims (8)

1. A method for realizing color interpolation of value correction of exceptional points, the method comprises:
1) establishing a matrix for color interpolation: a point at which interpolation is to be carried out is set as a center point to establish a 5×5 Bayer matrix, in which each point is represented by one known color and two unknown colors, the three colors being R, G, and B, and the known color of the center point is R or B;
2) correcting the known color value of the center point: the known color value of the center point is corrected based on the relationship of difference of the known color value of points in the matrix with the same known color as that of the center point;
3) determining a reference: color change trends along row and column directions in which the center point is located are judged, and the row or column direction in which the center point is located is selected as a reference direction for interpolation calculation;
4) interpolating for the two unknown color values of the center point: average values of points with the unknown colors of the center point as the known color of the points in the reference direction are taken as the estimated values for the unknown colors of the center point, and the estimated values are corrected with difference values between the known color values of another two points with the same known color as that of the center point in the reference direction and the known color value of the center point, so as to obtain interpolation results for the two unknown colors of the center point.
2. The method for realizing color interpolation of value correction of exceptional points according to claim 1, wherein, in step 2), a principle for correction is as follows: if the known color value of the center point is higher or lower by a preset value than the known color values of surrounding points with the same known color as that of the center point, the known color value of the center point is replaced with the average value of the known color values of the surrounding points; otherwise the known color value of the center point is maintained.
3. The method for realizing color interpolation of value correction of exceptional points according to claim 1, wherein in the step 3), the row direction or column direction along which the color change trend varies less is taken as the reference direction for the interpolation calculation.
4. The method for realizing color interpolation of value correction of exceptional points according to claim 3, wherein if the known color of the center point is R, then in the step 3):
the color change trend along row direction is: H1=|G32−G34|+|R33−R31+R33−R35|, and the color change trend along column direction is: V1=|G23−G43|+|R33−R13+R33−R53|,
in the step 4):
if H1<V1, then
G33=½*(G32+G34)+¼*(R33−R31+R33−R35);
B33=¼*(B22+B24+B42+B44)+¼*(R33−½*(R13+R53)+½*(G32+G34)−½*(G23+G43));
if H1>V1, then
G33=½*(G23+G43)+¼*(R33−R13+R33−R53);
B33=¼*(B22+B24+B42+B44)+¼*(R33−½*(R31+R35)+½*(G23+G43)−½*(G32+G34));
if H1=V1, then:
G33=¼*(G32+G34+G23+G43)+⅛*(R33−R31+R33−R35+R33−R13+R33−R53);
B33=¼*(B22+B24+B42+B44)+⅛*(R33−R31+R33−R35+R33−R13+R33−R53);
wherein, Rij, Gij and Bij are the known color values of each point in the 5×5 Bayer matrix, and 1≦i, j≦5, i and j are natural numbers.
5. A method for realizing color interpolation of value correction of exceptional points, which comprises:
1) establishing a Bayer matrix for color interpolation: a point at which interpolation is to be carried out is set as a center point to establish a 5×5 Bayer matrix, in which each point is represented by one known color and two unknown colors, the three colors being R, G, and B, and the known color of the center point is G;
2) correcting the known color value of the center point: the known color value of the center point is corrected based on the relationship of difference of the known color value of points in the matrix with the same known color as that of the center point
3) correcting the known color value of points surrounding to the center point: the known color values of two points with B as known color surrounding to the center point and two points with R as known color surrounding to the center point are corrected;
4) interpolating for the two unknown color values of the center point: average values of the corrected known color values of the two points with R or B as known color surrounding to the center point are respectively taken as estimated values for color R or B of the center point, and the estimated values are corrected with difference values between the known color value of the center point and the known color values of the surrounding points, so as to obtain the values of color R and B of the center point, respectively.
6. The method for realizing color interpolation of value correction of exceptional points according to claim 5, wherein, in step 2) and step 3), a principle for correction is as follows: if the known color value of the center point is higher by a preset value than the known color values of surrounding points with the same known color as that of the center point, and the difference value between the known color value of the center point and the average value of the known color values of surrounding points is also higher by the preset value, then the known color value of the center point is replaced with the average value of the known color values of the surrounding points; otherwise the known color value of the center point is maintained.
7. The method for realizing color interpolation of value correction of exceptional points according to claim 6, wherein, in the step 2), the average value is the average value of the known color values of eight points with G as known color surrounding to the center point; and
in the step 3), for two points with R as known color, the average values are calculated as follows respectively: Rl=¼*(G33+G31+G22+G42) and Rr=¼*(G33+G35+G24+G44); for two points with B as known color, the average values are calculated as follows respectively: Bu=¼*(G33+G13+G22+G24) and Bd=¼*(G33+G53+G42+G44).
8. The method for realizing color interpolation of value correction of exceptional points according to claim 7, wherein, in the step 4):
the value of R of the center point is calculated as follows:

R33=½*(R32+R34)+¼*(G33−Rl+G33−Rr); and
the value of B of the center point is calculated as follows:

B33=½*(B23+B43)+¼*(G33−Bu+G33−Bd);

wherein

Rl=¼*(G33+G31+G22+G42);

Rr=¼*(G33+G35+G24+G44);

Bu=¼*(G33+G13+G22+G24);

Bd=¼*(G33+G53+G42+G44);
Rij, Gij, and Bij are the known color values of each point in the 5×5 Bayer matrix, and 1≦i, j≦5, i and j are natural numbers.
US12/158,551 2005-12-21 2006-12-21 Method for realizing color interpolation of value correction of exceptional points Abandoned US20090180687A1 (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
CN200510022410.7 2005-12-21
CNB2005100224107A CN100546335C (en) 2005-12-21 2005-12-21 A kind of color interpolation method of realizing abnormal point numerical value correction
PCT/CN2006/003515 WO2007071194A1 (en) 2005-12-21 2006-12-21 Method for realizing color interpolation of value correction of exceptional points

Publications (1)

Publication Number Publication Date
US20090180687A1 true US20090180687A1 (en) 2009-07-16

Family

ID=38172968

Family Applications (2)

Application Number Title Priority Date Filing Date
US11/644,385 Active 2028-08-17 US7746395B2 (en) 2005-12-21 2006-12-21 Color interpolation methods for correcting outlying values
US12/158,551 Abandoned US20090180687A1 (en) 2005-12-21 2006-12-21 Method for realizing color interpolation of value correction of exceptional points

Family Applications Before (1)

Application Number Title Priority Date Filing Date
US11/644,385 Active 2028-08-17 US7746395B2 (en) 2005-12-21 2006-12-21 Color interpolation methods for correcting outlying values

Country Status (6)

Country Link
US (2) US7746395B2 (en)
EP (1) EP1986443B1 (en)
KR (1) KR101016408B1 (en)
CN (1) CN100546335C (en)
AT (1) ATE550880T1 (en)
WO (1) WO2007071194A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160088194A1 (en) * 2013-04-22 2016-03-24 Nederlandse Organisatie Voor Toegepast- Natuurwetenschappelijk Onderzoek Tno Image color correction
US20170026596A1 (en) * 2015-07-21 2017-01-26 Pixart Imaging Inc. Method and apparatus for reducing fixed pattern noise of image sensor in digital domain

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5053654B2 (en) * 2007-02-09 2012-10-17 オリンパスイメージング株式会社 Image processing apparatus and method and electronic camera
CN101399996B (en) * 2007-09-27 2010-09-29 比亚迪股份有限公司 Color filter lens array interpolation method
CN101436297B (en) 2007-11-14 2012-05-30 比亚迪股份有限公司 Image scaling method
CN101452573B (en) * 2007-12-04 2013-01-30 比亚迪股份有限公司 Image edge enhancing method
CN100557631C (en) * 2007-12-17 2009-11-04 华为技术有限公司 A kind of method and device that digital picture is carried out interpolation
CN101588447B (en) * 2008-05-23 2011-04-20 比亚迪股份有限公司 Method and system for correcting dead pixel points of images and image sensor
CN101770636B (en) * 2008-12-30 2012-09-26 比亚迪股份有限公司 Image noise removing method and device
CN101465001B (en) * 2008-12-31 2011-04-13 昆山锐芯微电子有限公司 Method for detecting image edge based on Bayer RGB
TWI394430B (en) * 2009-02-13 2013-04-21 Altek Corp Image color distortion correction method
CN101815220B (en) * 2009-02-20 2011-08-10 华晶科技股份有限公司 Method for correcting image color distortion
CN101827273B (en) * 2009-03-02 2013-03-20 华晶科技股份有限公司 A color rendition method of image
US20130279750A1 (en) * 2012-04-20 2013-10-24 Dmetrix, Inc. Identification of foreign object debris
CN110149486B (en) * 2019-05-17 2021-07-30 凌云光技术股份有限公司 Automatic detection method, correction method and system for newly-added abnormal points
CN113530528A (en) * 2020-04-13 2021-10-22 中国石油化工股份有限公司 Abnormal data detection and repair method and system based on while-drilling electrical imaging image

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3971065A (en) * 1975-03-05 1976-07-20 Eastman Kodak Company Color imaging array
US6269181B1 (en) * 1997-11-03 2001-07-31 Intel Corporation Efficient algorithm for color recovery from 8-bit to 24-bit color pixels
US20030052981A1 (en) * 2001-08-27 2003-03-20 Ramakrishna Kakarala Digital image system and method for implementing an adaptive demosaicing method
US20040051798A1 (en) * 2002-09-18 2004-03-18 Ramakrishna Kakarala Method for detecting and correcting defective pixels in a digital image sensor
US6744916B1 (en) * 1998-11-24 2004-06-01 Ricoh Company, Ltd. Image processing apparatus and method for interpolating missing pixels
US20050213843A1 (en) * 2004-03-26 2005-09-29 Fujitsu Limited Method and apparatus for calculating moving-image correction-coefficient, moving-image correcting apparatus, and computer product

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5629734A (en) * 1995-03-17 1997-05-13 Eastman Kodak Company Adaptive color plan interpolation in single sensor color electronic camera
JPH0974570A (en) * 1995-07-06 1997-03-18 Olympus Optical Co Ltd Color slurring correcting device
US7015961B2 (en) * 2002-08-16 2006-03-21 Ramakrishna Kakarala Digital image system and method for combining demosaicing and bad pixel correction
US7034874B1 (en) * 2003-03-17 2006-04-25 Biomorphic Vlsi, Inc Automatic bad pixel correction in image sensors
JP4013887B2 (en) * 2003-10-30 2007-11-28 セイコーエプソン株式会社 Image processing circuit, image display device, and image processing method
US20050231607A1 (en) * 2004-03-31 2005-10-20 Samsung Electronics Co., Ltd. Image interpolation method
EP1605403A1 (en) * 2004-06-08 2005-12-14 STMicroelectronics S.r.l. Filtering of noisy images
US7576783B2 (en) * 2005-02-04 2009-08-18 Hau Hwang Confidence based weighting for color interpolation

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3971065A (en) * 1975-03-05 1976-07-20 Eastman Kodak Company Color imaging array
US6269181B1 (en) * 1997-11-03 2001-07-31 Intel Corporation Efficient algorithm for color recovery from 8-bit to 24-bit color pixels
US6744916B1 (en) * 1998-11-24 2004-06-01 Ricoh Company, Ltd. Image processing apparatus and method for interpolating missing pixels
US20030052981A1 (en) * 2001-08-27 2003-03-20 Ramakrishna Kakarala Digital image system and method for implementing an adaptive demosaicing method
US20040051798A1 (en) * 2002-09-18 2004-03-18 Ramakrishna Kakarala Method for detecting and correcting defective pixels in a digital image sensor
US20050213843A1 (en) * 2004-03-26 2005-09-29 Fujitsu Limited Method and apparatus for calculating moving-image correction-coefficient, moving-image correcting apparatus, and computer product

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160088194A1 (en) * 2013-04-22 2016-03-24 Nederlandse Organisatie Voor Toegepast- Natuurwetenschappelijk Onderzoek Tno Image color correction
US9736338B2 (en) * 2013-04-22 2017-08-15 Nederlandse Organisatie Voor Toegepast—Natuurwetenschappelijk Onderzoek Tno Image color correction
US20170026596A1 (en) * 2015-07-21 2017-01-26 Pixart Imaging Inc. Method and apparatus for reducing fixed pattern noise of image sensor in digital domain
US9961338B2 (en) * 2015-07-21 2018-05-01 Pixart Imaging Inc. Method and apparatus for reducing fixed pattern noise of image sensor in digital domain

Also Published As

Publication number Publication date
US20070139537A1 (en) 2007-06-21
EP1986443A1 (en) 2008-10-29
EP1986443A4 (en) 2010-03-31
EP1986443B1 (en) 2012-03-21
ATE550880T1 (en) 2012-04-15
CN1988591A (en) 2007-06-27
KR20080078077A (en) 2008-08-26
KR101016408B1 (en) 2011-02-21
CN100546335C (en) 2009-09-30
WO2007071194A1 (en) 2007-06-28
US7746395B2 (en) 2010-06-29

Similar Documents

Publication Publication Date Title
US20090180687A1 (en) Method for realizing color interpolation of value correction of exceptional points
US8605164B2 (en) Image processing apparatus, control method therefor, and storage medium
US7982781B2 (en) Image processing device, image processing method, and imaging apparatus
US20080291302A1 (en) Lens Shading Compensation Apparatus and Method, and Image Processor Using the Same
US10984504B2 (en) Advanced demosaicing with angle compensation and defective pixel correction
TW200913683A (en) Techniques for reducing color artifacts in digital images
US10165207B2 (en) Image processing apparatus and image processing system
JP2018093284A (en) Visible and near-infrared light simultaneous imaging apparatus
JP2006067019A (en) Image processing apparatus, photographing apparatus, image processing method, image processing program, and recording medium
CN110246080B (en) Demosaicing method and system thereof
TW201310439A (en) Adaptive pixel compensation method
WO2013001868A1 (en) Imaging device, imaging method, and imaging program
TWI528812B (en) System and method of reducing noise
TWI464704B (en) Color information interpolation method
KR101706554B1 (en) Apparatus and method for processing image for clear edge reproduction
TWI246851B (en) Interpolation method for compensating pixel color
US20140375850A1 (en) System and method of reducing noise
TW201305965A (en) Image processing method
CN100366054C (en) Interpolation processing method during image processing
JP2010093336A (en) Image capturing apparatus and interpolation processing method
TW201445976A (en) Lookup-table-based green imbalance correction system and method
JP5034789B2 (en) Imaging device
JP2004235873A (en) Defective pixel correction system, defective pixel correction method, and defective pixel correction program
CN102957916B (en) Color information interpolating method
Kai et al. An interpolation method based on two-step approach model for bad point in bayer color image

Legal Events

Date Code Title Description
AS Assignment

Owner name: BYD COMPANY LIMITED, CHINA

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:ZHU, ZIYU;REEL/FRAME:021871/0026

Effective date: 20080531

STCB Information on status: application discontinuation

Free format text: ABANDONED -- FAILURE TO RESPOND TO AN OFFICE ACTION