CN116847211A - Color filter array and interpolation method - Google Patents

Color filter array and interpolation method Download PDF

Info

Publication number
CN116847211A
CN116847211A CN202310701068.1A CN202310701068A CN116847211A CN 116847211 A CN116847211 A CN 116847211A CN 202310701068 A CN202310701068 A CN 202310701068A CN 116847211 A CN116847211 A CN 116847211A
Authority
CN
China
Prior art keywords
white
pixel point
color filter
relative position
filter array
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
CN202310701068.1A
Other languages
Chinese (zh)
Other versions
CN116847211B (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.)
Guangzhou City Construction College
Original Assignee
Guangzhou City Construction College
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 Guangzhou City Construction College filed Critical Guangzhou City Construction College
Priority to CN202310701068.1A priority Critical patent/CN116847211B/en
Publication of CN116847211A publication Critical patent/CN116847211A/en
Application granted granted Critical
Publication of CN116847211B publication Critical patent/CN116847211B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/135Arrangement of colour filter arrays [CFA]; Filter mosaics characterised by the spectral characteristics of the filter elements based on four or more different wavelength filter elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N25/00Circuitry of solid-state image sensors [SSIS]; Control thereof
    • H04N25/50Control of the SSIS exposure
    • H04N25/57Control of the dynamic range
    • H04N25/58Control of the dynamic range involving two or more exposures

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Spectroscopy & Molecular Physics (AREA)
  • Color Television Image Signal Generators (AREA)

Abstract

The invention discloses a color filter array and an interpolation method, wherein, each row of basic units in a 4 multiplied by 4 format of the color filter array is respectively arranged in sequence: red, white, blue and green long exposure channels, white, green, white short exposure channels and green filter channels, blue, white long exposure channels, red and white long exposure channels, white short exposure channels, green, white short exposure channels and white short exposure channels, wherein the white long exposure channels are for receiving a greater exposure than the white short exposure channels. The color filter array has different white light exposure in the same working process, and the image obtained by interpolating the original data obtained by using the color filter array has the advantages of high dynamic range, high resolution and the like. The invention is widely applied to the technical field of image sensors.

Description

Color filter array and interpolation method
Technical Field
The invention relates to the technical field of image sensors, in particular to a color filter array and an interpolation method.
Background
The color filter array (Color Filter Array, CFA) can filter the color light with specific wavelength, so that the CCD or CMOS image sensor receives the filtered light, and good color reproduction capability, color signal-to-noise ratio and other effects are obtained.
The color filter array of the current mainstream is arranged in Bayer pattern (Bayer pattern), and in the color filter array of the pattern, the filter has limited perceptibility to a dark scene due to attenuation of light intensity, and larger noise can be generated in a dark area and is easy to cut off prematurely when the dark scene is shot. On the other hand, the bayer format arrangement of color filter arrays tends to limit the dynamic range of single frame scenes that can be acquired by the sensor.
Disclosure of Invention
Aiming at the technical problems that the current color filter array has limited perceptibility of a dim light scene, limited dynamic range of a single-frame scene and the like, the invention aims to provide a color filter array and an interpolation method.
In one aspect, embodiments of the present invention include a color filter array, wherein:
the color filter array includes a basic unit of a 4×4 format, which may be divided into a first unit block, a second unit block, a third unit block, and a fourth unit block, each of which is of a 2×2 format; inside the basic unit, the first unit block and the fourth unit block are in a diagonal position, and the second unit block and the third unit block are in a diagonal position;
The first unit block, the second unit block, the third unit block and the fourth unit block respectively comprise 1 white short exposure channel, 1 white long exposure channel and 1 green filtering channel; wherein, inside each of the first unit block, the second unit block, the third unit block and the fourth unit block, the white short exposure channel and the white long exposure channel are in opposite angles, and the relative positions of the green filter channels in the unit blocks are the same;
the first unit block and the fourth unit block respectively comprise 1 red filtering channel, and the second unit block and the third unit block respectively comprise 1 blue filtering channel; wherein, inside each of the first unit block and the fourth unit block, the red filter channel and the green filter channel are diagonally positioned with respect to each other; the blue filtering channel and the green filtering channel are in a diagonal position inside each of the second unit block and the third unit block;
the red filter channel is used for filtering components except red in incident light, the blue filter channel is used for filtering components except blue in the incident light, the green filter channel is used for filtering components except green in the incident light, the white long exposure channel and the white short exposure channel are respectively used for suppressing the incident light with all wavelengths to the same extent, and the white long exposure channel is used for receiving exposure larger than the white short exposure channel.
Further, the first row of the basic unit comprises a red filtering channel, a white long exposure channel, a blue filtering channel and a white long exposure channel which are sequentially arranged;
the second row of the basic unit comprises a white short exposure channel, a green filtering channel, a white short exposure channel and a green filtering channel which are sequentially arranged;
the third row of the basic unit comprises a blue filtering channel, a white long exposure channel, a red filtering channel and a white long exposure channel which are sequentially arranged;
the fourth row of the basic unit comprises a white short exposure channel, a green filtering channel, a white short exposure channel and a green filtering channel which are sequentially arranged;
the red filter channel is used for filtering components except red in the incident light, the blue filter channel is used for filtering components except blue in the incident light, the green filter channel is used for filtering components except green in the incident light, and the white long exposure channel is used for receiving a larger exposure than the white short exposure channel.
Further, the exposure time of the white long exposure channel is longer than the exposure time of the white short exposure channel, and: the exposure time of the white long exposure channel, the red filter channel, the blue filter channel and the green filter channel is the same, or the exposure time of the white short exposure channel, the red filter channel, the blue filter channel and the green filter channel is the same;
Or:
the transmittance of the white long exposure channel is greater than the transmittance of the white short exposure channel.
On the other hand, the embodiment of the invention further includes an interpolation method for interpolating a pixel point of an image sensor using the color filter array in the embodiment, where the interpolation method includes:
performing HDR synthesis on the white pixel points; the white pixel points comprise white long-exposure pixel points and white short-exposure pixel points, wherein the white long-exposure pixel points are pixel points corresponding to the white long-exposure channels, and the white short-exposure pixel points are pixel points corresponding to the white short-exposure channels;
performing white interpolation on the red pixel point, the blue pixel point and the green pixel point; the red pixel points are pixel points corresponding to the red filtering channels, the blue pixel points are pixel points corresponding to the blue filtering channels, and the green pixel points are pixel points corresponding to the green filtering channels;
performing green interpolation on the white pixel point, the red pixel point and the blue pixel point;
performing blue interpolation on the white pixel point, the red pixel point and the green pixel point;
Red interpolation is performed on the white pixel point, the blue pixel point, and the green pixel point.
Further, the performing HDR synthesis on the white pixel includes:
acquiring an exposure ratio alpha of the white long exposure channel relative to the white short exposure channel;
according to the formula
Determining a white pixel value of the white pixel point; wherein W is L For the white pixel value of the white long exposure pixel point after HDR synthesis, W s For the white pixel value of the white short exposure pixel adjacent to the white long exposure pixel after HDR synthesis, L is the luminance value of the white long exposure pixel before HDR synthesis, thr high To highlight threshold Thr low Is a low brightness threshold value, val L To use the color filter array to shoot the gray scale card with uniform illumination, the value of the white long exposure channel, val S In order to use the color filter array to shoot the gray scale card with uniform illumination, the value of the white short exposure channel, blc is the black level corresponding to the image sensor using the color filter array.
Further, the acquiring the exposure ratio α of the white long exposure channel relative to the white short exposure channel includes:
By the formulaOr->Performing calculation to obtain the exposure ratio alpha; wherein T is L For the exposure time of the white long exposure channel, T s Val is the exposure time of the white short exposure channel L To use the color filter array to shoot the gray scale card with uniform illumination, the value of the white long exposure channel, val S In order to use the color filter array to shoot the gray scale card with uniform illumination, the value of the white short exposure channel, blc is the black level corresponding to the image sensor using the color filter array.
Further, the performing white interpolation on the red pixel point, the blue pixel point, and the green pixel point includes:
according to the formula
Determining a white pixel value of the red pixel point, the blue pixel point or the green pixel point; wherein W is 22 For the white pixel value of the red pixel, the blue pixel or the green pixel at a relative position 22 in the color filter array,horizontal gradient corresponding to pixel point with relative position 22 is represented by +.>Representing the vertical gradient corresponding to the pixel point with the relative position of 22, abs () represents taking the absolute value, W 21 For the white pixel value, W, of the white pixel point of the color filter array with a relative position of 21 23 For the white pixel value, W, of the white pixel point of the color filter array at a relative position of 23 12 For the white pixel value, W, of the white pixel point of the color filter array with a relative position of 12 32 Thr represents a threshold value for the white pixel value of the white pixel point of the color filter array at a relative position of 32.
Further, the performing green interpolation on the white pixel point, the red pixel point, and the blue pixel point includes:
for the white short exposure pixel point, according to the formula
if
else if
else
Determining a green pixel value of the white short exposure pixel point; wherein G is 32 For the green pixel value of the white short-exposure pixel point of the color filter array at a relative position of 32,horizontal gradient corresponding to pixel point with relative position of 32 is represented by +.>Representing the corresponding vertical gradient of the pixel point with a relative position of 32,abs () represents absolute value, W 22 For the white pixel value, W, of the white pixel point of the color filter array at a relative position of 22 31 For the white pixel value, W, of the white pixel point of the color filter array with a relative position of 31 33 For the white pixel value, W, of the white pixel point of the color filter array at a relative position of 33 42 For the white pixel value of the white pixel point with a relative position of 42 in the color filter array, G 11 G is the green pixel value of the green pixel point with the relative position of 11 in the color filter array 13 G is the green pixel value of the green pixel point with the relative position of 13 in the color filter array 31 G is the green pixel value of the green pixel point with the relative position of 31 in the color filter array 33 G, which is the green pixel value of the green pixel point with the relative position of 33 in the color filter array 51 G is the green pixel value of the green pixel point with the relative position of 51 in the color filter array 53 A threshold value is represented by Thr for the green pixel value of the green pixel point of the color filter array with a relative position of 53;
for the white long exposure pixel point, according to the formula
if
else if
else
Determining a green pixel value of the white long-exposure pixel point; wherein G is 23 For the green pixel value of the white long-exposure pixel point of the color filter array at a relative position of 23,horizontal gradient corresponding to pixel point with relative position 23 is represented by +.>Representing the vertical gradient corresponding to a pixel point with a relative position of 23, abs () represents taking the absolute value, W 13 A white pixel value W for the white pixel point with a relative position of 13 in the color filter array 22 For the white pixel value, W, of the white pixel point of the color filter array at a relative position of 22 24 For the white pixel value, W, of the white pixel point of the color filter array at a relative position of 24 33 For the white pixel value of the white pixel point with a relative position of 33 in the color filter array, G 11 G is the green pixel value of the green pixel point with the relative position of 11 in the color filter array 13 G is the green pixel value of the green pixel point with the relative position of 13 in the color filter array 15 G is the green pixel value of the green pixel point with the relative position of 15 in the color filter array 31 G is the green pixel value of the green pixel point with the relative position of 31 in the color filter array 35 Green for the green pixel point of relative position 35 in the color filter arrayPixel value, G 33 A threshold value is represented by Thr for the green pixel value of the green pixel point with a relative position of 33 in the color filter array;
for the red pixel point or the blue pixel point, according to the formula
Grad A =|2*W 22 -W 13 -W 31 |+|G 13 -G 31 |
Grad D =|2*W 22 -W 11 -W 33 |+|G 11 -G 33 |
if|Grad A -Grad D |<Thr:
else ifGrad A <Grad D
else
Determining a green pixel value of the red pixel point or the blue pixel point; wherein G is 22 Grad is the green pixel value of the red pixel point or the blue pixel point with the relative position of 22 in the color filter array A Represents the horizontal gradient corresponding to the pixel point with the relative position of 22, grad D Representing the vertical gradient corresponding to the pixel point with the relative position of 22, abs () represents taking the absolute value, W 11 A white pixel value W for the white pixel point with a relative position of 11 in the color filter array 13 A white pixel value W for the white pixel point with a relative position of 13 in the color filter array 22 For the white pixel value, W, of the white pixel point of the color filter array at a relative position of 22 31 For the white pixel value, W, of the white pixel point of the color filter array with a relative position of 31 33 For the white pixel value of the white pixel point with a relative position of 33 in the color filter array, G 11 G is the green pixel value of the green pixel point with the relative position of 11 in the color filter array 13 G is the green pixel value of the green pixel point with the relative position of 13 in the color filter array 15 G is the green pixel value of the green pixel point with the relative position of 15 in the color filter array 31 G is the green pixel value of the green pixel point with the relative position of 31 in the color filter array 35 G is the green pixel value of the green pixel point with the relative position of 35 in the color filter array 33 The threshold value is denoted Thr for the green pixel value of the green pixel point of the color filter array with a relative position of 33.
Further, the performing blue interpolation on the white pixel point, the red pixel point, and the green pixel point includes:
for the red pixel point, according to the formula
if
else if
else
Determining a blue pixel value of the red pixel point; wherein B is 33 For the blue pixel value of the red pixel point of the color filter array at a relative position of 33,represents the horizontal gradient corresponding to the pixel point with the relative position of 33,representing the vertical gradient corresponding to the pixel point with the relative position of 33, abs () represents taking the absolute value, W 13 A white pixel value W for the white pixel point with a relative position of 13 in the color filter array 23 For the white pixel value, W, of the white pixel point of the color filter array at a relative position of 23 31 For the white pixel value, W, of the white pixel point of the color filter array with a relative position of 31 32 A white pixel value W for the white pixel point with a relative position of 32 in the color filter array 33 For the white pixel value, W, of the white pixel point of the color filter array at a relative position of 33 34 For the white pixel value, W, of the white pixel point of the color filter array at a relative position of 34 35 A white pixel value W for the white pixel point with a relative position of 35 in the color filter array 43 A white pixel value W for the white pixel point with a relative position 43 in the color filter array 53 B is the white pixel value of the white pixel point with the relative position of 53 in the color filter array 13 B, the blue pixel value of the blue pixel point with the relative position of 13 in the color filter array 31 B, as the blue pixel value of the blue pixel point with the relative position of 31 in the color filter array 35 B, the blue pixel value of the blue pixel point with the relative position of 35 in the color filter array 53 For the blue pixel value of the blue pixel point with a relative position of 53 in the color filter array, thr represents a threshold value;
for the green pixel point, according to the formula
Determining a blue pixel value of the green pixel point; wherein B is 22 B is the blue pixel value of the green pixel point with the relative position of 22 in the color filter array 24 B is the blue pixel value of the green pixel point with the relative position of 24 in the color filter array 42 B is the blue pixel value of the green pixel point with the relative position of 42 in the color filter array 44 Blue pixel value, W, for the green pixel point of the color filter array at a relative position 44 11 A white pixel value W for the white pixel point with a relative position of 11 in the color filter array 15 A white pixel value W for the white pixel point with a relative position of 15 in the color filter array 22 For the white pixel value, W, of the white pixel point of the color filter array at a relative position of 22 24 Filtering the array for the colorWhite pixel value, W, of said white pixel point with a relative position of 24 33 For the white pixel value, W, of the white pixel point of the color filter array at a relative position of 33 42 A white pixel value W for the white pixel point of the color filter array with a relative position 42 44 A white pixel value W for the white pixel point with a relative position 44 in the color filter array 51 A white pixel value W for the white pixel point with a relative position of 51 in the color filter array 55 B is the white pixel value of the white pixel point with the relative position of 55 in the color filter array 11 B, the blue pixel value of the blue pixel point with the relative position of 11 in the color filter array 15 B, as the blue pixel value of the blue pixel point with the relative position of 15 in the color filter array 33 B is the blue pixel value of the blue pixel point with the relative position of 33 in the color filter array 51 B is the blue pixel value of the blue pixel point with the relative position of 51 in the color filter array 55 A threshold value is represented by Thr for the blue pixel value of the blue pixel point with a relative position of 55 in the color filter array;
for the white pixel point, according to the formula
if
else if
else
Determining a blue pixel value of the white pixel point; wherein B is 22 For the blue pixel value, W, of the white pixel point of the color filter array at a relative position of 22 12 For the white pixel value, W, of the white pixel point of the color filter array with a relative position of 12 21 For the white pixel value, W, of the white pixel point of the color filter array with a relative position of 21 22 For the white pixel value, W, of the white pixel point of the color filter array at a relative position of 22 23 For the white pixel value, W, of the white pixel point of the color filter array at a relative position of 23 32 B is the white pixel value of the white pixel point with the relative position of 32 in the color filter array 12 A blue pixel value of a pixel point with a relative position of 12 in the color filter array, B 21 A blue pixel value of a pixel point with a relative position of 21 in the color filter array, B 23 A blue pixel value B for a pixel point with a relative position of 23 in the color filter array 32 And the blue pixel value of the pixel point with the relative position of 32 in the color filter array.
Further, the interpolation method further includes:
for any pixel point, obtaining a red pixel value R, a green pixel value G, a blue pixel value B and a white pixel value W of the pixel point;
by the formulaCalculating gain valuegain;
According to the formula
Calculating a corrected red pixel valueCorrecting the green pixel value +.>And correcting the blue pixel value +.>
The beneficial effects of the invention are as follows: the color filter array in the embodiment is provided with the white long exposure channel (L) and the white short exposure channel (S) as channels of white light, so that different positions of the image sensor applying the color filter array have different white light exposure amounts in the same working process, thereby being beneficial to the image sensor to achieve a higher dynamic range and obtaining good image resolving power; the image obtained by interpolating the raw data obtained using the color filter array has the advantages of high dynamic range, high resolution, and the like.
Drawings
FIGS. 1 (a) and 1 (b) are schematic diagrams of the basic unit of a color filter array in an embodiment;
FIG. 2 is a step diagram of an interpolation method according to an embodiment;
fig. 3 (a) and 3 (b) are schematic views of two 2×2 units in the basic unit shown in fig. 1 (a);
FIG. 4 is a schematic diagram of the HDR synthesis of white pixels in the embodiment;
FIG. 5 is a schematic diagram showing the procedure of determining the green pixel value of the white short exposure pixel point according to the embodiment;
FIG. 6 is a schematic diagram showing a step of determining a green pixel value of a white long-exposure pixel in an embodiment;
fig. 7 is a schematic diagram of a step of determining a green pixel value of a red pixel or a blue pixel in the embodiment;
FIG. 8 is a schematic diagram of a step of determining a blue pixel value of a red pixel point according to an embodiment;
FIG. 9 is a schematic diagram of a step of determining a blue pixel value of a green pixel point according to an embodiment;
fig. 10 is a schematic diagram of a step of determining a blue pixel value of a white pixel point according to an embodiment.
Detailed Description
In this embodiment, the basic unit of the color filter array is a 4×4pattern, for example, a complete color filter array is obtained by sequentially combining a plurality of 4×4 patterns shown in fig. 1 (a) or fig. 1 (b).
For convenience of explanation, referring to fig. 1 (a) or 1 (b), one basic unit may be divided into 4 unit blocks of a first unit block, a second unit block, a third unit block, a fourth unit block, and the like, each unit block being in a 2×2 format, i.e., each unit block being composed of 4 channels. In the present embodiment, the "unit block" is a concept proposed for convenience of description of the structure of the basic unit, and does not mean that there is a necessary hierarchical relationship between the "basic unit" and the "unit block", or that different "unit blocks" are mutually independent entities.
Referring to fig. 1 (a) or 1 (b), inside the basic unit, the first unit block and the fourth unit block are positioned diagonally to each other, and the second unit block and the third unit block are positioned diagonally to each other, for example, the first unit block, the second unit block, the third unit block, and the fourth unit block are positioned at the upper left corner, the upper right corner, the lower left corner, and the lower right corner, respectively, inside the basic unit.
In this embodiment, the basic unit of one color filter array includes 16 channels, specifically including 4 white long exposure channels, 4 white short exposure channels, 4 green filter channels, 2 red filter channels, and 2 blue filter channels, which are respectively distributed in different unit blocks.
For example, either fig. 1 (a) or fig. 1 (b) is a possible channel arrangement.
Referring to fig. 1 (a) or 1 (b), the first, second, third and fourth unit blocks include 1 white short exposure channel (S), 1 white long exposure channel (L) and 1 green filter channel (G), respectively. Wherein, inside each of the first unit block, the second unit block, the third unit block and the fourth unit block, the white short exposure channel and the white long exposure channel are in opposite angles, and the relative positions of the green filter channels in the unit blocks are the same. For example, in the first, second, third, and fourth unit blocks, the green filter channels (G) are all located at the lower right corner position, while the white long exposure channels (L) are all located at the upper right corner (or lower left corner) position, and the white short exposure channels (S) are all located at the lower left corner (or upper right corner) position.
Referring to fig. 1 (a), the first and fourth unit blocks respectively include 1 red filter channel (R), and the second and third unit blocks respectively include 1 blue filter channel (B). Wherein, inside each of the first unit block and the fourth unit block, the red filter channel (R) and the green filter channel (G) are diagonally positioned with respect to each other; inside each of the second unit block and the third unit block, the blue filter channel (B) and the green filter channel (G) are diagonally positioned with respect to each other. For example, referring to fig. 1 (a), inside each of the first and fourth unit blocks, the red filter channel (R) is located at the upper left corner position; inside each of the second unit block and the third unit block, the blue filter channel (B) is located at the upper left corner position.
Referring to fig. 1 (B), the first unit block and the fourth unit block respectively include 1 blue filter channel (B), and the second unit block and the third unit block respectively include 1 red filter channel (R). Wherein, inside each of the first unit block and the fourth unit block, the blue filter channel (B) and the green filter channel (G) are diagonally positioned with respect to each other; inside each of the second unit block and the third unit block, the red filter channel (R) and the green filter channel (G) are diagonally positioned with respect to each other. For example, referring to fig. 1 (B), inside each of the first unit block and the fourth unit block, the blue filter channel (B) is located at the upper left corner position; inside each of the second and third unit blocks, the red filter channel (R) is located at the upper left corner position.
The channel arrangement shown in fig. 1 (a) and 1 (b) and other channel arrangements satisfying the relative relationship between the channels are all possible, and the same technical effects can be achieved, and in this embodiment, the channel arrangement shown in fig. 1 (a) is taken as an example, and the description about the principle and use etc. of fig. 1 (a) is equally applicable to the channel arrangement shown in fig. 1 (b) and other channel arrangements satisfying the relative relationship between the channels.
Referring to fig. 1 (a), the first row in the 4×4pattern includes a red filter channel (R), a white long exposure channel (L), a blue filter channel (B), and a white long exposure channel (L) arranged in this order; the second row comprises a white short exposure channel (S), a green filter channel (G), a white short exposure channel (S) and a green filter channel (G) which are sequentially arranged; the third row comprises a blue filter channel (B), a white long exposure channel (L), a red filter channel (R) and a white long exposure channel (L) which are sequentially arranged; the fourth row includes a white short-exposure channel (S), a green filter channel (G), a white short-exposure channel (S), and a green filter channel (G) arranged in this order.
Wherein the red filter channel (R) is used for filtering components other than red in the incident light, namely only allowing red light to pass through; the blue filter channel (B) is used for filtering components other than blue in the incident light, namely only allowing blue light to pass through; the green filter channel (G) is used for filtering components other than green in the incident light, namely, only allowing the green light to pass through; the white long exposure channel (L) and the white short exposure channel (S) may not be filtered out for any specific color, i.e. both the white long exposure channel and the white short exposure channel allow light of any color (white light) to pass through.
When the color filter array shown in fig. 1 (a) is used in an image sensor, and is operated, the white long exposure channel (L) receives a larger exposure than the white short exposure channel (S), i.e., each exposure, the pixel corresponding to the white long exposure channel (L) on the image sensor receives a larger exposure than the pixel corresponding to the white short exposure channel (S).
In the color filter array shown in fig. 1 (a), the basic unit of the 4×4pattern contains 4 white long exposure channels (L), 4 white short exposure channels (S) (8 white channels in total), 4 green filter channels (G), 2 red filter channels (R), and 2 blue filter channels (B), that is, the white pixel ratio is 50%, the green pixel ratio is 25%, and the red pixel and blue pixel ratio are 12.5%. Because the white long exposure channel (L) and the white short exposure channel (S) are simultaneously arranged as channels of white light, different positions of the image sensor applying the color filter array have different exposure amounts of the white light in the same working process, thereby being beneficial to the image sensor to achieve higher dynamic range and obtaining good image resolving power.
In the present embodiment, the characteristic that the "white long exposure channel (L) receives a larger exposure amount than the white short exposure channel (S)" can be achieved by:
Mode 1: the exposure time of the white long exposure channel (L) is longer than the exposure time of the white short exposure channel (S);
mode 2: the transmittance of the white long exposure channel (L) is greater than the transmittance of the white short exposure channel (S).
In mode 1, the exposure time of each channel of the color filter array (or the corresponding pixel in the image sensor) may be individually controlled so that the exposure time of the white long exposure channel (L) is longer than the exposure time of the white short exposure channel (S) at each exposure. Specifically, mode 1 has the following two cases:
(1) The exposure time of the white long exposure channel (L), the red filter channel (R), the blue filter channel (B) and the green filter channel (G) are the same, and are all larger values, and the exposure time of the white short exposure channel (S) is a smaller value. In this case, it is advantageous for the image sensor to obtain more information in the highlight scene.
(2) The exposure time of the white short exposure channel (S), the red filter channel (R), the blue filter channel (B) and the green filter channel (G) are the same, and are smaller, and the exposure time of the white long exposure channel (L) is larger. This is advantageous in that the image sensor obtains more dark field detail in dark scenes.
In the mode 2, the attenuation sheet can be added on the white short exposure channel (S) independently, and the white long exposure channel (L) does not use the attenuation sheet, so that the transmissivity of the white short exposure channel (S) is reduced, the transmissivity of the white long exposure channel (L) is lower than that of the white short exposure channel (S), and the image sensor can obtain more information under a highlight scene.
For the image sensor of the color filter array in the present embodiment, an interpolation method as shown in fig. 2 is provided to interpolate pixel points in the image sensor. Referring to fig. 2, the interpolation method includes the steps of:
s1, performing HDR synthesis on white pixel points;
s2, white interpolation is carried out on the red pixel point, the blue pixel point and the green pixel point; the red pixel points are pixel points corresponding to the red filtering channels, the blue pixel points are pixel points corresponding to the blue filtering channels, and the green pixel points are pixel points corresponding to the green filtering channels;
s3, green interpolation is carried out on the white pixel point, the red pixel point and the blue pixel point;
s4, blue interpolation is carried out on the white pixel point, the red pixel point and the green pixel point;
s5, red interpolation is carried out on the white pixel point, the blue pixel point and the green pixel point.
In steps S1 to S5, when the color filter array is applied to the image sensor, the pixel point corresponding to the white long exposure channel (L) on the image sensor is referred to as a white long exposure pixel point, the pixel point corresponding to the white short exposure channel (S) is referred to as a white short exposure pixel point, the pixel point corresponding to the red filter channel (R) is referred to as a red pixel point, the pixel point corresponding to the blue filter channel (B) is referred to as a blue pixel point, and the pixel point corresponding to the green filter channel (G) is referred to as a green pixel point. The white long-exposure pixel point and the white short-exposure pixel point are both sensitive to white light, so the white long-exposure pixel point and the white short-exposure pixel point can be collectively called a white pixel point.
In performing step S1, that is, performing the HDR synthesis on the white pixel, the following steps may be specifically performed:
s101, acquiring an exposure ratio alpha of a white long exposure channel relative to a white short exposure channel;
s102, determining the white pixel value of the white pixel point according to the formula (1).
In step S101, for the color filter array implemented in mode 1, the color filter array can be obtained by the formulaCalculating an exposure ratio alpha, wherein T L Exposure time for white long exposure channel, T s Exposure time for a white short exposure channel; for the color filter array implemented by means 2, it is possible to apply the formula +.>Calculating an exposure ratio alpha, wherein Val L Values of white long exposure channel obtained by calibrating color filter array (for example, shooting gray card with uniform illumination) Val S In order to calibrate the color filter array, the obtained value of the white short exposure channel is blc, which is the black level corresponding to the image sensor when the color filter array is calibrated.
After the exposure ratio α is obtained by executing step S101, for the case shown in fig. 1 (a)Basic units from which two 2 x 2 units as shown in fig. 3 (a) and 3 (b) can be obtained. For these two 2×2 cells, step S102 is performed to set a highlight threshold Thr high And a low brightness threshold Thr low Calculation is performed by the formula (1), wherein W L To synthesize the white pixel value of the white long exposure pixel point by HDR, W S For the white pixel value of the white short exposure pixel adjacent to the white long exposure pixel after the HDR synthesis, L is the luminance value of the white long exposure pixel before the HDR synthesis.
By executing step S1, pixel values of pixel points corresponding to half channels (i.e., a white long-exposure channel and a white short-exposure channel) in the basic unit shown in fig. 1 (a) can be calculated, so as to provide data for performing interpolation in steps S2-S5.
In the present embodiment, the interpolation performed in steps S2 to S5 is a process of calculating an undetected pixel value from a point where the pixel value is detected in the image sensor. For example, in step S3, the green pixel point in the image sensor can detect the green pixel value, but the white pixel point, the red pixel point and the blue pixel point do not detect the green pixel value, so the green pixel values corresponding to the white pixel point, the red pixel point and the blue pixel point can be calculated respectively through interpolation. By executing steps S2-S5, each pixel in the image sensor has its corresponding four different color pixel values, e.g., any one of the green pixel in the image sensor has its corresponding green pixel value, white pixel value, red pixel value, and blue pixel value, wherein the green pixel value is detected by the green pixel, and the white pixel value, red pixel value, and blue pixel value are interpolated.
In performing step S2, that is, performing white interpolation on the red pixel, the blue pixel, and the green pixel, the following steps may be specifically performed:
s201, determining white pixel values of red pixel points, blue pixel points or green pixel points according to formulas (2) and (3).
In the formulas (2) and (3), W 22 For the white pixel value of the red pixel, blue pixel or green pixel at a relative position 22 in the color filter array,representing the horizontal gradient corresponding to the pixel point at relative position 22,representing the vertical gradient corresponding to the pixel point with the relative position of 22, abs () represents taking the absolute value, W 21 White pixel value W for white pixel point with relative position 21 in color filter array 23 White pixel value, W, for a white pixel point of 23 relative positions in the color filter array 12 White pixel value W for white pixel point with relative position of 12 in color filter array 32 The threshold value is denoted Thr, which is the white pixel value of the white pixel point of the color filter array with a relative position of 32.
When the calculation is performed according to the formulas (2) and (3), the relative positions of the respective pixel points are as shown in fig. 4. Fig. 4 is a part of a color filter array using the 4×4pattern shown in fig. 1 (a) as a basic unit, and in this embodiment, including fig. 4, in describing the position, a channel (or a pixel point in a corresponding image sensor) with x-axis and y-axis in the color filter array is represented in the form of "xy", and the positive direction of the abscissa is horizontal to the right, and the positive direction of the ordinate is vertical to the bottom. For example, in fig. 4, "relative position 23" indicates a channel (or a pixel point in a corresponding image sensor) of the 2 nd row from top to bottom and the 3 rd column from left to right.
Step S2 is executed for each of the red pixel point, the blue pixel point and the green pixel point, so that respective white pixel values of each of the red pixel point, the blue pixel point and the green pixel point can be obtained, thereby completing interpolation of the white pixel values.
In performing step S3, that is, performing green interpolation on the white pixel point, the red pixel point, and the blue pixel point, the following steps may be specifically performed:
s301, for the white short exposure pixel points, determining green pixel values of the white short exposure pixel points according to formulas (4) - (7);
if
else if
else
FIG. 5 shows the structure of FIG. 1 (a)The 4 x 4pattern shown is part of a color filter array of basic cells. In performing the calculations according to formulas (4) - (7), refer to FIG. 5, G 32 Is the green pixel value of the white short-exposure pixel point with a relative position of 32 in the color filter array,horizontal gradient corresponding to pixel point with relative position of 32 is represented by +.>Representing the vertical gradient corresponding to a pixel point with a relative position of 32, abs () represents taking the absolute value, W 22 White pixel value, W, for a white pixel point of relative position 22 in the color filter array 31 White pixel value W of white pixel point with relative position of 31 in color filter array 33 White pixel value, W, is the white pixel point of the color filter array at a relative position of 33 42 A white pixel value G for a white pixel point of 42 relative positions in the color filter array 11 G is the green pixel value of the green pixel point with the relative position of 11 in the color filter array 13 G is the green pixel value of the green pixel point with the relative position of 13 in the color filter array 31 G is the green pixel value of the green pixel point with the relative position of 31 in the color filter array 33 G is the green pixel value of the green pixel point with the relative position of 33 in the color filter array 51 G is the green pixel value of the green pixel point with the relative position of 51 in the color filter array 53 The threshold value is denoted Thr for the green pixel value of the green pixel point of the color filter array with a relative position of 53.
S302, for the white long exposure pixel point, determining a green pixel value of the white long exposure pixel point according to formulas (8) - (11);
if
else if/>
else
fig. 6 is a part of a color filter array having the 4×4pattern shown in fig. 1 (a) as a basic unit. In performing the calculations according to formulas (8) - (11), refer to FIG. 6, G 23 For the green pixel value of the white long exposure pixel with a relative position of 23 in the color filter array,horizontal gradient corresponding to pixel point with relative position 23 is represented by +. >Representing the vertical gradient corresponding to a pixel point with a relative position of 23, abs () represents taking the absolute value, W 13 White pixel value W of white pixel point with relative position 13 in color filter array 22 White pixel value, W, for a white pixel point of relative position 22 in the color filter array 24 White pixel value W for white pixel point with relative position 24 in color filter array 33 For colour filter arraysWhite pixel value, G, of white pixel point with relative position 33 in column 11 G is the green pixel value of the green pixel point with the relative position of 11 in the color filter array 13 G is the green pixel value of the green pixel point with the relative position of 13 in the color filter array 15 G is the green pixel value of the green pixel point with the relative position of 15 in the color filter array 31 G is the green pixel value of the green pixel point with the relative position of 31 in the color filter array 35 G is the green pixel value of the green pixel point with the relative position of 35 in the color filter array 33 The threshold value is represented by Thr, which is the green pixel value of the green pixel point with the relative position of 33 in the color filter array;
s303, for the red pixel point or the blue pixel point, determining a green pixel value of the red pixel point or the blue pixel point according to formulas (12) - (15);
Grad A =|2*W 22 -W 13 -W 31 |+|G 13 -G 31 |
Grad D =|2*W 22 -W 11 -W 33 |+|G 11 -G 33 | (12)
if|Grad A -Grad D |<Thr:
else if Grad A <Grad D
else
Fig. 7 is a part of a color filter array having the 4×4pattern shown in fig. 1 (a) as a basic unit. In accordance with formulas (12) - (15)For calculation, refer to fig. 7,G 22 For the red pixel point or the green pixel value of the blue pixel point with the relative position of 22 in the color filter array, grad A Represents the horizontal gradient corresponding to the pixel point with the relative position of 22, grad D Representing the vertical gradient corresponding to the pixel point with the relative position of 22, abs () represents taking the absolute value, W 11 White pixel value W for a white pixel point of 11 relative positions in the color filter array 13 White pixel value W of white pixel point with relative position 13 in color filter array 22 White pixel value, W, for a white pixel point of relative position 22 in the color filter array 31 White pixel value W of white pixel point with relative position of 31 in color filter array 33 For the white pixel value of the white pixel point with the relative position of 33 in the color filter array, G 11 G is the green pixel value of the green pixel point with the relative position of 11 in the color filter array 13 G is the green pixel value of the green pixel point with the relative position of 13 in the color filter array 15 G is the green pixel value of the green pixel point with the relative position of 15 in the color filter array 31 G is the green pixel value of the green pixel point with the relative position of 31 in the color filter array 35 G is the green pixel value of the green pixel point with the relative position of 35 in the color filter array 33 The threshold value is denoted Thr for the green pixel value of the green pixel point with a relative position of 33 in the color filter array.
In this embodiment, step S301 is performed on each white short-exposure pixel point, so as to obtain a respective green pixel value of each white short-exposure pixel point; step S302 is executed for each white long exposure pixel point respectively, so that a respective green pixel value of each white long exposure pixel point can be obtained; step S303 is performed for each red pixel or each blue pixel, respectively, so that a respective green pixel value for each red pixel or each blue pixel can be obtained. Accordingly, by performing steps S301 to S303, the respective green pixel values of each of the white pixel point, the red pixel point, and the blue pixel point can be obtained, thereby completing the interpolation of the green pixel values.
In performing step S4, that is, performing blue interpolation on the white pixel point, the red pixel point, and the green pixel point, the following steps may be specifically performed:
s401, for the red pixel point, determining a blue pixel value of the red pixel point according to formulas (16) - (19);
if
else if
else
Fig. 8 is a part of a color filter array having the 4×4pattern shown in fig. 1 (a) as a basic unit. In performing the calculations according to formulas (16) - (19), refer to FIG. 8, B 33 For the blue pixel value of the red pixel point with a relative position of 33 in the color filter array,pixel point pair representing relative position 33Horizontal gradient of response,/->Representing the vertical gradient corresponding to the pixel point with the relative position of 33, abs () represents taking the absolute value, W 13 White pixel value W of white pixel point with relative position 13 in color filter array 23 White pixel value, W, for a white pixel point of 23 relative positions in the color filter array 31 White pixel value W of white pixel point with relative position of 31 in color filter array 32 White pixel value W for white pixel point with relative position 32 in color filter array 33 White pixel value, W, is the white pixel point of the color filter array at a relative position of 33 34 White pixel value, W, is the white pixel point of the color filter array at a relative position of 34 35 White pixel value W for a white pixel point of 35 relative positions in the color filter array 43 White pixel value, W, is the white pixel point of the color filter array at a relative position of 43 53 A white pixel value of a white pixel point with a relative position of 53 in the color filter array, B 13 B is the blue pixel value of the blue pixel point with the relative position of 13 in the color filter array 31 B is the blue pixel value of the blue pixel point with the relative position of 31 in the color filter array 35 Blue pixel value of blue pixel point with relative position of 35 in color filter array, B 53 The threshold value is denoted Thr for the blue pixel value of the blue pixel point of the color filter array with a relative position of 53.
S402, for the green pixel points, determining blue pixel values of the green pixel points according to formulas (20) - (23).
/>
Fig. 9 is a part of a color filter array having the 4×4pattern shown in fig. 1 (a) as a basic unit. In performing the calculations according to formulas (20) - (23), refer to FIG. 9, B 22 Blue pixel value of green pixel point with relative position of 22 in color filter array, B 24 Blue pixel value of green pixel point with relative position of 24 in color filter array, B 42 Blue pixel value of green pixel point with relative position of 42 in color filter array, B 44 Blue pixel value, W, of green pixel point with relative position 44 in color filter array 11 White pixel value W for a white pixel point of 11 relative positions in the color filter array 15 White pixel value W of white pixel point with relative position of 15 in color filter array 22 White pixel value, W, for a white pixel point of relative position 22 in the color filter array 24 White pixel value W for white pixel point with relative position 24 in color filter array 33 White pixel value, W, is the white pixel point of the color filter array at a relative position of 33 42 White pixel value W for a white pixel point of 42 relative positions in the color filter array 44 White pixel value, W, is the white pixel point of the color filter array at a relative position of 44 51 Is the white pixel value, W, of the white pixel point with the relative position of 51 in the color filter array 55 B is the white pixel value of the white pixel point with the relative position of 55 in the color filter array 11 B is the blue pixel value of the blue pixel point with the relative position of 11 in the color filter array 15 B is the blue pixel value of the blue pixel point with the relative position of 15 in the color filter array 33 Blue pixel value B for blue pixel point with relative position 33 in color filter array 51 For filtering the phases in the arrayBlue pixel value, B, for blue pixel point at position 51 55 The threshold value is denoted Thr for the blue pixel value of the blue pixel point with a relative position of 55 in the color filter array.
S403, for the white pixel point, determining a blue pixel value of the white pixel point according to formulas (24) - (27).
if
else if
else
Fig. 10 is a part of a color filter array having the 4×4pattern shown in fig. 1 (a) as a basic unit. In performing the calculations according to formulas (20) - (23), refer to FIG. 10, B 22 Blue pixel value, W, for a white pixel point of relative position 22 in the color filter array 12 White pixel value W for white pixel point with relative position of 12 in color filter array 21 For relative position in the color filter arrayWhite pixel value, W, of 21 white pixel point 22 White pixel value, W, for a white pixel point of relative position 22 in the color filter array 23 White pixel value, W, for a white pixel point of 23 relative positions in the color filter array 32 A white pixel value B for a white pixel point with a relative position of 32 in the color filter array 12 Blue pixel value of pixel point with relative position of 12 in color filter array, B 21 Blue pixel value of pixel point with relative position of 21 in color filter array, B 23 Blue pixel value of pixel point with relative position of 23 in color filter array, B 32 Is the blue pixel value of the pixel point with the relative position of 32 in the color filter array.
In this embodiment, step S401 is performed for each red pixel point, so as to obtain a respective blue pixel value of each red; step S402 is executed for each green pixel point, so as to obtain a respective blue pixel value of each green pixel point; step S403 is performed for each white pixel point, respectively, and a respective blue pixel value for each white pixel point can be obtained. Thus, by performing steps S301 to S303, the respective blue pixel values of each of the green pixel point, the red pixel point, and the white pixel point can be obtained, thereby completing interpolation of the blue pixel values.
In the present embodiment, the principle of interpolation of the red pixel value is the same as that of the blue pixel value, and therefore, interpolation of the red pixel value can be performed with reference to steps S401 to S403. Specifically, the "red" and "blue" in steps S401 to S403 are swapped, and an interpolation process of the red pixel value is obtained.
By performing steps S1 to S5, pixel values of respective pixel points in the image sensor using the color filter array in the present embodiment can be obtained. Specifically, for any one pixel point, it has a red pixel value R, a green pixel value G, a blue pixel value B, and a white pixel value W obtained by detection or interpolation. On the basis of performing steps S1-S5, the following steps may also be performed:
S6, calculating a gain value gain through a formula (28);
s7, according to the formula(29) - (31) calculating corrected red pixel valueCorrecting the green pixel value +.>And correcting the blue pixel value +.>
In step S6, the calculated gain value gain is a Luma gain, and may be used to correct the red pixel value R, the green pixel value G, and the blue pixel value B of the pixel point, to obtain a red pixel valueCorrecting the green pixel value +.>And correcting the blue pixel value +.>Can be used as the corresponding output value of the pixel point.
By executing steps S1 to S4 and steps S5 to S6, the raw map acquired using the color filter array can be converted into RGB format. According to the principle of the color filter array in the present embodiment, the RGB format image obtained by performing the interpolation in steps S1-S4 has the advantages of high dynamic range and high resolution.
It should be noted that, unless otherwise specified, when a feature is referred to as being "fixed" or "connected" to another feature, it may be directly or indirectly fixed or connected to the other feature. Further, the descriptions of the upper, lower, left, right, etc. used in this disclosure are merely with respect to the mutual positional relationship of the various components of this disclosure in the drawings. As used in this disclosure, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. In addition, unless defined otherwise, all technical and scientific terms used in this example have the same meaning as commonly understood by one of ordinary skill in the art. The terminology used in the description of the embodiments is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. The term "and/or" as used in this embodiment includes any combination of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used in this disclosure to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element of the same type from another. For example, a first element could also be termed a second element, and, similarly, a second element could also be termed a first element, without departing from the scope of the present disclosure. The use of any and all examples, or exemplary language (e.g., "such as") provided herein, is intended merely to better illuminate embodiments of the invention and does not pose a limitation on the scope of the invention unless otherwise claimed.
It should be appreciated that embodiments of the invention may be implemented or realized by computer hardware, a combination of hardware and software, or by computer instructions stored in a non-transitory computer readable memory. The methods may be implemented in a computer program using standard programming techniques, including a non-transitory computer readable storage medium configured with a computer program, where the storage medium so configured causes a computer to operate in a specific and predefined manner, in accordance with the methods and drawings described in the specific embodiments. Each program may be implemented in a high level procedural or object oriented programming language to communicate with a computer system. However, the program(s) can be implemented in assembly or machine language, if desired. In any case, the language may be a compiled or interpreted language. Furthermore, the program can be run on a programmed application specific integrated circuit for this purpose.
Furthermore, the operations of the processes described in the present embodiments may be performed in any suitable order unless otherwise indicated herein or otherwise clearly contradicted by context. The processes (or variations and/or combinations thereof) described in this embodiment may be performed under control of one or more computer systems configured with executable instructions, and may be implemented as code (e.g., executable instructions, one or more computer programs, or one or more applications), by hardware, or combinations thereof, that collectively execute on one or more processors. The computer program includes a plurality of instructions executable by one or more processors.
Further, the method may be implemented in any type of computing platform operatively connected to a suitable computing platform, including, but not limited to, a personal computer, mini-computer, mainframe, workstation, network or distributed computing environment, separate or integrated computer platform, or in communication with a charged particle tool or other imaging device, and so forth. Aspects of the invention may be implemented in machine-readable code stored on a non-transitory storage medium or device, whether removable or integrated into a computing platform, such as a hard disk, optical read and/or write storage medium, RAM, ROM, etc., such that it is readable by a programmable computer, which when read by a computer, is operable to configure and operate the computer to perform the processes described herein. Further, the machine readable code, or portions thereof, may be transmitted over a wired or wireless network. When such media includes instructions or programs that, in conjunction with a microprocessor or other data processor, implement the steps described above, the invention described in this embodiment includes these and other different types of non-transitory computer-readable storage media. The invention also includes the computer itself when programmed according to the methods and techniques of the present invention.
The computer program can be applied to the input data to perform the functions described in this embodiment, thereby converting the input data to generate output data that is stored to the non-volatile memory. The output information may also be applied to one or more output devices such as a display. In a preferred embodiment of the invention, the transformed data represents physical and tangible objects, including specific visual depictions of physical and tangible objects produced on a display.
The present invention is not limited to the above embodiments, but can be modified, equivalent, improved, etc. by the same means to achieve the technical effects of the present invention, which are included in the spirit and principle of the present invention. Various modifications and variations are possible in the technical solution and/or in the embodiments within the scope of the invention.

Claims (10)

1. A color filter array, characterized by:
the color filter array includes a basic unit of a 4×4 format, which may be divided into a first unit block, a second unit block, a third unit block, and a fourth unit block, each of which is of a 2×2 format; inside the basic unit, the first unit block and the fourth unit block are in a diagonal position, and the second unit block and the third unit block are in a diagonal position;
The first unit block, the second unit block, the third unit block and the fourth unit block respectively comprise 1 white short exposure channel, 1 white long exposure channel and 1 green filtering channel; wherein, inside each of the first unit block, the second unit block, the third unit block and the fourth unit block, the white short exposure channel and the white long exposure channel are in opposite angles, and the relative positions of the green filter channels in the unit blocks are the same;
the first unit block and the fourth unit block respectively comprise 1 red filtering channel, and the second unit block and the third unit block respectively comprise 1 blue filtering channel; wherein, inside each of the first unit block and the fourth unit block, the red filter channel and the green filter channel are diagonally positioned with respect to each other; the blue filtering channel and the green filtering channel are in a diagonal position inside each of the second unit block and the third unit block;
the red filter channel is used for filtering components except red in incident light, the blue filter channel is used for filtering components except blue in the incident light, the green filter channel is used for filtering components except green in the incident light, the white long exposure channel and the white short exposure channel are respectively used for suppressing the incident light with all wavelengths to the same extent, and the white long exposure channel is used for receiving exposure larger than the white short exposure channel.
2. The color filter array of claim 2, wherein:
the first row of the basic unit comprises a red filtering channel, a white long exposure channel, a blue filtering channel and a white long exposure channel which are sequentially arranged;
the second row of the basic unit comprises a white short exposure channel, a green filtering channel, a white short exposure channel and a green filtering channel which are sequentially arranged;
the third row of the basic unit comprises a blue filtering channel, a white long exposure channel, a red filtering channel and a white long exposure channel which are sequentially arranged;
the fourth row of the basic unit comprises a white short exposure channel, a green filtering channel, a white short exposure channel and a green filtering channel which are sequentially arranged.
3. The color filter array of claim 2, wherein:
the exposure time of the white long exposure channel is longer than that of the white short exposure channel, and: the exposure time of the white long exposure channel, the red filter channel, the blue filter channel and the green filter channel is the same, or the exposure time of the white short exposure channel, the red filter channel, the blue filter channel and the green filter channel is the same;
Or alternatively
The transmittance of the white long exposure channel is greater than the transmittance of the white short exposure channel.
4. An interpolation method for interpolating a pixel point of an image sensor using the color filter array of any one of claims 1 to 3, the interpolation method comprising:
performing HDR synthesis on the white pixel points; the white pixel points comprise white long-exposure pixel points and white short-exposure pixel points, wherein the white long-exposure pixel points are pixel points corresponding to the white long-exposure channels, and the white short-exposure pixel points are pixel points corresponding to the white short-exposure channels;
performing white interpolation on the red pixel point, the blue pixel point and the green pixel point; the red pixel points are pixel points corresponding to the red filtering channels, the blue pixel points are pixel points corresponding to the blue filtering channels, and the green pixel points are pixel points corresponding to the green filtering channels;
performing green interpolation on the white pixel point, the red pixel point and the blue pixel point;
performing blue interpolation on the white pixel point, the red pixel point and the green pixel point;
Red interpolation is performed on the white pixel point, the blue pixel point, and the green pixel point.
5. The interpolation method according to claim 4, wherein the performing HDR synthesis on the white pixel points includes:
acquiring an exposure ratio alpha of the white long exposure channel relative to the white short exposure channel;
according to the formula
Determining a white pixel value of the white pixel point; wherein W is L For the white pixel value of the white long exposure pixel point after HDR synthesis, W S For the white pixel value of the white short exposure pixel adjacent to the white long exposure pixel after HDR synthesis, L is the luminance value of the white long exposure pixel before HDR synthesis, thr high To highlight threshold Thr low Is a low brightness threshold value, val L To use the color filter array to shoot the gray scale card with uniform illumination, the value of the white long exposure channel, val S In order to use the color filter array to shoot the gray scale card with uniform illumination, the value of the white short exposure channel, blc is the black level corresponding to the image sensor using the color filter array.
6. The interpolation method according to claim 5, wherein the obtaining the exposure ratio α of the white long exposure channel with respect to the white short exposure channel includes:
By the formulaOr->Performing calculation to obtain the exposure ratio alpha; wherein T is L For the exposure of the white long exposure channelBetween T s Val is the exposure time of the white short exposure channel L To use the color filter array to shoot the gray scale card with uniform illumination, the value of the white long exposure channel, val S In order to use the color filter array to shoot the gray scale card with uniform illumination, the value of the white short exposure channel, blc is the black level corresponding to the image sensor using the color filter array.
7. The interpolation method according to claim 4, wherein the performing white interpolation on the red pixel, the blue pixel, and the green pixel includes:
according to the formula
Determining a white pixel value of the red pixel point, the blue pixel point or the green pixel point; wherein W is 22 For the white pixel value of the red pixel, the blue pixel or the green pixel at a relative position 22 in the color filter array,horizontal gradient corresponding to pixel point with relative position 22 is represented by +.>Representing the vertical gradient corresponding to the pixel point with the relative position of 22, abs () represents taking the absolute value, W 21 For the white pixel value, W, of the white pixel point of the color filter array with a relative position of 21 23 For the white pixel value, W, of the white pixel point of the color filter array at a relative position of 23 12 For the white pixel value, W, of the white pixel point of the color filter array with a relative position of 12 32 Thr represents a threshold value for the white pixel value of the white pixel point of the color filter array at a relative position of 32.
8. The interpolation method according to claim 4, wherein the performing green interpolation on the white pixel point, the red pixel point, and the blue pixel point includes:
for the white short exposure pixel point, according to the formula
else
Determining a green pixel value of the white short exposure pixel point; wherein G is 32 For the green pixel value of the white short-exposure pixel point of the color filter array at a relative position of 32,horizontal gradient corresponding to pixel point with relative position of 32 is represented by +.>Representing the vertical gradient corresponding to a pixel point with a relative position of 32, abs () represents taking the absolute value, W 22 For the white pixel value, W, of the white pixel point of the color filter array at a relative position of 22 31 For the white pixel value, W, of the white pixel point of the color filter array with a relative position of 31 33 For the white pixel value, W, of the white pixel point of the color filter array at a relative position of 33 42 For the white pixel value of the white pixel point with a relative position of 42 in the color filter array, G 11 G is the green pixel value of the green pixel point with the relative position of 11 in the color filter array 13 G is the green pixel value of the green pixel point with the relative position of 13 in the color filter array 31 G is the green pixel value of the green pixel point with the relative position of 31 in the color filter array 33 G, which is the green pixel value of the green pixel point with the relative position of 33 in the color filter array 51 G is the green pixel value of the green pixel point with the relative position of 51 in the color filter array 53 A threshold value is represented by Thr for the green pixel value of the green pixel point of the color filter array with a relative position of 53;
for the white long exposure pixel point, according to the formula
else
Determining a green pixel value of the white long-exposure pixel point; wherein G is 23 Green pixel value for the white long exposure pixel point of relative position 23 in the color filter array Horizontal gradient corresponding to pixel point with relative position 23 is represented by +.>Representing the vertical gradient corresponding to a pixel point with a relative position of 23, abs () represents taking the absolute value, W 13 A white pixel value W for the white pixel point with a relative position of 13 in the color filter array 22 For the white pixel value, W, of the white pixel point of the color filter array at a relative position of 22 24 For the white pixel value, W, of the white pixel point of the color filter array at a relative position of 24 33 For the white pixel value of the white pixel point with a relative position of 33 in the color filter array, G 11 G is the green pixel value of the green pixel point with the relative position of 11 in the color filter array 13 G is the green pixel value of the green pixel point with the relative position of 13 in the color filter array 15 G is the green pixel value of the green pixel point with the relative position of 15 in the color filter array 31 G is the green pixel value of the green pixel point with the relative position of 31 in the color filter array 35 G is the green pixel value of the green pixel point with the relative position of 35 in the color filter array 33 A threshold value is represented by Thr for the green pixel value of the green pixel point with a relative position of 33 in the color filter array;
For the red pixel point or the blue pixel point, according to the formula
Grad A =12*W 22 -W 13 -W 31 |+|G 13 -G 31 |
Grad D =|2*W 22 -W 11 -W 33 |+|G 11 -G 33 |
if|Grad A -Grad D |<Thr:
elseif Grad A <Grad D
else
Determining a green pixel value of the red pixel point or the blue pixel point; wherein G is 22 Grad is the green pixel value of the red pixel point or the blue pixel point with the relative position of 22 in the color filter array A Represents the horizontal gradient corresponding to the pixel point with the relative position of 22, grad D Representing the vertical gradient corresponding to the pixel point with the relative position of 22, abs () represents taking the absolute value, W 11 A white pixel value W for the white pixel point with a relative position of 11 in the color filter array 13 A white pixel value W for the white pixel point with a relative position of 13 in the color filter array 22 For the white pixel value, W, of the white pixel point of the color filter array at a relative position of 22 31 For the white pixel value, W, of the white pixel point of the color filter array with a relative position of 31 33 For the white pixel value of the white pixel point with a relative position of 33 in the color filter array, G 11 G is the green pixel value of the green pixel point with the relative position of 11 in the color filter array 13 G is the green pixel value of the green pixel point with the relative position of 13 in the color filter array 15 G is the green pixel value of the green pixel point with the relative position of 15 in the color filter array 31 G is the green pixel value of the green pixel point with the relative position of 31 in the color filter array 35 G is the green pixel value of the green pixel point with the relative position of 35 in the color filter array 35 The threshold value is denoted Thr for the green pixel value of the green pixel point of the color filter array with a relative position of 33.
9. The interpolation method according to claim 4, wherein the performing blue interpolation on the white pixel point, the red pixel point, and the green pixel point includes:
for the red pixel point, according to the formula
else
Determining a blue pixel value of the red pixel point; wherein B is 33 For the blue pixel value of the red pixel point of the color filter array at a relative position of 33,image representing relative position 33The horizontal gradient corresponding to the pixel point,representing the vertical gradient corresponding to the pixel point with the relative position of 33, abs () represents taking the absolute value, W 13 A white pixel value W for the white pixel point with a relative position of 13 in the color filter array 23 For the white pixel value, W, of the white pixel point of the color filter array at a relative position of 23 31 For the white pixel value, W, of the white pixel point of the color filter array with a relative position of 31 32 A white pixel value W for the white pixel point with a relative position of 32 in the color filter array 33 For the white pixel value, W, of the white pixel point of the color filter array at a relative position of 33 34 For the white pixel value, W, of the white pixel point of the color filter array at a relative position of 34 35 A white pixel value W for the white pixel point with a relative position of 35 in the color filter array 43 A white pixel value W for the white pixel point with a relative position 43 in the color filter array 53 B is the white pixel value of the white pixel point with the relative position of 53 in the color filter array 13 B, the blue pixel value of the blue pixel point with the relative position of 13 in the color filter array 31 B, as the blue pixel value of the blue pixel point with the relative position of 31 in the color filter array 35 B, the blue pixel value of the blue pixel point with the relative position of 35 in the color filter array 53 For the blue pixel value of the blue pixel point with a relative position of 53 in the color filter array, thr represents a threshold value;
For the green pixel point, according to the formula
Determining a blue pixel value of the green pixel point; wherein B is 22 B is the blue pixel value of the green pixel point with the relative position of 22 in the color filter array 24 B is the blue pixel value of the green pixel point with the relative position of 24 in the color filter array 42 B is the blue pixel value of the green pixel point with the relative position of 42 in the color filter array 44 Blue pixel value, W, for the green pixel point of the color filter array at a relative position 44 11 A white pixel value W for the white pixel point with a relative position of 11 in the color filter array 15 A white pixel value W for the white pixel point with a relative position of 15 in the color filter array 22 For the white pixel value, W, of the white pixel point of the color filter array at a relative position of 22 24 For the white pixel value, W, of the white pixel point of the color filter array at a relative position of 24 33 For the white pixel value, W, of the white pixel point of the color filter array at a relative position of 33 42 A white pixel value W for the white pixel point of the color filter array with a relative position 42 44 A white pixel value W for the white pixel point with a relative position 44 in the color filter array 51 A white pixel value W for the white pixel point with a relative position of 51 in the color filter array 55 B is the white pixel value of the white pixel point with the relative position of 55 in the color filter array 11 For a relative position of 11 in the color filter arrayBlue pixel value of the blue pixel point of (B) 15 B, as the blue pixel value of the blue pixel point with the relative position of 15 in the color filter array 33 B is the blue pixel value of the blue pixel point with the relative position of 33 in the color filter array 51 B is the blue pixel value of the blue pixel point with the relative position of 51 in the color filter array 55 A threshold value is represented by Thr for the blue pixel value of the blue pixel point with a relative position of 55 in the color filter array;
for the white pixel point, according to the formula
else
Determining a blue pixel value of the white pixel point; wherein B is 22 For the blue pixel value, W, of the white pixel point of the color filter array at a relative position of 22 12 For the white pixel value, W, of the white pixel point of the color filter array with a relative position of 12 21 For the white pixel value, W, of the white pixel point of the color filter array with a relative position of 21 22 For the white pixel value, W, of the white pixel point of the color filter array at a relative position of 22 23 For the white pixel value, W, of the white pixel point of the color filter array at a relative position of 23 32 B is the white pixel value of the white pixel point with the relative position of 32 in the color filter array 12 A blue pixel value of a pixel point with a relative position of 12 in the color filter array, B 21 A blue pixel value of a pixel point with a relative position of 21 in the color filter array, B 23 A blue pixel value B for a pixel point with a relative position of 23 in the color filter array 32 And the blue pixel value of the pixel point with the relative position of 32 in the color filter array.
10. The interpolation method according to any one of claims 4 to 9, characterized in that the interpolation method further comprises:
for any pixel point, obtaining a red pixel value R, a green pixel value G, a blue pixel value B and a white pixel value W of the pixel point;
by the formulaCalculating a gain value gain;
according to the formula
Calculating a corrected red pixel valueCorrecting the green pixel value +. >And correcting the blue pixel value +.>
CN202310701068.1A 2023-06-13 2023-06-13 Interpolation method of color filter array Active CN116847211B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310701068.1A CN116847211B (en) 2023-06-13 2023-06-13 Interpolation method of color filter array

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310701068.1A CN116847211B (en) 2023-06-13 2023-06-13 Interpolation method of color filter array

Publications (2)

Publication Number Publication Date
CN116847211A true CN116847211A (en) 2023-10-03
CN116847211B CN116847211B (en) 2024-03-08

Family

ID=88171638

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310701068.1A Active CN116847211B (en) 2023-06-13 2023-06-13 Interpolation method of color filter array

Country Status (1)

Country Link
CN (1) CN116847211B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105556958A (en) * 2013-09-25 2016-05-04 索尼公司 Solid-state imaging device, imaging device, and electronic device
CN111432099A (en) * 2020-03-30 2020-07-17 Oppo广东移动通信有限公司 Image sensor, processing system and method, electronic device, and storage medium
CN113632134A (en) * 2019-04-11 2021-11-09 杜比实验室特许公司 High dynamic range image generation using pre-combination denoising
CN113676636A (en) * 2021-08-16 2021-11-19 Oppo广东移动通信有限公司 Method and device for generating high dynamic range image, electronic equipment and storage medium
CN114881904A (en) * 2022-06-10 2022-08-09 深圳市汇顶科技股份有限公司 Image processing method, image processing device and chip
CN115714925A (en) * 2021-08-20 2023-02-24 华为技术有限公司 Sensor, image generation method and device and camera

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105556958A (en) * 2013-09-25 2016-05-04 索尼公司 Solid-state imaging device, imaging device, and electronic device
CN113632134A (en) * 2019-04-11 2021-11-09 杜比实验室特许公司 High dynamic range image generation using pre-combination denoising
CN111432099A (en) * 2020-03-30 2020-07-17 Oppo广东移动通信有限公司 Image sensor, processing system and method, electronic device, and storage medium
CN113676636A (en) * 2021-08-16 2021-11-19 Oppo广东移动通信有限公司 Method and device for generating high dynamic range image, electronic equipment and storage medium
CN115714925A (en) * 2021-08-20 2023-02-24 华为技术有限公司 Sensor, image generation method and device and camera
CN114881904A (en) * 2022-06-10 2022-08-09 深圳市汇顶科技股份有限公司 Image processing method, image processing device and chip

Also Published As

Publication number Publication date
CN116847211B (en) 2024-03-08

Similar Documents

Publication Publication Date Title
CN105323474B (en) Picture pick-up device and its control method
JP4341695B2 (en) Image input processing device, imaging signal processing circuit, and imaging signal noise reduction method
EP1255410A2 (en) System and method for capturing color images that extends the dynamic range of an image sensor
US10630920B2 (en) Image processing apparatus
JP4313370B2 (en) Method for reducing electronic image aliasing
JP4803156B2 (en) SIGNAL PROCESSING DEVICE FOR SOLID-STATE IMAGING ELEMENT, IMAGING DEVICE HAVING SIGNAL PROCESSING DEVICE, SIGNAL PROCESSING METHOD, AND PROGRAM
WO2017044292A1 (en) Automatic compensation of lens flare
CN111711755B (en) Image processing method and device, terminal and computer readable storage medium
JP2016523013A (en) Device for acquiring bimodal images
JP2009512303A (en) Method and apparatus for removing vignetting in digital images
WO2006048962A1 (en) Pixel signal processor and pixel signal processing method
WO2013099917A1 (en) Imaging device
JP6095519B2 (en) Imaging device
JP2006180210A (en) Imaging apparatus and method, and program
CN110996015B (en) Spatial multiple exposure
JP3905708B2 (en) Image interpolation device
CN116847211B (en) Interpolation method of color filter array
US7324138B2 (en) False-color reducing device
CN112866554B (en) Focusing method and device, electronic equipment and computer readable storage medium
JP4779536B2 (en) Imaging device
JP4334150B2 (en) Image interpolation device
CN101292542A (en) Improved chrominance filter for white balance statistics
JP5991932B2 (en) Imaging device
US20240040266A1 (en) Rgbir color filter image processing with lens shading correction
JP4334152B2 (en) Image interpolation device

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