CN114125318B - Image sensor, camera module, electronic device, image generation method and device - Google Patents
Image sensor, camera module, electronic device, image generation method and device Download PDFInfo
- Publication number
- CN114125318B CN114125318B CN202111339984.2A CN202111339984A CN114125318B CN 114125318 B CN114125318 B CN 114125318B CN 202111339984 A CN202111339984 A CN 202111339984A CN 114125318 B CN114125318 B CN 114125318B
- Authority
- CN
- China
- Prior art keywords
- color
- filter
- pixel value
- filters
- sub
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/90—Arrangement of cameras or camera modules, e.g. multiple cameras in TV studios or sports stadiums
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/50—Constructional details
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/50—Constructional details
- H04N23/55—Optical parts specially adapted for electronic image sensors; Mounting thereof
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Color Television Image Signal Generators (AREA)
Abstract
本申请涉及一种图像传感器和图像生成方法,该图像传感器21包括滤光片阵列23和像素阵列24,滤光片阵列23包括最小重复单元230,最小重复单元230包括多个滤光片组,每个滤光片组包括全色滤光片233和彩色滤光片234,全色滤光片233透过的进光量大于彩色滤光片234透过的进光量,彩色滤光片234和全色滤光片233均包括4个子滤光片,多个滤光片组至少包括第一滤光片组231,第一滤光片组231中至少一个彩色滤光片234中包括第一颜色子滤光片2341和第二颜色子滤光片2342;像素阵列24包括多个像素,像素阵列24的像素与滤光片阵列23的子滤光片对应设置,像素阵列24被配置成用于接收穿过滤光片阵列23的光线以生成电信号。采用该图像传感器生成的图像清晰度更高、质量更好。
The present application relates to an image sensor and an image generation method. The image sensor 21 includes a filter array 23 and a pixel array 24. The filter array 23 includes a minimum repeating unit 230. The minimum repeating unit 230 includes multiple filter groups. Each filter group includes a full-color filter 233 and a color filter 234. The amount of light transmitted by the full-color filter 233 is greater than the amount of light transmitted by the color filter 234. The color filter 234 and the full-color filter 233 each include four sub-filters. The multiple filter groups include at least a first filter group 231. At least one color filter 234 in the first filter group 231 includes a first color sub-filter 2341 and a second color sub-filter 2342. The pixel array 24 includes multiple pixels. The pixels of the pixel array 24 are arranged corresponding to the sub-filters of the filter array 23. The pixel array 24 is configured to receive light passing through the filter array 23 to generate an electrical signal. The images generated by this image sensor have higher clarity and better quality.
Description
技术领域Technical Field
本申请涉及影像技术领域,特别是涉及一种图像传感器、摄像模组、电子设备、图像生成方法、装置、计算机可读存储介质和计算机程序产品。The present application relates to the field of imaging technology, and in particular to an image sensor, a camera module, an electronic device, an image generating method, an apparatus, a computer-readable storage medium, and a computer program product.
背景技术Background technique
随着计算机技术的发展,手机等电子设备中大部分都配置有摄像头,以通过摄像头实现拍照功能。摄像头中设置有图像传感器,通过图像传感器采集彩色图像。为了实现彩色图像的采集,图像传感器中通常会设置以拜耳(Bayer)阵列形式排布的滤光片阵列,以使得图像传感器中的多个像素能够接收穿过对应的滤光片的光线,从而生成具有不同色彩通道的像素信号,进而生成图像。With the development of computer technology, most electronic devices such as mobile phones are equipped with cameras to realize the photo function through the camera. The camera is provided with an image sensor, through which a color image is collected. In order to realize the collection of color images, a filter array arranged in the form of a Bayer array is usually provided in the image sensor, so that multiple pixels in the image sensor can receive light passing through the corresponding filter, thereby generating pixel signals with different color channels, and then generating an image.
然而,传统的图像传感器所生成的图像清晰度较低。However, conventional image sensors produce images with low definition.
发明内容Summary of the invention
本申请实施例提供一种图像传感器、图像生成方法、装置、电子设备、计算机可读存储介质,可以提高成像的清晰度。The embodiments of the present application provide an image sensor, an image generating method, an apparatus, an electronic device, and a computer-readable storage medium, which can improve the clarity of imaging.
一种图像传感器,所述图像传感器包括滤光片阵列和像素阵列,所述滤光片阵列包括最小重复单元,所述最小重复单元包括多个滤光片组,每个滤光片组包括彩色滤光片和全色滤光片,所述全色滤光片透过的进光量大于所述彩色滤光片透过的进光量,所述彩色滤光片和所述全色滤光片均包括4个子滤光片,多个滤光片组至少包括第一滤光片组,第一滤光片组中至少一个所述彩色滤光片中包括第一颜色子滤光片和第二颜色子滤光片;所述像素阵列包括多个像素,所述像素阵列的像素与所述滤光片阵列的子滤光片对应设置,所述像素阵列被配置成用于接收穿过所述滤光片阵列的光线以生成电信号。An image sensor, the image sensor comprising a filter array and a pixel array, the filter array comprising a minimum repeating unit, the minimum repeating unit comprising a plurality of filter groups, each filter group comprising a color filter and a full-color filter, the amount of light transmitted by the full-color filter being greater than the amount of light transmitted by the color filter, the color filter and the full-color filter each comprising four sub-filters, the plurality of filter groups comprising at least a first filter group, at least one of the color filters in the first filter group comprising a first color sub-filter and a second color sub-filter; the pixel array comprising a plurality of pixels, the pixels of the pixel array being arranged corresponding to the sub-filters of the filter array, the pixel array being configured to receive light passing through the filter array to generate an electrical signal.
一种摄像模组,所述摄像模组包括镜头和图像传感器;所述图像传感器用于接收穿过所述镜头的光线,所述像素根据所述光线生成电信号;所述图像传感器包括滤光片阵列和像素阵列,所述滤光片阵列包括最小重复单元,所述最小重复单元包括多个滤光片组,每个滤光片组包括彩色滤光片和全色滤光片,所述全色滤光片透过的进光量大于所述彩色滤光片透过的进光量,所述彩色滤光片和所述全色滤光片均包括4个子滤光片,多个滤光片组至少包括第一滤光片组,第一滤光片组中至少一个所述彩色滤光片中包括第一颜色子滤光片和第二颜色子滤光片;所述像素阵列包括多个像素,所述像素阵列的像素与所述滤光片阵列的子滤光片对应设置,所述像素阵列被配置成用于接收穿过所述滤光片阵列的光线以生成电信号。A camera module, the camera module comprising a lens and an image sensor; the image sensor is used to receive light passing through the lens, and the pixel generates an electrical signal according to the light; the image sensor comprises a filter array and a pixel array, the filter array comprises a minimum repeating unit, the minimum repeating unit comprises a plurality of filter groups, each filter group comprises a color filter and a full-color filter, the amount of light transmitted by the full-color filter is greater than the amount of light transmitted by the color filter, the color filter and the full-color filter each comprise four sub-filters, the plurality of filter groups comprise at least a first filter group, at least one of the color filters in the first filter group comprises a first color sub-filter and a second color sub-filter; the pixel array comprises a plurality of pixels, the pixels of the pixel array are arranged corresponding to the sub-filters of the filter array, and the pixel array is configured to receive light passing through the filter array to generate an electrical signal.
一种电子设备,所述电子设备包括摄像模组及壳体,所述摄像模组设置在所述壳体上;所述摄像模组包括镜头和图像传感器;所述图像传感器用于接收穿过所述镜头的光线,所述像素根据所述光线生成电信号;所述图像传感器包括滤光片阵列和像素阵列,所述滤光片阵列包括最小重复单元,所述最小重复单元包括多个滤光片组,每个滤光片组包括彩色滤光片和全色滤光片,所述全色滤光片透过的进光量大于所述彩色滤光片透过的进光量,所述彩色滤光片和所述全色滤光片均包括4个子滤光片,多个滤光片组至少包括第一滤光片组,第一滤光片组中至少一个所述彩色滤光片中包括第一颜色子滤光片和第二颜色子滤光片;所述像素阵列包括多个像素,所述像素阵列的像素与所述滤光片阵列的子滤光片对应设置,所述像素阵列被配置成用于接收穿过所述滤光片阵列的光线以生成电信号。An electronic device, comprising a camera module and a housing, wherein the camera module is arranged on the housing; the camera module comprises a lens and an image sensor; the image sensor is used to receive light passing through the lens, and the pixel generates an electrical signal according to the light; the image sensor comprises a filter array and a pixel array, the filter array comprises a minimum repeating unit, the minimum repeating unit comprises a plurality of filter groups, each filter group comprises a color filter and a full-color filter, the amount of light transmitted by the full-color filter is greater than the amount of light transmitted by the color filter, the color filter and the full-color filter each comprise four sub-filters, the plurality of filter groups comprise at least a first filter group, at least one of the color filters in the first filter group comprises a first color sub-filter and a second color sub-filter; the pixel array comprises a plurality of pixels, the pixels of the pixel array are arranged corresponding to the sub-filters of the filter array, and the pixel array is configured to receive light passing through the filter array to generate an electrical signal.
上述图像传感器包括滤光片阵列和像素阵列,滤光片阵列包括最小重复单元,最小重复单元包括多个滤光片组,滤光片组包括全色滤光片和彩色滤光片,全色滤光片透过的进光量大于彩色滤光片透过的进光量,可在拍摄时可获取到更多的光量,从而无需调节拍摄参数,在不影响拍摄的稳定性的情况下,提高暗光下的成像的清晰度。暗光下成像时,可兼顾稳定性和清晰度,暗光下成像的稳定性和清晰度均较高。并且,每个全色滤光片中包括4个子滤光片,每个彩色滤光片中包括4个子滤光片,多个滤光片组至少包括第一滤光片组,第一滤光片组中至少一个彩色滤光片中包括第一颜色子滤光片和第二颜色子滤光片,像素阵列包括多个全色像素和多个彩色像素,每个全色像素对应全色滤光片的一个子滤光片,每个第一颜色感光像素对应彩色滤光片的一个第一颜色子滤光片,每个第二颜色感光像素对应彩色滤光片的一个第二颜色子滤光片,能够将不同的颜色感光像素在同一个彩色滤光片中混合排列,有效提高彩色通道的分辨能力,降低所生成的图像中存在伪色的问题。The above-mentioned image sensor includes a filter array and a pixel array. The filter array includes a minimum repeating unit. The minimum repeating unit includes multiple filter groups. The filter group includes a full-color filter and a color filter. The amount of light transmitted through the full-color filter is greater than the amount of light transmitted through the color filter. More light can be obtained during shooting, so there is no need to adjust the shooting parameters. The clarity of the image in the dark is improved without affecting the stability of the shooting. When imaging in the dark, both stability and clarity can be taken into account. The stability and clarity of the image in the dark are both high. Furthermore, each full-color filter includes 4 sub-filters, each color filter includes 4 sub-filters, the multiple filter groups include at least a first filter group, at least one color filter in the first filter group includes a first color sub-filter and a second color sub-filter, the pixel array includes multiple full-color pixels and multiple color pixels, each full-color pixel corresponds to a sub-filter of the full-color filter, each first color photosensitive pixel corresponds to a first color sub-filter of the color filter, and each second color photosensitive pixel corresponds to a second color sub-filter of the color filter. Different color photosensitive pixels can be mixed and arranged in the same color filter, thereby effectively improving the resolution of the color channel and reducing the problem of false color in the generated image.
一种图像生成方法,应用于图像传感器,所述图像传感器包括滤光片阵列和像素阵列,所述滤光片阵列包括最小重复单元,所述最小重复单元包括多个滤光片组,每个滤光片组包括彩色滤光片和全色滤光片,所述全色滤光片透过的进光量大于所述彩色滤光片透过的进光量,所述彩色滤光片和所述全色滤光片均包括4个子滤光片,多个滤光片组包括第一滤光片组和第二滤光片组,第一滤光片组中至少一个所述彩色滤光片中包括第一颜色子滤光片和第二颜色子滤光片;第二滤光片组中彩色滤光片至少包括第三颜色子滤光片;所述像素阵列包括多个像素,所述像素阵列的第一颜色感光像素与所述滤光片阵列的第一颜色子滤光片对应设置,像素阵列的第二颜色感光像素与滤光片阵列的第二颜色子滤光片对应设置,像素阵列的第三颜色感光像素与滤光片阵列的第三颜色子滤光片对应设置,所述像素阵列被配置成用于接收穿过所述滤光片阵列的光线以生成电信号;An image generation method is applied to an image sensor, wherein the image sensor comprises a filter array and a pixel array, the filter array comprises a minimum repeating unit, the minimum repeating unit comprises a plurality of filter groups, each filter group comprises a color filter and a full-color filter, the amount of light transmitted by the full-color filter is greater than the amount of light transmitted by the color filter, the color filter and the full-color filter each comprise four sub-filters, the plurality of filter groups comprise a first filter group and a second filter group, at least one of the color filters in the first filter group comprises a first sub-filter, a color sub-filter and a second color sub-filter; the color filter in the second filter group includes at least a third color sub-filter; the pixel array includes a plurality of pixels, the first color photosensitive pixel of the pixel array is arranged correspondingly to the first color sub-filter of the filter array, the second color photosensitive pixel of the pixel array is arranged correspondingly to the second color sub-filter of the filter array, the third color photosensitive pixel of the pixel array is arranged correspondingly to the third color sub-filter of the filter array, and the pixel array is configured to receive light passing through the filter array to generate an electrical signal;
所述方法包括:The method comprises:
在第一分辨率模式下,根据所述滤光片组中的所述全色滤光片对应的多个全色像素合并读出的第一像素值,以及所述彩色滤光片对应的多个第一颜色感光像素合并读出的第二像素值,以及所述彩色滤光片对应的多个第三颜色感光像素合并读出的第三像素值,得到第一合并图像;In the first resolution mode, a first merged image is obtained according to a first pixel value obtained by merging and reading a plurality of panchromatic pixels corresponding to the panchromatic filter in the filter group, a second pixel value obtained by merging and reading a plurality of first color photosensitive pixels corresponding to the color filter, and a third pixel value obtained by merging and reading a plurality of third color photosensitive pixels corresponding to the color filter;
根据所述彩色滤光片对应的多个第二颜色感光像素合并读出的第四像素值,得到第二合并图像;Obtain a second merged image by merging and reading out fourth pixel values of a plurality of second color photosensitive pixels corresponding to the color filter;
基于所述第一合并图像和所述第二合并图像,得到第一目标图像。A first target image is obtained based on the first merged image and the second merged image.
一种图像生成装置,应用于图像传感器,所述图像传感器包括滤光片阵列和像素阵列,所述滤光片阵列包括最小重复单元,最小重复单元包括多个滤光片组,所述每个滤光片组包括彩色滤光片和全色滤光片,所述全色滤光片透过的进光量大于所述彩色滤光片透过的进光量,所述彩色滤光片和所述全色滤光片均包括4个子滤光片,多个滤光片组包括第一滤光片组和第二滤光片组,第一滤光片组中至少一个所述彩色滤光片中包括第一颜色子滤光片和第二颜色子滤光片;第二滤光片组中彩色滤光片至少包括第三颜色子滤光片;所述像素阵列包括多个像素,所述像素阵列的第一颜色感光像素与所述滤光片阵列的第一颜色子滤光片对应设置,像素阵列的第二颜色感光像素与滤光片阵列的第二颜色子滤光片对应设置,像素阵列的第三颜色感光像素与滤光片阵列的第三颜色子滤光片对应设置,所述像素阵列被配置成用于接收穿过所述滤光片阵列的光线以生成电信号;An image generating device is applied to an image sensor, the image sensor comprising a filter array and a pixel array, the filter array comprising a minimum repeating unit, the minimum repeating unit comprising a plurality of filter groups, each of the filter groups comprising a color filter and a full-color filter, the amount of light transmitted by the full-color filter is greater than the amount of light transmitted by the color filter, the color filter and the full-color filter each comprising four sub-filters, the plurality of filter groups comprising a first filter group and a second filter group, at least one of the color filters in the first filter group comprising a first sub-filter; a color sub-filter and a second color sub-filter; the color filter in the second filter group includes at least a third color sub-filter; the pixel array includes a plurality of pixels, the first color photosensitive pixel of the pixel array is arranged correspondingly to the first color sub-filter of the filter array, the second color photosensitive pixel of the pixel array is arranged correspondingly to the second color sub-filter of the filter array, the third color photosensitive pixel of the pixel array is arranged correspondingly to the third color sub-filter of the filter array, and the pixel array is configured to receive light passing through the filter array to generate an electrical signal;
所述装置包括:The device comprises:
第一合并模块,用于在第一分辨率模式下,根据所述滤光片组中的所述全色滤光片对应的多个全色像素合并读出的第一像素值,以及所述彩色滤光片对应的多个第一颜色感光像素合并读出的第二像素值,以及所述彩色滤光片对应的多个第三颜色感光像素合并读出的第三像素值,得到第一合并图像;A first merging module is used to obtain a first merged image in a first resolution mode according to a first pixel value read out by merging a plurality of panchromatic pixels corresponding to the panchromatic filter in the filter group, a second pixel value read out by merging a plurality of first color photosensitive pixels corresponding to the color filter, and a third pixel value read out by merging a plurality of third color photosensitive pixels corresponding to the color filter;
第二合并模块,用于根据所述彩色滤光片对应的多个第二颜色感光像素合并读出的第四像素值,得到第二合并图像;A second merging module, configured to obtain a second merged image by merging the fourth pixel values read out according to the plurality of second color photosensitive pixels corresponding to the color filter;
图像生成模块,用于基于所述第一合并图像和所述第二合并图像,得到第一目标图像。An image generation module is used to obtain a first target image based on the first merged image and the second merged image.
一种电子设备,包括存储器、处理器及图像传感器,所述存储器中储存有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行如下步骤:An electronic device includes a memory, a processor, and an image sensor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the following steps:
在第一分辨率模式下,根据所述滤光片组中的所述全色滤光片对应的多个全色像素合并读出的第一像素值,以及所述彩色滤光片对应的多个第一颜色感光像素合并读出的第二像素值,以及所述彩色滤光片对应的多个第三颜色感光像素合并读出的第三像素值,得到第一合并图像;根据所述彩色滤光片对应的多个第二颜色感光像素合并读出的第四像素值,得到第二合并图像;基于所述第一合并图像和所述第二合并图像,得到第一目标图像。In the first resolution mode, a first merged image is obtained based on a first pixel value obtained by merging and reading out a plurality of panchromatic pixels corresponding to the panchromatic filter in the filter group, a second pixel value obtained by merging and reading out a plurality of first color photosensitive pixels corresponding to the color filter, and a third pixel value obtained by merging and reading out a plurality of third color photosensitive pixels corresponding to the color filter; a second merged image is obtained based on a fourth pixel value obtained by merging and reading out a plurality of second color photosensitive pixels corresponding to the color filter; and a first target image is obtained based on the first merged image and the second merged image.
一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如下步骤:A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:
在第一分辨率模式下,根据所述滤光片组中的所述全色滤光片对应的多个全色像素合并读出的第一像素值,以及所述彩色滤光片对应的多个第一颜色感光像素合并读出的第二像素值,以及所述彩色滤光片对应的多个第三颜色感光像素合并读出的第三像素值,得到第一合并图像;根据所述彩色滤光片对应的多个第二颜色感光像素合并读出的第四像素值,得到第二合并图像;基于所述第一合并图像和所述第二合并图像,得到第一目标图像。In the first resolution mode, a first merged image is obtained based on a first pixel value obtained by merging and reading out a plurality of panchromatic pixels corresponding to the panchromatic filter in the filter group, a second pixel value obtained by merging and reading out a plurality of first color photosensitive pixels corresponding to the color filter, and a third pixel value obtained by merging and reading out a plurality of third color photosensitive pixels corresponding to the color filter; a second merged image is obtained based on a fourth pixel value obtained by merging and reading out a plurality of second color photosensitive pixels corresponding to the color filter; and a first target image is obtained based on the first merged image and the second merged image.
一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现如下步骤:A computer program product, comprising a computer program, which, when executed by a processor, implements the following steps:
在第一分辨率模式下,根据所述滤光片组中的所述全色滤光片对应的多个全色像素合并读出的第一像素值,以及所述彩色滤光片对应的多个第一颜色感光像素合并读出的第二像素值,以及所述彩色滤光片对应的多个第三颜色感光像素合并读出的第三像素值,得到第一合并图像;根据所述彩色滤光片对应的多个第二颜色感光像素合并读出的第四像素值,得到第二合并图像;基于所述第一合并图像和所述第二合并图像,得到第一目标图像。In the first resolution mode, a first merged image is obtained based on a first pixel value obtained by merging and reading out a plurality of panchromatic pixels corresponding to the panchromatic filter in the filter group, a second pixel value obtained by merging and reading out a plurality of first color photosensitive pixels corresponding to the color filter, and a third pixel value obtained by merging and reading out a plurality of third color photosensitive pixels corresponding to the color filter; a second merged image is obtained based on a fourth pixel value obtained by merging and reading out a plurality of second color photosensitive pixels corresponding to the color filter; and a first target image is obtained based on the first merged image and the second merged image.
上述图像生成方法、装置、电子设备、计算机可读存储介质和计算机程序产品,在第一分辨率模式下,通过滤光片组中的全色滤光片对应的多个全色像素合并读出的第一像素值,以及彩色滤光片对应的多个第一颜色感光像素合并读出的第二像素值,以及彩色滤光片对应的多个第三颜色感光像素合并读出的第三像素值,能够将全色通道信息融合到图像中,提高整体的进光量,使得能够生成信息更多、细节解析更清晰的第一合并图像。根据彩色滤光片对应的多个第二颜色感光像素合并读出的第四像素值,能够将第二颜色感光像素分离出来形成第二合并图像,使得第二颜色感光像素在第二合并图像和第一颜色感光像素在第一合并图像中的位置保持一致。基于第一合并图像和第二合并图像,得到第一目标图像,能够将第一合并图像中的第一颜色感光像素和第二合并图像中的第二颜色感光像素混合排列,使得所生成的第一目标图像色彩更清晰。并且像素合并读出使得生成的第一目标图像尺寸减小、生成图像所需消耗的功耗低。The above-mentioned image generation method, device, electronic device, computer-readable storage medium and computer program product, in the first resolution mode, can fuse the full-color channel information into the image by merging the first pixel value read out by merging the multiple full-color pixels corresponding to the full-color filter in the filter group, the second pixel value read out by merging the multiple first-color photosensitive pixels corresponding to the color filter, and the third pixel value read out by merging the multiple third-color photosensitive pixels corresponding to the color filter, so as to increase the overall light input, so as to generate a first merged image with more information and clearer detail resolution. According to the fourth pixel value read out by merging the multiple second-color photosensitive pixels corresponding to the color filter, the second-color photosensitive pixels can be separated to form a second merged image, so that the positions of the second-color photosensitive pixels in the second merged image and the first-color photosensitive pixels in the first merged image are consistent. Based on the first merged image and the second merged image, the first target image is obtained, and the first-color photosensitive pixels in the first merged image and the second-color photosensitive pixels in the second merged image can be mixed and arranged, so that the color of the generated first target image is clearer. And the pixel merging readout reduces the size of the generated first target image and the power consumption required to generate the image is low.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
图1为一个实施例中电子设备的结构示意图;FIG1 is a schematic diagram of the structure of an electronic device in one embodiment;
图2为一个实施例中图像传感器的分解示意图;FIG2 is an exploded schematic diagram of an image sensor in one embodiment;
图3为一个实施例中像素阵列和读出电路的连接示意图;FIG3 is a schematic diagram showing the connection between a pixel array and a readout circuit in one embodiment;
图4a为一个实施例中第一对角线方向和第二对角线方向的示意图;FIG4a is a schematic diagram of a first diagonal direction and a second diagonal direction in one embodiment;
图4b为一个实施例中第三对角线方向和第四对角线方向的示意图;FIG4 b is a schematic diagram of a third diagonal direction and a fourth diagonal direction in one embodiment;
图5为一个实施例中最小重复单元的排布方式示意图;FIG5 is a schematic diagram of the arrangement of the minimum repeating unit in one embodiment;
图6为其中一个实施例中最小重复单元的排布方式示意图;FIG6 is a schematic diagram of the arrangement of the minimum repeating unit in one embodiment;
图7为另一个实施例中最小重复单元的排布方式示意图;FIG7 is a schematic diagram of the arrangement of the minimum repeating unit in another embodiment;
图8为另一个实施例中最小重复单元的排布方式示意图;FIG8 is a schematic diagram of the arrangement of the minimum repeating unit in another embodiment;
图9为一个实施例中图像生成方法的流程图;FIG9 is a flow chart of an image generation method in one embodiment;
图10为一个实施例中在第一分辨率模式下得到第一目标图像的示意图;FIG10 is a schematic diagram of obtaining a first target image in a first resolution mode in one embodiment;
图11为另一个实施例中在第一分辨率模式下得到第一目标图像的示意图;FIG11 is a schematic diagram of obtaining a first target image in a first resolution mode in another embodiment;
图12为一个实施例中在第二分辨率模式下得到第二目标图像的示意图;FIG12 is a schematic diagram of obtaining a second target image in a second resolution mode in one embodiment;
图13为另一个实施例中在第二分辨率模式下得到第二目标图像的示意图;FIG13 is a schematic diagram of obtaining a second target image in a second resolution mode in another embodiment;
图14为另一个实施例中在第二分辨率模式下的图像生成方法的示意图;FIG14 is a schematic diagram of an image generating method in a second resolution mode according to another embodiment;
图15为一个实施例中图像生成装置的结构框图;FIG15 is a block diagram of a structure of an image generating device in one embodiment;
图16为一个实施例中电子设备的内部结构框图。FIG. 16 is a block diagram of the internal structure of an electronic device in one embodiment.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
可以理解,本申请所使用的术语“第一”、“第二”等可在本文中用于描述各种元件,但这些元件不受这些术语限制。这些术语仅用于将第一个元件与另一个元件区分。举例来说,在不脱离本申请的范围的情况下,可以将第一目标图像称为第二目标图像,且类似地,可将第二目标图像称为第一目标图像。第一和第二两者都是目标图像,但其不是同一目标图像。多个指至少两个,例如2个、4个,但不限于此。It is understood that the terms "first", "second", etc. used in this application may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, without departing from the scope of this application, a first target image may be referred to as a second target image, and similarly, a second target image may be referred to as a first target image. Both the first and the second are target images, but they are not the same target image. A plurality refers to at least two, such as 2, 4, but is not limited thereto.
在一个实施例中,电子设备100包括手机、平板电脑、笔记本电脑、柜员机、闸机、智能手表、头显设备等,可以理解,电子设备100还可以是其他任意图像处理功能的装置。电子设备100包括摄像模组20、处理器30和壳体40。摄像模组20和处理器30均设置在壳体40内,壳体40还可用于安装电子设备100的供电装置、通信装置等功能模块,以使壳体40为功能模块提供防尘、防摔、防水等保护。In one embodiment, the electronic device 100 includes a mobile phone, a tablet computer, a laptop computer, a teller machine, a gate machine, a smart watch, a head-mounted display device, etc. It can be understood that the electronic device 100 can also be a device with any other image processing function. The electronic device 100 includes a camera module 20, a processor 30 and a housing 40. The camera module 20 and the processor 30 are both arranged in the housing 40, and the housing 40 can also be used to install functional modules such as a power supply device and a communication device of the electronic device 100, so that the housing 40 provides dustproof, drop-proof, waterproof and other protection for the functional modules.
摄像模组20可以是前置摄像模组、后置摄像模组、侧置摄像模组、屏下摄像模组等,在此不做限制。摄像模组20包括镜头及图像传感器21,摄像模组20在拍摄图像时,光线穿过镜头并到达图像传感器21,图像传感器21用于将照射到图像传感器21上的光信号转化为电信号。The camera module 20 can be a front camera module, a rear camera module, a side camera module, an under-screen camera module, etc., and is not limited here. The camera module 20 includes a lens and an image sensor 21. When the camera module 20 captures an image, light passes through the lens and reaches the image sensor 21. The image sensor 21 is used to convert the light signal irradiated on the image sensor 21 into an electrical signal.
在一个实施例中,如图2所示,图像传感器21包括微透镜阵列22、滤光片阵列23、像素阵列24。In one embodiment, as shown in FIG. 2 , the image sensor 21 includes a microlens array 22 , a filter array 23 , and a pixel array 24 .
微透镜阵列22包括多个微透镜221,微透镜221、滤光片阵列23中的子滤光片和像素阵列24中的像素一一对应设置,微透镜221用于将入射的光线进行聚集,聚集之后的光线会穿过对应的子滤光片,然后投射至像素上,被对应的像素接收,像素再将接收的光线转化成电信号。The microlens array 22 includes a plurality of microlenses 221. The microlenses 221, the sub-filters in the filter array 23, and the pixels in the pixel array 24 are arranged in a one-to-one correspondence. The microlenses 221 are used to gather the incident light. The gathered light passes through the corresponding sub-filter and is then projected onto the pixel and received by the corresponding pixel. The pixel then converts the received light into an electrical signal.
滤光片阵列23包括多个最小重复单元230。最小重复单元230可包括多个滤光片组。每个滤光片组包括全色滤光片233和彩色滤光片234,全色滤光片233透过的进光量大于彩色滤光片234透过的进光量。每个全色滤光片233中包括4个子滤光片2331,每个彩色滤光片234中包括4个子滤光片,多个滤光片组至少包括第一滤光片组231,第一滤光片组231中至少一个彩色滤光片234中包括第一颜色子滤光片2341和第二颜色子滤光片2342。在不同的滤光片组中还包括有不同的彩色滤光片234。The filter array 23 includes a plurality of minimal repeating units 230. The minimal repeating unit 230 may include a plurality of filter groups. Each filter group includes a full-color filter 233 and a color filter 234, and the amount of light transmitted through the full-color filter 233 is greater than the amount of light transmitted through the color filter 234. Each full-color filter 233 includes four sub-filters 2331, and each color filter 234 includes four sub-filters. The plurality of filter groups include at least a first filter group 231, and at least one color filter 234 in the first filter group 231 includes a first color sub-filter 2341 and a second color sub-filter 2342. Different color filters 234 are also included in different filter groups.
在一个实施例中,多个滤光片组还包括第二滤光片组232,第二滤光片组232中的彩色滤光片234至少包括第三颜色子滤光片2343。In one embodiment, the plurality of filter groups further include a second filter group 232 , and the color filter 234 in the second filter group 232 includes at least a third color sub-filter 2343 .
最小重复单元230中滤光片组的彩色滤光片234的透过的光线的波段对应的颜色包括颜色a、颜色b和/或颜色c。滤光片组232的彩色滤光片234的透过的光线的波段对应的颜色包括颜色a、颜色b和颜色c、或者颜色a、颜色b或颜色c、或者颜色a和颜色b、或者颜色b和颜色c、或者颜色a和颜色c。其中,颜色a为红色,颜色b为绿色,颜色c为蓝色,或者例如颜色a为品红色,颜色b为青色,颜色c为黄色等,在此不做限制。The colors corresponding to the wavelength band of the light transmitted by the color filter 234 of the filter group in the minimum repeating unit 230 include color a, color b and/or color c. The colors corresponding to the wavelength band of the light transmitted by the color filter 234 of the filter group 232 include color a, color b and color c, or color a, color b or color c, or color a and color b, or color b and color c, or color a and color c. Among them, color a is red, color b is green, and color c is blue, or for example, color a is magenta, color b is cyan, and color c is yellow, etc., which is not limited here.
在一个实施例中,彩色滤光片234的透过的光线的波段的宽度小于全色滤光片233透过的光线的波段的宽度,例如,彩色滤光片234的透过的光线的波段可对应红光的波段、绿光的波段、或蓝光的波段,全色滤光片233透过的光线的波段为所有可见光的波段,也即是说,彩色滤光片234仅允许特定颜色光线透光,而全色滤光片233可通过所有颜色的光线。当然,彩色滤光片234的透过的光线的波段还可对应其他色光的波段,如品红色光、紫色光、青色光、黄色光等,在此不作限制。In one embodiment, the width of the wavelength band of the light transmitted by the color filter 234 is smaller than the width of the wavelength band of the light transmitted by the full-color filter 233. For example, the wavelength band of the light transmitted by the color filter 234 may correspond to the wavelength band of red light, the wavelength band of green light, or the wavelength band of blue light, and the wavelength band of the light transmitted by the full-color filter 233 is the wavelength band of all visible light. In other words, the color filter 234 only allows light of a specific color to be transmitted, while the full-color filter 233 can pass light of all colors. Of course, the wavelength band of the light transmitted by the color filter 234 may also correspond to the wavelength band of other colored light, such as magenta light, purple light, cyan light, yellow light, etc., which is not limited here.
在一个实施例中,滤光片组中彩色滤光片234的数量和全色滤光片233的数量的比例可以是1:3、1:1或3:1。例如,彩色滤光片234的数量和全色滤光片233的数量的比例为1:3,则彩色滤光片234的数量为1,全色滤光片233的数量为3,此时全色滤光片233数量较多,在暗光下的成像质量更好;或者,彩色滤光片234的数量和全色滤光片233的数量的比例为1:1,则彩色滤光片234的数量为2,全色滤光片233的数量为2,此时既可以获得较好的色彩表现的同时,暗光下的成像质量也较好;或者,彩色滤光片234的数量和全色滤光片233的数量的比例为3:1,则彩色滤光片234的数量为3,全色滤光片233的数量为1,此时可获得更好的色彩表现,且能提高暗光下的成像质量。In one embodiment, the ratio of the number of color filters 234 to the number of panchromatic filters 233 in the filter group can be 1:3, 1:1 or 3:1. For example, if the ratio of the number of color filters 234 to the number of panchromatic filters 233 is 1:3, then the number of color filters 234 is 1 and the number of panchromatic filters 233 is 3. In this case, the number of panchromatic filters 233 is large and the imaging quality in dim light is better; or, if the ratio of the number of color filters 234 to the number of panchromatic filters 233 is 1:1, then the number of color filters 234 is 2 and the number of panchromatic filters 233 is 2. In this case, both good color performance and good imaging quality in dim light can be obtained; or, if the ratio of the number of color filters 234 to the number of panchromatic filters 233 is 3:1, then the number of color filters 234 is 3 and the number of panchromatic filters 233 is 1. In this case, better color performance can be obtained and the imaging quality in dim light can be improved.
像素阵列24包括多个像素,像素阵列24的像素与滤光片阵列23的子滤光片对应设置。像素阵列24被配置成用于接收穿过滤光片阵列23的光线以生成电信号。The pixel array 24 includes a plurality of pixels, and the pixels of the pixel array 24 are arranged corresponding to the sub-filters of the filter array 23. The pixel array 24 is configured to receive light passing through the filter array 23 to generate an electrical signal.
其中,像素阵列24被配置成用于接收穿过滤光片阵列23的光线以生成电信号,是指像素阵列24用于对穿过滤光片阵列23的被摄对象的给定集合的场景的光线进行光电转换,以生成电信号。被摄对象的给定集合的场景的光线用于生成图像数据。例如,被摄对象是建筑物,被摄对象的给定集合的场景是指该建筑物所处的场景,该场景中还可以包含其他对象。The pixel array 24 is configured to receive the light passing through the filter array 23 to generate an electrical signal, which means that the pixel array 24 is used to perform photoelectric conversion on the light of a given set of scenes of the photographed object passing through the filter array 23 to generate an electrical signal. The light of a given set of scenes of the photographed object is used to generate image data. For example, if the photographed object is a building, the given set of scenes of the photographed object refers to the scene where the building is located, and the scene may also contain other objects.
在一个实施例中,像素阵列24包括多个最小重复单元240,最小重复单元240包括多个像素组,多个像素组包括全色像素组243和彩色像素组244。每个全色像素组243中包括4个全色像素2431,每个彩色像素组244中包括4个彩色像素,多个像素组至少包括第一像素组241,第一像素组241中的至少一个彩色像素组244中包括第一颜色感光像素2441和第二颜色感光像素2442。每个全色像素2431对应全色滤光片233中的一个子滤光片2331,全色像素2431接收穿过对应的子滤光片2331的光线以生成电信号。每个第一颜色感光像素2441对应彩色滤光片234的一个第一颜色子滤光片2341,第一颜色感光像素2441接收穿过对应的第一颜色子滤光片2341的光线以生成电信号。每个第二颜色感光像素2442对应彩色滤光片234的一个第二颜色子滤光片2342,第二颜色感光像素2442接收穿过对应的第二颜色子滤光片2342的光线以生成电信号。In one embodiment, the pixel array 24 includes a plurality of minimal repeating units 240, the minimal repeating unit 240 includes a plurality of pixel groups, the plurality of pixel groups include a panchromatic pixel group 243 and a color pixel group 244. Each panchromatic pixel group 243 includes four panchromatic pixels 2431, each color pixel group 244 includes four color pixels, the plurality of pixel groups include at least a first pixel group 241, at least one color pixel group 244 in the first pixel group 241 includes a first color photosensitive pixel 2441 and a second color photosensitive pixel 2442. Each panchromatic pixel 2431 corresponds to a sub-filter 2331 in the panchromatic filter 233, and the panchromatic pixel 2431 receives light passing through the corresponding sub-filter 2331 to generate an electrical signal. Each first color photosensitive pixel 2441 corresponds to a first color sub-filter 2341 of the color filter 234, and the first color photosensitive pixel 2441 receives light passing through the corresponding first color sub-filter 2341 to generate an electrical signal. Each second color photosensitive pixel 2442 corresponds to a second color sub-filter 2342 of the color filter 234 , and the second color photosensitive pixel 2442 receives light passing through the corresponding second color sub-filter 2342 to generate an electrical signal.
在一个实施例中,多个像素组还包括第二像素组242,第二像素组242中的彩色像素组244至少包括第三颜色感光像素2443。每个第三颜色感光像素2443对应彩色滤光片234的一个第三颜色子滤光片2343,第三颜色感光像素2443接收穿过对应的第三颜色子滤光片2343的光线以生成电信号。In one embodiment, the plurality of pixel groups further include a second pixel group 242, and the color pixel group 244 in the second pixel group 242 includes at least a third color photosensitive pixel 2443. Each third color photosensitive pixel 2443 corresponds to a third color sub-filter 2343 of the color filter 234, and the third color photosensitive pixel 2443 receives light passing through the corresponding third color sub-filter 2343 to generate an electrical signal.
本实施中的图像传感器21包括滤光片阵列23和像素阵列24,滤光片阵列23包括最小重复单元230,最小重复单元230包括多个滤光片组,每个滤光片组包括全色滤光片233和彩色滤光片234,彩色滤光片234具有比全色滤光片233的更窄的光谱响应,全色滤光片233透过的进光量大于彩色滤光片234透过的进光量,可在拍摄时可获取到更多的光量,从而无需调节拍摄参数,在不影响拍摄的稳定性的情况下,提高暗光下的成像的清晰度。暗光下成像时,可兼顾稳定性和清晰度,暗光下成像的稳定性和清晰度均较高。并且,每个全色滤光片233中包括4个子滤光片2331,每个彩色滤光片234中包括4个子滤光片,多个滤光片组至少包括第一滤光片组231,第一滤光片组231中至少一个彩色滤光片234中包括第一颜色子滤光片2341和第二颜色子滤光片2342,像素阵列24包括多个全色像素2431和多个彩色像素2441,每个全色像素2431对应全色滤光片233的一个子滤光片2331,每个第一颜色感光像素2441对应彩色滤光片234的一个第一颜色子滤光片2341,每个第二颜色感光像素2442对应彩色滤光片234的一个第二颜色子滤光片2342,能够将不同的颜色感光像素在同一个彩色滤光片中混合排列,有效提高彩色通道的分辨能力,降低所生成的图像中存在伪色的问题。The image sensor 21 in this embodiment includes a filter array 23 and a pixel array 24. The filter array 23 includes a minimum repeating unit 230. The minimum repeating unit 230 includes a plurality of filter groups. Each filter group includes a full-color filter 233 and a color filter 234. The color filter 234 has a narrower spectral response than the full-color filter 233. The amount of light transmitted by the full-color filter 233 is greater than the amount of light transmitted by the color filter 234. More light can be obtained during shooting, so there is no need to adjust the shooting parameters. The clarity of the image under low light is improved without affecting the stability of the shooting. When imaging under low light, both stability and clarity can be taken into account. The stability and clarity of the image under low light are both high. Furthermore, each full-color filter 233 includes four sub-filters 2331, each color filter 234 includes four sub-filters, the multiple filter groups include at least a first filter group 231, at least one color filter 234 in the first filter group 231 includes a first color sub-filter 2341 and a second color sub-filter 2342, the pixel array 24 includes a plurality of full-color pixels 2431 and a plurality of color pixels 2441, each full-color pixel 2431 corresponds to a sub-filter 2331 of the full-color filter 233, each first color photosensitive pixel 2441 corresponds to a first color sub-filter 2341 of the color filter 234, and each second color photosensitive pixel 2442 corresponds to a second color sub-filter 2342 of the color filter 234, so that different color photosensitive pixels can be mixed and arranged in the same color filter, thereby effectively improving the resolution of the color channel and reducing the problem of false color in the generated image.
在一个实施例中,如图2所示,滤光片阵列23中的最小重复单元230包括4个滤光片组,并且4个滤光片组包括2个第一滤光片组231和2个第二滤光片组232,2个第一滤光片组231和2个第二滤光片组232呈矩阵排列。In one embodiment, as shown in FIG. 2 , the minimum repeating unit 230 in the filter array 23 includes four filter groups, and the four filter groups include two first filter groups 231 and two second filter groups 232 , and the two first filter groups 231 and the two second filter groups 232 are arranged in a matrix.
每个第一滤光片组231包括全色滤光片233和彩色滤光片234,每个全色滤光片233和每个彩色滤光片234均有4个子滤光片,且至少一个彩色滤光片234中包括第一颜色子滤光片2341和第二颜色子滤光片2342,则该第二滤光片组232共包括16个子滤光片。Each first filter group 231 includes a full-color filter 233 and a color filter 234, each full-color filter 233 and each color filter 234 has 4 sub-filters, and at least one color filter 234 includes a first color sub-filter 2341 and a second color sub-filter 2342, then the second filter group 232 includes a total of 16 sub-filters.
每个第二滤光片组232包括全色滤光片233和彩色滤光片234,每个全色滤光片233和每个彩色滤光片234均有4个子滤光片,且彩色滤光片234中至少包括第三颜色子滤光片2343,则该第二滤光片组232共包括16个子滤光片。Each second filter group 232 includes a full-color filter 233 and a color filter 234. Each full-color filter 233 and each color filter 234 has 4 sub-filters, and the color filter 234 includes at least a third color sub-filter 2343. The second filter group 232 includes a total of 16 sub-filters.
同样的,像素阵列24包括多个最小重复单元240,与滤光片阵列23的多个最小重复单元230一一对应。每个最小重复单元240包括4个像素组,并且4个像素组包括2个第一像素组241和2个第二像素组242,2个第一像素组241和2个第二像素组242呈矩阵排列。每个第一像素组241对应一个第一滤光片组231,每个第二像素组242对应一个第二滤光片组232。Similarly, the pixel array 24 includes a plurality of minimum repeating units 240, which correspond one to one with the plurality of minimum repeating units 230 of the filter array 23. Each minimum repeating unit 240 includes four pixel groups, and the four pixel groups include two first pixel groups 241 and two second pixel groups 242, and the two first pixel groups 241 and the two second pixel groups 242 are arranged in a matrix. Each first pixel group 241 corresponds to a first filter group 231, and each second pixel group 242 corresponds to a second filter group 232.
如图3所示,读出电路25与像素阵列24电连接,用于控制像素阵列24的曝光以及像素点的像素值的读取和输出。读出电路25包括垂直驱动单元251、控制单元252、列处理单元253和水平驱动单元254。垂直驱动单元251包括移位寄存器和地址译码器。垂直驱动单元251包括读出扫描和复位扫描功能。控制单元252根据操作模式配置时序信号,利用多种时序信号来控制垂直驱动单元251、列处理单元253和水平驱动单元254协同工作。列处理单元253可以具有用于将模拟像素信号转换为数字格式的模数(A/D)转换功能。水平驱动单元254包括移位寄存器和地址译码器。水平驱动单元254顺序逐列扫描像素阵列24。As shown in FIG3 , the readout circuit 25 is electrically connected to the pixel array 24 for controlling the exposure of the pixel array 24 and the reading and output of the pixel values of the pixel points. The readout circuit 25 includes a vertical drive unit 251, a control unit 252, a column processing unit 253, and a horizontal drive unit 254. The vertical drive unit 251 includes a shift register and an address decoder. The vertical drive unit 251 includes a readout scan and a reset scan function. The control unit 252 configures the timing signal according to the operation mode, and uses a variety of timing signals to control the vertical drive unit 251, the column processing unit 253, and the horizontal drive unit 254 to work together. The column processing unit 253 may have an analog-to-digital (A/D) conversion function for converting an analog pixel signal into a digital format. The horizontal drive unit 254 includes a shift register and an address decoder. The horizontal drive unit 254 sequentially scans the pixel array 24 column by column.
在一个实施例中,如图4a所示,最小重复单元230中第一滤光片组231设置在第一对角线D1方向,第二滤光片组232设置在第二对角线D2方向,第一对角线D1方向与第二对角线D2方向不同。第一对角线D1方向和第二对角线D2方向不同,能够兼顾色彩表现和暗光成像质量。In one embodiment, as shown in FIG4a , the first filter group 231 in the minimum repeating unit 230 is arranged in the direction of the first diagonal line D1, and the second filter group 232 is arranged in the direction of the second diagonal line D2, and the direction of the first diagonal line D1 is different from the direction of the second diagonal line D2. The direction of the first diagonal line D1 is different from the direction of the second diagonal line D2, which can take into account both color performance and low-light imaging quality.
第一对角线D1方向与第二对角线D2方向不同,具体可以是第一对角线D1方向与第二对角线D2方向不平行,或者,第一对角线D1方向与第二对角线D2方向垂直等。The direction of the first diagonal line D1 is different from the direction of the second diagonal line D2. Specifically, the direction of the first diagonal line D1 is not parallel to the direction of the second diagonal line D2, or the direction of the first diagonal line D1 is perpendicular to the direction of the second diagonal line D2.
在一个实施例中,如图4b所示,每个滤光片组均包括彩色滤光片234和全色滤光片233,每个滤光片组的彩色滤光片234和全色滤光片233呈矩阵排列。滤光片组中的各个全色滤光片233设置在第三对角线方向D3,滤光片组中的各个彩色滤光片234设置在第四对角线D4方向。第三对角线D3方向和第四对角线D4方向不同,能够兼顾色彩表现和暗光成像质量。In one embodiment, as shown in FIG4b, each filter group includes a color filter 234 and a full-color filter 233, and the color filter 234 and the full-color filter 233 of each filter group are arranged in a matrix. Each full-color filter 233 in the filter group is arranged in the third diagonal direction D3, and each color filter 234 in the filter group is arranged in the fourth diagonal direction D4. The third diagonal direction D3 and the fourth diagonal direction D4 are different, which can take into account both color performance and low-light imaging quality.
第三对角线D3方向与第四对角线D4方向不同,具体可以是第三对角线D3方向与第四对角线D4方向不平行,或者,第三对角线D3方向与第四对角线D4方向垂直等。The direction of the third diagonal line D3 is different from the direction of the fourth diagonal line D4. Specifically, the direction of the third diagonal line D3 is not parallel to the direction of the fourth diagonal line D4, or the direction of the third diagonal line D3 is perpendicular to the direction of the fourth diagonal line D4.
在其他实施方式中,一个彩色滤光片234和一个全色滤光片233可位于第三对角线D3,另一个彩色滤光片234和另一个全色滤光片233可位于第四对角线D4。In other embodiments, one color filter 234 and one panchromatic filter 233 may be located on the third diagonal line D3 , and another color filter 234 and another panchromatic filter 233 may be located on the fourth diagonal line D4 .
在一个实施例中,彩色滤光片234可设置在与第三对角线D3相平行的方向上,或彩色滤光片234可设置在与第四对角线D4相平行的方向上。In one embodiment, the color filter 234 may be disposed in a direction parallel to the third diagonal line D3 , or the color filter 234 may be disposed in a direction parallel to the fourth diagonal line D4 .
在一个实施例中,第一滤光片组231中至少一个彩色滤光片234中包括第一颜色子滤光片2341和第二颜色子滤光片2342。第一颜色子滤光片2341设置在第五对角线方向或第六对角线方向的一个方向上,第二颜色子滤光片2342设置在第五对角线方向或第六对角线方向的另一个方向上。第一滤光片组231中全色滤光片233的子滤光片2331置在第五对角线方向和第六对角线方向上。In one embodiment, at least one color filter 234 in the first filter group 231 includes a first color sub-filter 2341 and a second color sub-filter 2342. The first color sub-filter 2341 is arranged in one direction of the fifth diagonal direction or the sixth diagonal direction, and the second color sub-filter 2342 is arranged in the other direction of the fifth diagonal direction or the sixth diagonal direction. The sub-filter 2331 of the panchromatic filter 233 in the first filter group 231 is arranged in the fifth diagonal direction and the sixth diagonal direction.
在一个实施例中,最小重复单元230包括2个第一滤光片组231和2个第二滤光片组232,2个第一滤光片组231和2个第二滤光片组232呈矩阵排列。In one embodiment, the minimum repeating unit 230 includes two first filter groups 231 and two second filter groups 232 , and the two first filter groups 231 and the two second filter groups 232 are arranged in a matrix.
2个第一滤光片组231中,其中一个第一滤光片组231的彩色滤光片234中的第一颜色子滤光片2341设置在第五对角线方向上,第二颜色子滤光片2342设置在第六对角线方向上;并且,另一个第一滤光片组231的彩色滤光片234中的第一颜色子滤光片2341设置在第六对角线方向上,第二颜色子滤光片2342设置在第五对角线方向上。Among the two first filter groups 231, the first color sub-filter 2341 in the color filter 234 of one of the first filter groups 231 is arranged in the fifth diagonal direction, and the second color sub-filter 2342 is arranged in the sixth diagonal direction; and, the first color sub-filter 2341 in the color filter 234 of the other first filter group 231 is arranged in the sixth diagonal direction, and the second color sub-filter 2342 is arranged in the fifth diagonal direction.
可以理解的是,第一颜色子滤光片2341设置在第五对角线方向,可以是第一颜色子滤光片2341处于在第五对角线上,也可以是第一颜色子滤光片2341处于与第五对角线方向相平行的方向上,其他对角线方向类似。It can be understood that the first color sub-filter 2341 is set in the fifth diagonal direction. The first color sub-filter 2341 can be on the fifth diagonal line or in a direction parallel to the fifth diagonal line, and other diagonal directions are similar.
在一个实施例中,如图5所示,多个滤光片组包括第一滤光片组231和第二滤光片组232,第一滤光片组231中至少一个彩色滤光片234中包括第一颜色子滤光片2341和第二颜色子滤光片2342。第二滤光片组232中彩色滤光片234至少包括第三颜色子滤光片2343。第二滤光片组232中的第三颜色子滤光片2343设置在第七对角线D7方向和第八对角线D8方向上,第七对角线D7方向与第八对角线D8方向不同。In one embodiment, as shown in FIG5 , the plurality of filter groups include a first filter group 231 and a second filter group 232, and at least one color filter 234 in the first filter group 231 includes a first color sub-filter 2341 and a second color sub-filter 2342. The color filter 234 in the second filter group 232 includes at least a third color sub-filter 2343. The third color sub-filter 2343 in the second filter group 232 is arranged in the seventh diagonal line D7 direction and the eighth diagonal line D8 direction, and the seventh diagonal line D7 direction is different from the eighth diagonal line D8 direction.
第七对角线D7方向与第八对角线D8方向不同,具体可以是第七对角线D7方向与第八对角线D8方向不平行,或者,第七对角线D7方向与第八对角线D8方向垂直等。The direction of the seventh diagonal line D7 is different from the direction of the eighth diagonal line D8. Specifically, the direction of the seventh diagonal line D7 is not parallel to the direction of the eighth diagonal line D8, or the direction of the seventh diagonal line D7 is perpendicular to the direction of the eighth diagonal line D8.
在一个实施例中,如图5所示,滤光片阵列23中的最小重复单元230包括4个滤光片组,并且4个滤光片组呈矩阵排列。4个滤光片组中包括第一滤光片组231和第二滤光片组232。每个第一滤光片组231中包含2个全色滤光片233和2个彩色滤光片234,每个第二滤光片组232中包含2个全色滤光片233和2个彩色滤光片234。全色滤光片233中包括4个子滤光片2331,第一滤光片组231的同一彩色滤光片234中包括2个第一颜色子滤光片2341和2个第二颜色子滤光片2342,第二滤光片组232的同一彩色滤光片234中包括4个第三颜色子滤光片2343,则最小重复单元为8行8列64个子滤光片,排布方式为:In one embodiment, as shown in FIG5 , the minimum repeating unit 230 in the filter array 23 includes four filter groups, and the four filter groups are arranged in a matrix. The four filter groups include a first filter group 231 and a second filter group 232. Each first filter group 231 includes two full-color filters 233 and two color filters 234, and each second filter group 232 includes two full-color filters 233 and two color filters 234. The full-color filter 233 includes four sub-filters 2331, the same color filter 234 of the first filter group 231 includes two first color sub-filters 2341 and two second color sub-filters 2342, and the same color filter 234 of the second filter group 232 includes four third color sub-filters 2343. The minimum repeating unit is 8 rows and 8 columns of 64 sub-filters, and the arrangement is as follows:
其中,w表示全色子滤光片2331,a、b和c均表示彩色子滤光片。彩色子滤光片包括第一颜色子滤光片2341、第二颜色子滤光片2342和第三颜色子滤光片2343。Wherein, w represents the full-color sub-filter 2331 , and a, b and c all represent color sub-filters. The color sub-filters include a first color sub-filter 2341 , a second color sub-filter 2342 and a third color sub-filter 2343 .
a、b和c分别表示第一颜色子滤光片2341、第二颜色子滤光片2342和第三颜色子滤光片2343中的一种。全色子滤光片2331指的是可滤除可见光波段之外的所有光线的子滤光片,第一颜色子滤光片2341、第二颜色子滤光片2342和第三颜色子滤光片2343可为红色子滤光片、绿色子滤光片、蓝色子滤光片、品红色子滤光片、青色子滤光片和黄色子滤光片。红色子滤光片为滤除红光之外的所有光线的子滤光片,绿色子滤光片为滤除绿光之外的所有光线的子滤光片,蓝色子滤光片为滤除蓝光之外的所有光线的子滤光片,品红色子滤光片为滤除品红色光之外的所有光线的子滤光片,青色色子滤光片为滤除青光之外的所有光线的子滤光片,黄色子滤光片为滤除黄光之外的所有光线的子滤光片。a, b and c respectively represent one of the first color sub-filter 2341, the second color sub-filter 2342 and the third color sub-filter 2343. The full-color sub-filter 2331 refers to a sub-filter that can filter out all light outside the visible light band, and the first color sub-filter 2341, the second color sub-filter 2342 and the third color sub-filter 2343 can be a red sub-filter, a green sub-filter, a blue sub-filter, a magenta sub-filter, a cyan sub-filter and a yellow sub-filter. The red sub-filter is a sub-filter that filters out all light except red light, the green sub-filter is a sub-filter that filters out all light except green light, the blue sub-filter is a sub-filter that filters out all light except blue light, the magenta sub-filter is a sub-filter that filters out all light except magenta light, the cyan sub-filter is a sub-filter that filters out all light except cyan light, and the yellow sub-filter is a sub-filter that filters out all light except yellow light.
a可以是红色子滤光片、绿色子滤光片、蓝色子滤光片、品红色子滤光片、青色子滤光片或黄色子滤光片,b可以是红色子滤光片、绿色子滤光片、蓝色子滤光片、品红色子滤光片、青色子滤光片或黄色子滤光片,c可以是红色子滤光片、绿色子滤光片、蓝色子滤光片、品红色子滤光片、青色子滤光片或黄色子滤光片。例如,b为红色子滤光片、a为绿色子滤光片、c为蓝色子滤光片;或者,c为红色子滤光片、a为绿色子滤光片、b为蓝色子滤光片;再例如,c为红色子滤光片、a为绿色子滤光片、b为蓝色子滤光片;或者,a为红色子滤光片、b为蓝色子滤光片、c为绿色子滤光片等,在此不作限制;再例如,b为品红色子滤光片、a为青色子滤光片、b为黄色子滤光片等。在其他实施方式中,彩色滤光片还可包括其他颜色的子滤光片,如橙色子滤光片、紫色子滤光片等,在此不作限制。a can be a red sub-filter, a green sub-filter, a blue sub-filter, a magenta sub-filter, a cyan sub-filter or a yellow sub-filter, b can be a red sub-filter, a green sub-filter, a blue sub-filter, a magenta sub-filter, a cyan sub-filter or a yellow sub-filter, and c can be a red sub-filter, a green sub-filter, a blue sub-filter, a magenta sub-filter, a cyan sub-filter or a yellow sub-filter. For example, b is a red sub-filter, a is a green sub-filter, and c is a blue sub-filter; or, c is a red sub-filter, a is a green sub-filter, and b is a blue sub-filter; for another example, c is a red sub-filter, a is a green sub-filter, and b is a blue sub-filter; or, a is a red sub-filter, b is a blue sub-filter, and c is a green sub-filter, etc., which are not limited here; for another example, b is a magenta sub-filter, a is a cyan sub-filter, and b is a yellow sub-filter, etc. In other embodiments, the color filter may further include sub-filters of other colors, such as an orange sub-filter, a purple sub-filter, etc., which are not limited here.
在一个实施例中,如图6所示,滤光片阵列23中的最小重复单元230包括4个滤光片组,并且4个滤光片组呈矩阵排列。4个滤光片组中包括第一滤光片组231和第二滤光片组232。每个第一滤光片组231中包含2个全色滤光片233和2个彩色滤光片234,每个第二滤光片组232中包含2个全色滤光片233和2个彩色滤光片234。全色滤光片233中包括4个子滤光片2331,第一滤光片组231的同一彩色滤光片234中包括2个第一颜色子滤光片2341和2个第二颜色子滤光片2342,第二滤光片组232的同一彩色滤光片234中包括4个第三颜色子滤光片2343,则最小重复单元为8行8列64个子滤光片,排布方式为:In one embodiment, as shown in FIG6 , the minimum repeating unit 230 in the filter array 23 includes four filter groups, and the four filter groups are arranged in a matrix. The four filter groups include a first filter group 231 and a second filter group 232. Each first filter group 231 includes two full-color filters 233 and two color filters 234, and each second filter group 232 includes two full-color filters 233 and two color filters 234. The full-color filter 233 includes four sub-filters 2331, the same color filter 234 of the first filter group 231 includes two first color sub-filters 2341 and two second color sub-filters 2342, and the same color filter 234 of the second filter group 232 includes four third color sub-filters 2343. The minimum repeating unit is 8 rows and 8 columns of 64 sub-filters, and the arrangement is as follows:
其中,w表示全色子滤光片2331,a、b和c均表示彩色子滤光片。彩色子滤光片包括第一颜色子滤光片2341、第二颜色子滤光片2342和第三颜色子滤光片2343。Wherein, w represents the full-color sub-filter 2331 , and a, b and c all represent color sub-filters. The color sub-filters include a first color sub-filter 2341 , a second color sub-filter 2342 and a third color sub-filter 2343 .
本实施例中,将不同颜色的感光像素混合排列,如将红色像素和蓝色像素混合排列,使得最小重复单元的每行每列均有RGB像素的存在,能够有效提高彩色通道的分辨能力,降低生成图像存在伪色的问题。并且,引入了全色像素,有效提高进光量,从而能够提高图像的清晰度。同时,本实施例中的图像传感器还具备二级像素合并读取的优势,图像传感器的最小重复单元的每行每列均有RGB像素的存在,无需跨越不同的最小重复单元进行相同像素的像素合并,能够有效降低处理的功耗。In this embodiment, photosensitive pixels of different colors are mixed and arranged, such as red pixels and blue pixels are mixed and arranged, so that each row and column of the minimum repeating unit has RGB pixels, which can effectively improve the resolution of the color channel and reduce the problem of false colors in the generated image. In addition, full-color pixels are introduced to effectively increase the amount of light entering, thereby improving the clarity of the image. At the same time, the image sensor in this embodiment also has the advantage of secondary pixel merging reading. Each row and column of the minimum repeating unit of the image sensor has RGB pixels, and there is no need to merge the same pixels across different minimum repeating units, which can effectively reduce the power consumption of processing.
在一个实施例中,如图7所示,多个滤光片组包括第一滤光片组231和第二滤光片组232,第一滤光片组231中至少一个彩色滤光片234中包括第一颜色子滤光片2341和第二颜色子滤光片2342。第二滤光片组232中彩色滤光片234包括第三颜色子滤光片2343,且第二滤光片组232中彩色滤光片234还包括第一颜色子滤光片2341或第二颜色子滤光片2342。In one embodiment, as shown in FIG7 , the plurality of filter groups include a first filter group 231 and a second filter group 232, and at least one color filter 234 in the first filter group 231 includes a first color sub-filter 2341 and a second color sub-filter 2342. The color filter 234 in the second filter group 232 includes a third color sub-filter 2343, and the color filter 234 in the second filter group 232 also includes the first color sub-filter 2341 or the second color sub-filter 2342.
具体地,第二滤光片组232中的同一彩色滤光片234包括第三颜色子滤光片2343和第一颜色子滤光片2341,或者第二滤光片组232中的同一彩色滤光片234包括第三颜色子滤光片2343和第二颜色子滤光片2342。Specifically, the same color filter 234 in the second filter group 232 includes a third color sub-filter 2343 and a first color sub-filter 2341 , or the same color filter 234 in the second filter group 232 includes a third color sub-filter 2343 and a second color sub-filter 2342 .
在一个实施例中,如图7所示,第二滤光片组232包括2个彩色滤光片234,每个彩色滤光片234中的同一颜色的子滤光片呈对角排布,同一颜色的子滤光片在两个彩色滤光片234中的排布方向相反。In one embodiment, as shown in FIG. 7 , the second filter group 232 includes two color filters 234 , and the sub-filters of the same color in each color filter 234 are arranged diagonally, and the sub-filters of the same color in the two color filters 234 are arranged in opposite directions.
具体地,第二滤光片组232包括两个彩色滤光片234,同一彩色滤光片234包括第三颜色子滤光片2343和第一颜色子滤光片2341。同一彩色滤光片234中的第三颜色子滤光片2343呈对角排布,同一彩色滤光片234中的第一颜色子滤光片2341呈对角排布。第一颜色子滤光片2341在2个彩色滤光片234中的排布方向相反,第三颜色子滤光片2343在2个彩色滤光片234中的排布方向相反。例如,第三颜色子滤光片2343在2个彩色滤光片234中分别设置在对角线A1方向和对角线A2方向上。Specifically, the second filter group 232 includes two color filters 234, and the same color filter 234 includes a third color sub-filter 2343 and a first color sub-filter 2341. The third color sub-filters 2343 in the same color filter 234 are arranged diagonally, and the first color sub-filters 2341 in the same color filter 234 are arranged diagonally. The arrangement directions of the first color sub-filters 2341 in the two color filters 234 are opposite, and the arrangement directions of the third color sub-filters 2343 in the two color filters 234 are opposite. For example, the third color sub-filters 2343 are respectively arranged in the diagonal A1 direction and the diagonal A2 direction in the two color filters 234.
或者,第二滤光片组232包括两个彩色滤光片234,同一彩色滤光片234包括第三颜色子滤光片2343和第二颜色子滤光片2342。同一彩色滤光片234中的第三颜色子滤光片2343呈对角排布,同一彩色滤光片234中的第二颜色子滤光片2342呈对角排布。第二颜色子滤光片2342在2个彩色滤光片234中的排布方向相反,第三颜色子滤光片2343在2个彩色滤光片234中的排布方向相反。Alternatively, the second filter group 232 includes two color filters 234, and the same color filter 234 includes a third color sub-filter 2343 and a second color sub-filter 2342. The third color sub-filters 2343 in the same color filter 234 are arranged diagonally, and the second color sub-filters 2342 in the same color filter 234 are arranged diagonally. The second color sub-filters 2342 are arranged in opposite directions in the two color filters 234, and the third color sub-filters 2343 are arranged in opposite directions in the two color filters 234.
在一个实施例中,如图7所示,滤光片阵列23中的最小重复单元230包括4个滤光片组,并且4个滤光片组呈矩阵排列。每个滤光片组中包含2个全色滤光片233和2个彩色滤光片234。全色滤光片233中包括4个子滤光片2331,第一滤光片组231的同一彩色滤光片234中包括2个第一颜色子滤光片2341和2个第二颜色子滤光片2342,存在第二滤光片组232的同一彩色滤光片234中包括2个第一颜色子滤光片2341和2个第三颜色子滤光片2343,以及存在第二滤光片组232的同一彩色滤光片234中包括2个第二颜色子滤光片2342和2个第三颜色子滤光片2343,则最小重复单元为8行8列64个子滤光片,排布方式为:In one embodiment, as shown in FIG7 , the minimum repeating unit 230 in the filter array 23 includes four filter groups, and the four filter groups are arranged in a matrix. Each filter group includes two full-color filters 233 and two color filters 234 . The full-color filter 233 includes four sub-filters 2331, the same color filter 234 of the first filter group 231 includes two first color sub-filters 2341 and two second color sub-filters 2342, the same color filter 234 in the second filter group 232 includes two first color sub-filters 2341 and two third color sub-filters 2343, and the same color filter 234 in the second filter group 232 includes two second color sub-filters 2342 and two third color sub-filters 2343, then the minimum repeating unit is 8 rows and 8 columns of 64 sub-filters, and the arrangement is as follows:
其中,w表示全色子滤光片2331,a、b和c均表示彩色子滤光片。彩色子滤光片包括第一颜色子滤光片2341、第二颜色子滤光片2342和第三颜色子滤光片2343。Wherein, w represents the full-color sub-filter 2331 , and a, b and c all represent color sub-filters. The color sub-filters include a first color sub-filter 2341 , a second color sub-filter 2342 and a third color sub-filter 2343 .
在一个实施例中,如图8所示,滤光片阵列23中的最小重复单元230包括4个滤光片组,并且4个滤光片组呈矩阵排列。每个滤光片组中包含2个全色滤光片233和2个彩色滤光片234。全色滤光片233中包括4个子滤光片2331,第一滤光片组231的同一彩色滤光片234中包括2个第一颜色子滤光片2341和2个第二颜色子滤光片2342,存在第二滤光片组232的同一彩色滤光片234中包括2个第一颜色子滤光片2341和2个第三颜色子滤光片2343,存在第二滤光片组232的同一彩色滤光片234中包括2个第二颜色子滤光片2342和2个第三颜色子滤光片2343,则最小重复单元为8行8列64个子滤光片,排布方式为:In one embodiment, as shown in FIG8 , the minimum repeating unit 230 in the filter array 23 includes four filter groups, and the four filter groups are arranged in a matrix. Each filter group includes two full-color filters 233 and two color filters 234 . The full-color filter 233 includes four sub-filters 2331, the same color filter 234 of the first filter group 231 includes two first color sub-filters 2341 and two second color sub-filters 2342, the same color filter 234 of the second filter group 232 includes two first color sub-filters 2341 and two third color sub-filters 2343, and the same color filter 234 of the second filter group 232 includes two second color sub-filters 2342 and two third color sub-filters 2343, then the minimum repeating unit is 8 rows and 8 columns of 64 sub-filters, and the arrangement is as follows:
其中,w表示全色子滤光片2331,a、b和c均表示彩色子滤光片。彩色子滤光片包括第一颜色子滤光片2341、第二颜色子滤光片2342和第三颜色子滤光片2343。Wherein, w represents the full-color sub-filter 2331 , and a, b and c all represent color sub-filters. The color sub-filters include a first color sub-filter 2341 , a second color sub-filter 2342 and a third color sub-filter 2343 .
在一个实施例中,提供了一种图像生成方法,应用于如图2所示的图像传感器21,图像传感器21包括滤光片阵列23和像素阵列24,滤光片阵列23包括最小重复单元230,最小重复单元230包括多个滤光片组,每个滤光片组包括彩色滤光片234和全色滤光片233,全色滤光片233透过的进光量大于彩色滤光片234透过的进光量,彩色滤光片234具有比全色滤光片233的更窄的光谱响应,每个全色滤光片233中包括4个子滤光片2331,每个彩色滤光片234中包括4个子滤光片,多个滤光片组包括第一滤光片组231和第二滤光片组232,第一滤光片组231中至少一个彩色滤光片234中包括第一颜色子滤光片2341和第二颜色子滤光片2342。第二滤光片组232的彩色滤光片234中至少包括第三颜色子滤光片2343。In one embodiment, an image generation method is provided, which is applied to an image sensor 21 as shown in FIG. 2 . The image sensor 21 includes a filter array 23 and a pixel array 24. The filter array 23 includes a minimum repeating unit 230. The minimum repeating unit 230 includes a plurality of filter groups. Each filter group includes a color filter 234 and a panchromatic filter 233. The amount of light transmitted by the panchromatic filter 233 is greater than the amount of light transmitted by the color filter 234. The color filter 234 has a narrower spectral response than the panchromatic filter 233. Each panchromatic filter 233 includes four sub-filters 2331. Each color filter 234 includes four sub-filters. The plurality of filter groups include a first filter group 231 and a second filter group 232. At least one color filter 234 in the first filter group 231 includes a first color sub-filter 2341 and a second color sub-filter 2342. The color filter 234 of the second filter group 232 includes at least a third color sub-filter 2343 .
像素阵列24包括多个像素,像素阵列24的第一颜色感光像素2441与滤光片阵列23的第一颜色子滤光片2341对应设置,像素阵列24的第二颜色感光像素2442与滤光片阵列23的第二颜色子滤光片2342对应设置,像素阵列24的第三颜色感光像素2443与滤光片阵列23的第三颜色子滤光片2343对应设置,像素阵列24被配置成用于接收穿过滤光片阵列23的光线以生成电信号;The pixel array 24 includes a plurality of pixels. The first color photosensitive pixel 2441 of the pixel array 24 is arranged corresponding to the first color sub-filter 2341 of the filter array 23. The second color photosensitive pixel 2442 of the pixel array 24 is arranged corresponding to the second color sub-filter 2342 of the filter array 23. The third color photosensitive pixel 2443 of the pixel array 24 is arranged corresponding to the third color sub-filter 2343 of the filter array 23. The pixel array 24 is configured to receive light passing through the filter array 23 to generate an electrical signal.
在一个实施例中,像素阵列24包括多个全色像素2431和多个彩色像素2441,每个全色像素2431对应全色滤光片233的一个子滤光片2331,每个第一颜色感光像素2441对应彩色滤光片234的一个第一颜色子滤光片2341,每个第二颜色感光像素2442对应彩色滤光片234的一个第二颜色子滤光片2342,每个第三颜色感光像素2443对应彩色滤光片234的一个第三颜色子滤光片2343;In one embodiment, the pixel array 24 includes a plurality of panchromatic pixels 2431 and a plurality of color pixels 2441, each panchromatic pixel 2431 corresponds to a sub-filter 2331 of the panchromatic filter 233, each first color photosensitive pixel 2441 corresponds to a first color sub-filter 2341 of the color filter 234, each second color photosensitive pixel 2442 corresponds to a second color sub-filter 2342 of the color filter 234, and each third color photosensitive pixel 2443 corresponds to a third color sub-filter 2343 of the color filter 234;
如图9所示,该图像生成方法包括:As shown in FIG9 , the image generation method includes:
步骤902,在第一分辨率模式下,根据滤光片组中的全色滤光片对应的多个全色像素合并读出的第一像素值,以及彩色滤光片对应的多个第一颜色感光像素合并读出的第二像素值,以及彩色像素对应的多个第三颜色感光像素合并读出的第三像素值,得到第一合并图像。Step 902, in the first resolution mode, obtain a first merged image based on the first pixel value read out by merging a plurality of panchromatic pixels corresponding to the panchromatic filters in the filter group, the second pixel value read out by merging a plurality of first color photosensitive pixels corresponding to the color filters, and the third pixel value read out by merging a plurality of third color photosensitive pixels corresponding to the color pixels.
第一分辨率模式是指分辨率、功耗、信噪比和帧率均比较均衡的一级像素合并读出模式。第一分辨率模式具体可以是图像、视频拍摄的默认模式。合并读出是指将多个像素的像素值求和,或者计算出多个像素的像素值的均值。例如,多个全色像素合并读出的第一像素值,可以是将多个全色像素的像素值求和,得到第一像素值;或者,计算多个全色像素的像素值的均值,作为第一像素值。The first resolution mode refers to a first-level pixel merging readout mode in which the resolution, power consumption, signal-to-noise ratio, and frame rate are relatively balanced. The first resolution mode can specifically be the default mode for image and video shooting. Merged readout refers to summing the pixel values of multiple pixels, or calculating the average of the pixel values of multiple pixels. For example, the first pixel value of a plurality of full-color pixels merged and read out can be the sum of the pixel values of a plurality of full-color pixels to obtain the first pixel value; or, the average of the pixel values of a plurality of full-color pixels is calculated as the first pixel value.
彩色滤光片234具有比全色滤光片233的更窄的光谱响应,则全色滤光片233透过的进光量大于彩色滤光片234透过的进光量,即彩色滤光片234透过的光线的波段宽度小于全色滤光片233透过的光线的波段宽度,全色滤光片233透过更多的光线,通过全色滤光片233得到相应的全色像素2431具有更高的信噪比,该全色像素包含有更多的信息,可以解析出更多的纹理细节。其中,信噪比是指正常信号与噪声信号之间的比值。像素的信噪比越高,则该像素包含的正常信号的比例越高,从该像素中解析到的信息也越多。The color filter 234 has a narrower spectral response than the full-color filter 233, so the amount of light transmitted by the full-color filter 233 is greater than the amount of light transmitted by the color filter 234, that is, the band width of the light transmitted by the color filter 234 is smaller than the band width of the light transmitted by the full-color filter 233. The full-color filter 233 transmits more light, and the corresponding full-color pixel 2431 obtained through the full-color filter 233 has a higher signal-to-noise ratio. The full-color pixel contains more information and can resolve more texture details. Among them, the signal-to-noise ratio refers to the ratio between the normal signal and the noise signal. The higher the signal-to-noise ratio of a pixel, the higher the proportion of normal signals contained in the pixel, and the more information is resolved from the pixel.
彩色像素可以是G(Green,绿色)像素、R(Red,红色)像素和B(Blue,蓝色)像素等,但不限于此。The color pixels may be G (Green) pixels, R (Red) pixels, B (Blue) pixels, etc., but are not limited thereto.
在接收到拍摄指令的情况下,检测用户是否选择所需使用的分辨率模式,当检测到用户选择使用第一分辨率模式的情况下,或者,在用户未选择所需使用的分辨率模式,未使用预览拍摄、且当前环境非夜景模式的情况下,使用第一分辨率模式响应该拍摄指令。When a shooting instruction is received, it is detected whether the user selects the required resolution mode. When it is detected that the user selects to use the first resolution mode, or when the user does not select the required resolution mode, preview shooting is not used, and the current environment is not night scene mode, the first resolution mode is used to respond to the shooting instruction.
在第一分辨率模式下,全色滤光片233中的子滤光片2331透过的光线投射至对应的全色像素2431上,全色像素2431接收穿过子滤光片2331的光线以生成电信号。彩色滤光片234中的第一颜色子滤光片2341透过的光线投射至对应的第一颜色感光像素2441上,第一颜色感光像素2441穿过对应的第一颜色子滤光片2341的光线以生成电信号。彩色滤光片234中的第二颜色子滤光片2342透过的光线投射至对应的第二颜色感光像素2442上,第二颜色感光像素2442穿过对应的第二颜色子滤光片2342的光线以生成电信号。彩色滤光片234中的第三颜色子滤光片2343透过的光线投射至对应的第三颜色感光像素2443上,第三颜色感光像素2443穿过对应的第三颜色子滤光片2343的光线以生成电信号。In the first resolution mode, the light transmitted through the sub-filter 2331 in the full-color filter 233 is projected onto the corresponding full-color pixel 2431, and the full-color pixel 2431 receives the light transmitted through the sub-filter 2331 to generate an electrical signal. The light transmitted through the first color sub-filter 2341 in the color filter 234 is projected onto the corresponding first color photosensitive pixel 2441, and the first color photosensitive pixel 2441 generates an electrical signal by the light transmitted through the corresponding first color sub-filter 2341. The light transmitted through the second color sub-filter 2342 in the color filter 234 is projected onto the corresponding second color photosensitive pixel 2442, and the second color photosensitive pixel 2442 generates an electrical signal by the light transmitted through the corresponding second color sub-filter 2342. The light transmitted through the third color sub-filter 2343 in the color filter 234 is projected onto the corresponding third color photosensitive pixel 2443 , and the third color photosensitive pixel 2443 generates an electrical signal by the light transmitted through the corresponding third color sub-filter 2343 .
第一滤光片组231中至少一个彩色滤光片234中包括第一颜色子滤光片2341和第二颜色子滤光片2342,则第一滤光片组231中至少一个彩色滤光片234对应第一颜色感光像素2441和第二颜色感光像素2442。At least one color filter 234 in the first filter group 231 includes a first color sub-filter 2341 and a second color sub-filter 2342 , and at least one color filter 234 in the first filter group 231 corresponds to a first color photosensitive pixel 2441 and a second color photosensitive pixel 2442 .
电子设备将同一全色滤光片233对应的多个全色像素2431合并读出第一像素值。同一彩色滤光片234中可同时包括多个第一颜色子滤光片2341和多个第二颜色子滤光片2342,电子设备将同一彩色滤光片234中多个第一颜色子滤光片2341对应的各第一颜色感光像素2441合并读出第二像素值。同一彩色滤光片234中可包括多个第三颜色子滤光片2343,电子设备将同一彩色滤光片234中多个第三颜色子滤光片2343对应的各第三颜色感光像素2443合并读出第三像素值。The electronic device combines the multiple full-color pixels 2431 corresponding to the same full-color filter 233 to read out the first pixel value. The same color filter 234 may include multiple first color sub-filters 2341 and multiple second color sub-filters 2342 at the same time, and the electronic device combines the first color photosensitive pixels 2441 corresponding to the multiple first color sub-filters 2341 in the same color filter 234 to read out the second pixel value. The same color filter 234 may include multiple third color sub-filters 2343, and the electronic device combines the third color photosensitive pixels 2443 corresponding to the multiple third color sub-filters 2343 in the same color filter 234 to read out the third pixel value.
电子设备根据各第一像素值、各第二像素值和各第三像素值,得到第一合并图像。The electronic device obtains a first combined image according to each first pixel value, each second pixel value and each third pixel value.
步骤904,根据彩色滤光片对应的多个第二颜色感光像素合并读出的第四像素值,得到第二合并图像。Step 904, obtaining a second merged image according to the fourth pixel values read out by merging the plurality of second color photosensitive pixels corresponding to the color filter.
第一滤光片组231中至少一个彩色滤光片234中包括第一颜色子滤光片2341和第二颜色子滤光片2342,则第一滤光片组231中至少一个彩色滤光片234对应第一颜色感光像素2441和第二颜色感光像素2442。At least one color filter 234 in the first filter group 231 includes a first color sub-filter 2341 and a second color sub-filter 2342 , and at least one color filter 234 in the first filter group 231 corresponds to a first color photosensitive pixel 2441 and a second color photosensitive pixel 2442 .
对于包括第二颜色子滤光片2342的彩色滤光片234,电子设备读取在同一彩色滤光片234中的各第二颜色子滤光片2342对应的第二颜色感光像素2442合并读出第四像素值,并基于各第四像素值生成第二合并图像。For the color filter 234 including the second color sub-filter 2342, the electronic device reads the second color photosensitive pixels 2442 corresponding to each second color sub-filter 2342 in the same color filter 234, combines and reads out the fourth pixel value, and generates a second combined image based on each fourth pixel value.
在一个实施例中,第一合并图像是由第一像素值、第二像素值和第三像素值构成的图像,第二合并图像是由第四像素值和空像素构成的图像。其中,空像素是无任何信息的像素。In one embodiment, the first merged image is an image composed of the first pixel value, the second pixel value and the third pixel value, and the second merged image is an image composed of the fourth pixel value and empty pixels, wherein the empty pixels are pixels without any information.
在一个实施例中,同一全色滤光片233对应4个全色像素2431,在不同滤光片组中,同一彩色滤光片234可同时对应2个第一颜色感光像素2441和2个第二颜色感光像素2442,彩色滤光片234可对应4个第三颜色感光像素2443。In one embodiment, the same full-color filter 233 corresponds to 4 full-color pixels 2431. In different filter groups, the same color filter 234 can simultaneously correspond to 2 first color photosensitive pixels 2441 and 2 second color photosensitive pixels 2442. The color filter 234 can correspond to 4 third color photosensitive pixels 2443.
步骤906,基于第一合并图像和第二合并图像,得到第一目标图像。Step 906: Obtain a first target image based on the first merged image and the second merged image.
电子设备可根据预设像素读取方式,从第一合并图像和第二合并图像中读取像素值以生成第一目标图像。预设像素读取方式是预先设置的像素读取方式。The electronic device can read pixel values from the first merged image and the second merged image according to a preset pixel reading method to generate a first target image. The preset pixel reading method is a pre-set pixel reading method.
本实施例中,在第一分辨率模式下,通过滤光片组中的全色滤光片对应的多个全色像素合并读出的第一像素值,以及彩色滤光片对应的多个第一颜色感光像素合并读出的第二像素值,以及彩色滤光片对应的多个第三颜色感光像素合并读出的第三像素值,能够将全色通道信息融合到图像中,提高整体的进光量,使得能够生成信息更多、细节解析更清晰的第一合并图像。根据彩色滤光片对应的多个第二颜色感光像素合并读出的第四像素值,能够将第二颜色感光像素分离出来形成第二合并图像,使得第二颜色感光像素在第二合并图像和第一颜色感光像素在第一合并图像中的位置保持一致。基于第一合并图像和第二合并图像,得到第一目标图像,能够将第一合并图像中的第一颜色感光像素和第二合并图像中的第二颜色感光像素混合排列,使得所生成的第一目标图像色彩更清晰。并且像素合并读出使得生成的第一目标图像尺寸减小、生成图像所需消耗的功耗低。In this embodiment, in the first resolution mode, the full-color channel information can be integrated into the image by merging the first pixel value read out by merging the multiple full-color pixels corresponding to the full-color filter in the filter group, the second pixel value read out by merging the multiple first-color photosensitive pixels corresponding to the color filter, and the third pixel value read out by merging the multiple third-color photosensitive pixels corresponding to the color filter, so as to increase the overall light input, so as to generate a first merged image with more information and clearer detail resolution. According to the fourth pixel value read out by merging the multiple second-color photosensitive pixels corresponding to the color filter, the second-color photosensitive pixels can be separated to form a second merged image, so that the positions of the second-color photosensitive pixels in the second merged image and the first-color photosensitive pixels in the first merged image are consistent. Based on the first merged image and the second merged image, the first target image is obtained, and the first-color photosensitive pixels in the first merged image and the second-color photosensitive pixels in the second merged image can be mixed and arranged, so that the color of the generated first target image is clearer. In addition, the pixel merging readout reduces the size of the generated first target image and the power consumption required to generate the image is low.
在一个实施例中,基于第一合并图像和第二合并图像,得到第一目标图像,包括:In one embodiment, obtaining a first target image based on the first merged image and the second merged image includes:
遍历第一合并图像中的像素值,在所遍历的像素值为第二像素值的情况下,从第二合并图像中读取与第二像素值位置相同的第四像素值,并将所读取的第四像素值调整至与第二像素值相邻,直至第一合并图像中的像素值均被遍历后,得到第一目标图像。The pixel values in the first merged image are traversed, and when the traversed pixel value is the second pixel value, a fourth pixel value at the same position as the second pixel value is read from the second merged image, and the read fourth pixel value is adjusted to be adjacent to the second pixel value, until all the pixel values in the first merged image are traversed, so as to obtain the first target image.
具体地,各第二像素值在第一合并图像中的位置和各第四像素值在第二合并图像中的位置相同。电子设备可遍历第一合并图像中的各像素值,在每次遍历中,确定当前所遍历的像素值是否为第二像素值。在当前所遍历的像素值非第二像素值的情况下,继续遍历下一像素值。在当前所遍历的像素值为第二像素值的情况下,确定当前所遍历的第二像素值的位置,并从第二合并图像中读取与当前所遍历的第二像素值位置相同的第四像素值,并将所读取的第四像素值调整至与第二像素值相邻,接着继续遍历下一像素值,直至第一合并图像中的像素值均被遍历后,生成第一目标图像。Specifically, the position of each second pixel value in the first merged image is the same as the position of each fourth pixel value in the second merged image. The electronic device can traverse each pixel value in the first merged image, and in each traversal, determine whether the currently traversed pixel value is the second pixel value. In the case that the currently traversed pixel value is not the second pixel value, continue to traverse the next pixel value. In the case that the currently traversed pixel value is the second pixel value, determine the position of the currently traversed second pixel value, and read the fourth pixel value with the same position as the currently traversed second pixel value from the second merged image, and adjust the read fourth pixel value to be adjacent to the second pixel value, and then continue to traverse the next pixel value until all pixel values in the first merged image are traversed, and generate the first target image.
本实施例中,在第一目标图像中,第二像素值和第四像素值相邻表示第二像素值和第四像素值在第一目标图像中的位置相同,即表示第二像素值和第四像素值在第一目标图像中的坐标相同。In this embodiment, in the first target image, the second pixel value and the fourth pixel value are adjacent, which means that the second pixel value and the fourth pixel value have the same positions in the first target image, that is, the second pixel value and the fourth pixel value have the same coordinates in the first target image.
在一个实施例中,在当前所遍历的像素值非第二像素值的情况下,继续遍历下一像素值。在当前所遍历的像素值为第二像素值的情况下,确定当前所遍历的第二像素值的位置,并从第二合并图像中读取与当前所遍历的第二像素值位置相同的第四像素值,并将所读取的第四像素值调整至与第二像素值水平相邻。第四像素值与第二像素值水平相邻,可以是将第四像素值作为第二像素值在水平方向上的相邻前一像素值,或者将第四像素值作为第二像素值在水平方向上的相邻后一像素值。In one embodiment, when the currently traversed pixel value is not the second pixel value, continue to traverse the next pixel value. When the currently traversed pixel value is the second pixel value, determine the position of the currently traversed second pixel value, read a fourth pixel value that is the same as the position of the currently traversed second pixel value from the second merged image, and adjust the read fourth pixel value to be horizontally adjacent to the second pixel value. The fourth pixel value is horizontally adjacent to the second pixel value, which can be to use the fourth pixel value as the adjacent previous pixel value of the second pixel value in the horizontal direction, or to use the fourth pixel value as the adjacent next pixel value of the second pixel value in the horizontal direction.
本实施例中,遍历第一合并图像中的像素值,在所遍历的像素值为第二像素值的情况下,从第二合并图像中读取与第二像素值位置相同的第四像素值,并将所读取的第四像素值调整至与第二像素值相邻,使得第一颜色感光像素和第二颜色感光像素混合排列,提高了彩色分辨能力,使得所生成第一目标图像的每行和每列均有第一颜色感光像素、第二颜色感光像素和第三颜色感光像素存在,即目标图像的每行每列均具备有RGB像素,能够有效降低伪色的风险。In this embodiment, the pixel values in the first merged image are traversed, and when the traversed pixel value is the second pixel value, the fourth pixel value at the same position as the second pixel value is read from the second merged image, and the read fourth pixel value is adjusted to be adjacent to the second pixel value, so that the first color photosensitive pixels and the second color photosensitive pixels are mixed and arranged, thereby improving the color resolution capability, so that each row and each column of the generated first target image has the first color photosensitive pixels, the second color photosensitive pixels and the third color photosensitive pixels, that is, each row and each column of the target image has RGB pixels, which can effectively reduce the risk of false color.
如图10所示,在第一分辨率模式下,通过图像传感器获得原始图像1002,将原始图像1002中局部相同像素取平均,做binning,即将局部相同的4个全色像素合并读出第一像素值、局部相同的2个第一颜色感光像素合并读出第二像素值,以及局部相同的4个第三颜色感光像素合并读出第三像素值,得到第一合并图像1004。并且,将局部相同的2个第二颜色感光像素合并读出第四像素值,得到第二合并图像1006。为了保持第二合并图像1006和第一合并图像1004的尺寸相同,可通过第四像素值和空像素生成第二合并图像1006。As shown in FIG. 10 , in the first resolution mode, an original image 1002 is obtained by an image sensor, and locally identical pixels in the original image 1002 are averaged and binned, that is, locally identical four panchromatic pixels are combined to read out a first pixel value, locally identical two first color light-sensitive pixels are combined to read out a second pixel value, and locally identical four third color light-sensitive pixels are combined to read out a third pixel value, to obtain a first combined image 1004. In addition, locally identical two second color light-sensitive pixels are combined to read out a fourth pixel value, to obtain a second combined image 1006. In order to keep the second combined image 1006 and the first combined image 1004 the same size, the second combined image 1006 may be generated by the fourth pixel value and empty pixels.
例如,全色像素为w像素、第一颜色感光像素为R像素、第三颜色感光像素为G像素、第二颜色感光像素为B像素。For example, the full-color pixel is a w pixel, the first color light-sensitive pixel is an R pixel, the third color light-sensitive pixel is a G pixel, and the second color light-sensitive pixel is a B pixel.
从第一合并图像1004和第二合并图像1006读取像素值,使得每个第四像素值作为与第二像素值相邻的后一像素值,得到第一目标图像1008。Pixel values are read from the first merged image 1004 and the second merged image 1006 so that each fourth pixel value is a subsequent pixel value adjacent to the second pixel value, thereby obtaining a first target image 1008 .
在一个实施例中,第二滤光片组的彩色滤光片还包括第一颜色子滤光片或第二颜色子滤光片;在第一分辨率模式下,根据滤光片组中的全色滤光片对应的多个全色像素合并读出的第一像素值,以及彩色滤光片对应的多个第一颜色感光像素合并读出的第二像素值,以及彩色滤光片对应的多个第三颜色感光像素合并读出的第三像素值,得到第一合并图像,包括:In one embodiment, the color filter of the second filter group further includes a first color sub-filter or a second color sub-filter; in the first resolution mode, a first merged image is obtained according to a first pixel value read out by merging a plurality of panchromatic pixels corresponding to the panchromatic filters in the filter group, a second pixel value read out by merging a plurality of first color photosensitive pixels corresponding to the color filters, and a third pixel value read out by merging a plurality of third color photosensitive pixels corresponding to the color filters, including:
在第一分辨率模式下,根据滤光片组中的全色滤光片对应的多个全色像素合并读出的第一像素值,根据第一滤光片组中多个第一颜色子滤光片对应的第一颜色感光像素合并读出的第二像素值、根据包含第一颜色子滤光片的第二滤光片组中多个第三颜色子滤光片对应的第三颜色感光像素合并读出的第三像素值、以及根据第二滤光片组中多个第二颜色子滤光片对应的第二颜色感光像素合并读出的第四像素值,得到第一合并图像;In the first resolution mode, a first merged image is obtained according to a first pixel value read out by merging a plurality of full-color pixels corresponding to the full-color filters in the filter group, a second pixel value read out by merging a first color photosensitive pixels corresponding to a plurality of first color sub-filters in the first filter group, a third pixel value read out by merging a third color photosensitive pixels corresponding to a plurality of third color sub-filters in the second filter group including the first color sub-filters, and a fourth pixel value read out by merging a second color photosensitive pixels corresponding to a plurality of second color sub-filters in the second filter group;
根据彩色滤光片对应的多个第二颜色感光像素合并读出的第四像素值,得到第二合并图像,包括:根据第一滤光片组中多个第二颜色子滤光片对应的第二颜色感光像素合并读出的第四像素值,根据第二滤光片组中多个第一颜色子滤光片对应的第一颜色感光像素合并读出的第二像素值,根据包含第二颜色子滤光片的第二滤光片组中多个第三颜色子滤光片对应的第三颜色感光像素合并读出的第三像素值,得到第二合并图像。A second merged image is obtained based on a fourth pixel value obtained by merging and reading out multiple second color photosensitive pixels corresponding to the color filters, including: a fourth pixel value obtained by merging and reading out second color photosensitive pixels corresponding to multiple second color sub-filters in the first filter group, a second pixel value obtained by merging and reading out first color photosensitive pixels corresponding to multiple first color sub-filters in the second filter group, and a third pixel value obtained by merging and reading out third color photosensitive pixels corresponding to multiple third color sub-filters in the second filter group including the second color sub-filters.
具体地,多个滤光片组包括第一滤光片组231和第二滤光片组232,第一滤光片组231中至少一个彩色滤光片234中包括第一颜色子滤光片2341和第二颜色子滤光片2342。第二滤光片组232的彩色滤光片234中包括第三颜色子滤光片2343,还包括第一颜色子滤光片2341或第二颜色子滤光片2342。Specifically, the plurality of filter groups include a first filter group 231 and a second filter group 232. At least one color filter 234 in the first filter group 231 includes a first color sub-filter 2341 and a second color sub-filter 2342. The color filter 234 of the second filter group 232 includes a third color sub-filter 2343 and also includes the first color sub-filter 2341 or the second color sub-filter 2342.
在第一分辨率模式下,电子设备将同一全色滤光片233对应的多个全色像素2431合并读出第一像素值。In the first resolution mode, the electronic device combines multiple full-color pixels 2431 corresponding to the same full-color filter 233 to read out a first pixel value.
对于第一滤光片组231中的彩色滤光片234,电子设备将同一彩色滤光片234的多个第一颜色子滤光片2341对应的各第一颜色感光像素2441合并读出第二像素值,并将同一彩色滤光片234的多个第二颜色子滤光片2342对应的各第二颜色感光像素2442合并读出第四像素值,则该同一彩色滤光片234对应第二像素值和第四像素值。For the color filter 234 in the first filter group 231, the electronic device combines the first color photosensitive pixels 2441 corresponding to the multiple first color sub-filters 2341 of the same color filter 234 to read out the second pixel value, and combines the second color photosensitive pixels 2442 corresponding to the multiple second color sub-filters 2342 of the same color filter 234 to read out the fourth pixel value, then the same color filter 234 corresponds to the second pixel value and the fourth pixel value.
在第二滤光片组232中的彩色滤光片234包括第一颜色子滤光片2341和第三颜色子滤光片2343的情况下,电子设备将同一彩色滤光片234的多个第一颜色子滤光片2341对应的各第一颜色感光像素2441合并读出第二像素值,并将多个第三颜色子滤光片2343对应的各第三颜色感光像素2443合并读出第三像素值,则该同一彩色滤光片234对应第二像素值和第三像素值。When the color filter 234 in the second filter group 232 includes a first color sub-filter 2341 and a third color sub-filter 2343, the electronic device merges the first color photosensitive pixels 2441 corresponding to the multiple first color sub-filters 2341 of the same color filter 234 to read out the second pixel value, and merges the third color photosensitive pixels 2443 corresponding to the multiple third color sub-filters 2343 to read out the third pixel value, then the same color filter 234 corresponds to the second pixel value and the third pixel value.
在第二滤光片组232中的彩色滤光片234包括第二颜色子滤光片2342和第三颜色子滤光片2343的情况下,电子设备将同一彩色滤光片234的多个第二颜色子滤光片2342对应的各第二颜色感光像素2442合并读出第四像素值,并将同一彩色滤光片234的多个第三颜色子滤光片2343对应的各第三颜色感光像素2443合并读出第三像素值,则该同一彩色滤光片234对应第四像素值和第三像素值。When the color filter 234 in the second filter group 232 includes a second color sub-filter 2342 and a third color sub-filter 2343, the electronic device merges the second color photosensitive pixels 2442 corresponding to the multiple second color sub-filters 2342 of the same color filter 234 to read out a fourth pixel value, and merges the third color photosensitive pixels 2443 corresponding to the multiple third color sub-filters 2343 of the same color filter 234 to read out a third pixel value, then the same color filter 234 corresponds to the fourth pixel value and the third pixel value.
对于对应第二像素值和第四像素值的彩色滤光片234,电子设备可读取第二像素值;对于对应第二像素值和第三像素值的彩色滤光片234,电子设备可读取第三像素值;对于对应第四像素值和第三像素值的彩色滤光片234,电子设备可读取第四像素值;电子设备根据所读取的第二像素值、第三像素值、第四像素值和所有的第一像素值,生成第一合并图像。For the color filter 234 corresponding to the second pixel value and the fourth pixel value, the electronic device can read the second pixel value; for the color filter 234 corresponding to the second pixel value and the third pixel value, the electronic device can read the third pixel value; for the color filter 234 corresponding to the fourth pixel value and the third pixel value, the electronic device can read the fourth pixel value; the electronic device generates a first merged image based on the read second pixel value, third pixel value, fourth pixel value and all the first pixel values.
对于对应第二像素值和第四像素值的彩色滤光片234,电子设备可获取第四像素值;对于对应第二像素值和第三像素值的彩色滤光片234,电子设备可获取第二像素值;对于对应第四像素值和第三像素值的彩色滤光片234,电子设备可获取第三像素值;电子设备根据所获取的第四像素值、第二像素值和第三像素值和空像素,生成第二合并图像。For the color filter 234 corresponding to the second pixel value and the fourth pixel value, the electronic device can obtain the fourth pixel value; for the color filter 234 corresponding to the second pixel value and the third pixel value, the electronic device can obtain the second pixel value; for the color filter 234 corresponding to the fourth pixel value and the third pixel value, the electronic device can obtain the third pixel value; the electronic device generates a second merged image based on the obtained fourth pixel value, second pixel value, third pixel value and empty pixels.
电子设备从第一合并图像和第二合并图像读取像素值,生成第一目标图像。The electronic device reads pixel values from the first merged image and the second merged image to generate a first target image.
本实施例中,第二滤光片组232的彩色滤光片234中包括第三颜色子滤光片2343,还包括第一颜色子滤光片2341或第二颜色子滤光片2342,在第一分辨率模式下,根据滤光片组中的全色滤光片对应的多个全色像素合并读出的第一像素值,根据第一滤光片组中多个第一颜色子滤光片对应的第一颜色感光像素合并读出的第二像素值、根据包含第一颜色子滤光片的第二滤光片组中多个第三颜色子滤光片对应的第三颜色感光像素合并读出的第三像素值、以及根据第二滤光片组中多个第二颜色子滤光片对应的第二颜色感光像素合并读出的第四像素值,使得合并读取所得到的第一合并图像中包含了所有颜色的像素,能够提高彩色通道的分辨能力。根据彩色滤光片对应的多个第一颜色感光像素合并读出的第二像素值、彩色像素对应的多个第三颜色感光像素合并读出的第三像素值、以及彩色滤光片对应的多个第二颜色感光像素合并读出的第四像素值,得到第二合并图像,使得根据第一合并图像和第二合并图像生成的第一目标图像中的各颜色的像素分布更均匀,有效提高图像的清晰度。In this embodiment, the color filter 234 of the second filter group 232 includes a third color sub-filter 2343 and also includes a first color sub-filter 2341 or a second color sub-filter 2342. In the first resolution mode, a first pixel value is read out by merging a plurality of full-color pixels corresponding to the full-color filters in the filter group, a second pixel value is read out by merging a plurality of first color photosensitive pixels corresponding to the plurality of first color sub-filters in the first filter group, a third pixel value is read out by merging a plurality of third color photosensitive pixels corresponding to the plurality of third color sub-filters in the second filter group including the first color sub-filter, and a fourth pixel value is read out by merging a plurality of second color photosensitive pixels corresponding to the plurality of second color sub-filters in the second filter group, so that the first merged image obtained by the merged reading contains pixels of all colors, thereby improving the resolution capability of the color channel. A second merged image is obtained based on the second pixel value read out by merging multiple first color photosensitive pixels corresponding to the color filter, the third pixel value read out by merging multiple third color photosensitive pixels corresponding to the color pixel, and the fourth pixel value read out by merging multiple second color photosensitive pixels corresponding to the color filter, so that the pixel distribution of each color in the first target image generated according to the first merged image and the second merged image is more uniform, effectively improving the clarity of the image.
如图11所示,在第一分辨率模式下,通过图像传感器获得原始图像1102,将原始图像1102中的局部4个相邻的全色像素合并读出第一像素值,将对角线上的2个第一颜色感光像素合并读出第二像素值、将对角线上的2个第三颜色感光像素合并读出第三像素值、将对角线上的2个第二颜色感光像素合并读出的第四像素值;读取第二像素值、第三像素值、第四像素值和所有的第一像素值,生成第一合并图像1104;读取其余的第四像素值、第二像素值和第三像素值,并结合空像素,生成第二合并图像1106。电子设备可基于第一合并图像1104和第二合并图像1106生成第一目标图像。As shown in FIG. 11 , in the first resolution mode, an original image 1102 is obtained by an image sensor, four adjacent full-color pixels in the original image 1102 are merged to read out a first pixel value, two first-color light-sensitive pixels on a diagonal are merged to read out a second pixel value, two third-color light-sensitive pixels on a diagonal are merged to read out a third pixel value, and two second-color light-sensitive pixels on a diagonal are merged to read out a fourth pixel value; the second pixel value, the third pixel value, the fourth pixel value, and all the first pixel values are read to generate a first merged image 1104; the remaining fourth pixel value, the second pixel value, and the third pixel value are read, and combined with empty pixels to generate a second merged image 1106. The electronic device can generate a first target image based on the first merged image 1104 and the second merged image 1106.
在一个实施例中,如图12所示,该方法还包括:In one embodiment, as shown in FIG12 , the method further includes:
步骤1202,在第二分辨率模式下,根据滤光片组中的全色滤光片对应的多个全色像素合并读出的第一像素值,以及彩色滤光片对应的多个第一颜色感光像素合并读出的第二像素值,以及彩色滤光片对应的多个第三颜色感光像素合并读出的第三像素值,得到第一合并图像;该第二分辨率模式对应的分辨率小于第一分辨率模式对应的分辨率。Step 1202, in the second resolution mode, a first merged image is obtained based on a first pixel value read out by merging a plurality of panchromatic pixels corresponding to the panchromatic filters in the filter group, a second pixel value read out by merging a plurality of first color photosensitive pixels corresponding to the color filters, and a third pixel value read out by merging a plurality of third color photosensitive pixels corresponding to the color filters; the resolution corresponding to the second resolution mode is smaller than the resolution corresponding to the first resolution mode.
第二分辨率模式是指对分辨率要求比较低的场景下所使用的模式,是低分辨率、低功耗、高信噪比、高帧率的二级像素合并读出模式。该第二分辨率模式对应的分辨率、功耗小于第一分辨率模式对应的分辨率、功耗。该第二分辨率模式对应的信噪比、帧率大于第一分辨率模式对应的信噪比、帧率。The second resolution mode refers to the mode used in scenarios with relatively low resolution requirements. It is a secondary pixel merging readout mode with low resolution, low power consumption, high signal-to-noise ratio, and high frame rate. The resolution and power consumption corresponding to the second resolution mode are lower than those corresponding to the first resolution mode. The signal-to-noise ratio and frame rate corresponding to the second resolution mode are higher than those corresponding to the first resolution mode.
第二分辨率模式具体可以是图像拍摄时的预览模式、视频拍摄时的预览模式,或者在夜景下进行图像拍摄、视频拍摄的夜景模式等分辨率要求较低的场景,但不限于此。视频拍摄的预览模式例如1080p视频预览、应用视频预览等。The second resolution mode may be a preview mode for image capture, a preview mode for video capture, or a scene with lower resolution requirements such as image capture in night scenes or night scene mode for video capture, but is not limited thereto. The preview mode for video capture may be, for example, 1080p video preview, application video preview, etc.
在接收到拍摄指令的情况下,确定该拍摄指令是否为预览拍摄。在该拍摄指令为预览拍摄的情况下,触发第二分辨率模式。或者,电子设备检测当前环境是否为夜景,在当前环境为夜景的情况下,触发第二分辨率模式。或者,在用户选择第二分辨率模式的情况下,触发第二分辨率模式对应的读出模式。When receiving a shooting instruction, determining whether the shooting instruction is a preview shooting. When the shooting instruction is a preview shooting, triggering the second resolution mode. Alternatively, the electronic device detects whether the current environment is a night scene, and when the current environment is a night scene, triggering the second resolution mode. Alternatively, when the user selects the second resolution mode, triggering the readout mode corresponding to the second resolution mode.
在第二分辨率模式下,全色滤光片233中的子滤光片2331透过的光线投射至对应的全色像素2431上,全色像素2431接收穿过子滤光片2331的光线以生成电信号。彩色滤光片234中的第一颜色子滤光片2341透过的光线投射至对应的第一颜色感光像素2441上,第一颜色感光像素2441穿过对应的第一颜色子滤光片2341的光线以生成电信号。彩色滤光片234中的第二颜色子滤光片2342透过的光线投射至对应的第二颜色感光像素2442上,第二颜色感光像素2442穿过对应的第二颜色子滤光片2342的光线以生成电信号。彩色滤光片234中的第三颜色子滤光片2343透过的光线投射至对应的第三颜色感光像素2443上,第三颜色感光像素2443穿过对应的第三颜色子滤光片2343的光线以生成电信号。In the second resolution mode, the light transmitted through the sub-filter 2331 in the full-color filter 233 is projected onto the corresponding full-color pixel 2431, and the full-color pixel 2431 receives the light transmitted through the sub-filter 2331 to generate an electrical signal. The light transmitted through the first color sub-filter 2341 in the color filter 234 is projected onto the corresponding first color photosensitive pixel 2441, and the first color photosensitive pixel 2441 generates an electrical signal by the light transmitted through the corresponding first color sub-filter 2341. The light transmitted through the second color sub-filter 2342 in the color filter 234 is projected onto the corresponding second color photosensitive pixel 2442, and the second color photosensitive pixel 2442 generates an electrical signal by the light transmitted through the corresponding second color sub-filter 2342. The light transmitted through the third color sub-filter 2343 in the color filter 234 is projected onto the corresponding third color photosensitive pixel 2443 , and the third color photosensitive pixel 2443 generates an electrical signal by the light transmitted through the corresponding third color sub-filter 2343 .
第一滤光片组231中至少一个彩色滤光片234中包括第一颜色子滤光片2341和第二颜色子滤光片2342,则第一滤光片组231中至少一个彩色滤光片234对应第一颜色感光像素2441和第二颜色感光像素2442。At least one color filter 234 in the first filter group 231 includes a first color sub-filter 2341 and a second color sub-filter 2342 , and at least one color filter 234 in the first filter group 231 corresponds to a first color photosensitive pixel 2441 and a second color photosensitive pixel 2442 .
电子设备将同一全色滤光片233对应的多个全色像素2431合并读出第一像素值。同一彩色滤光片234中可同时包括多个第一颜色子滤光片2341和多个第二颜色子滤光片2342,电子设备将同一彩色滤光片234中多个第一颜色子滤光片2341对应的各第一颜色感光像素2441合并读出第二像素值。同一彩色滤光片234中可包括多个第三颜色子滤光片2343,电子设备将同一彩色滤光片234中多个第三颜色子滤光片2343对应的各第三颜色感光像素2443合并读出第三像素值。The electronic device combines the multiple full-color pixels 2431 corresponding to the same full-color filter 233 to read out the first pixel value. The same color filter 234 may include multiple first color sub-filters 2341 and multiple second color sub-filters 2342 at the same time, and the electronic device combines the first color photosensitive pixels 2441 corresponding to the multiple first color sub-filters 2341 in the same color filter 234 to read out the second pixel value. The same color filter 234 may include multiple third color sub-filters 2343, and the electronic device combines the third color photosensitive pixels 2443 corresponding to the multiple third color sub-filters 2343 in the same color filter 234 to read out the third pixel value.
电子设备根据各第一像素值、各第二像素值和各第三像素值,得到第一合并图像。The electronic device obtains a first combined image according to each first pixel value, each second pixel value and each third pixel value.
步骤1204,根据彩色滤光片对应的多个第二颜色感光像素合并读出的第四像素值,得到第二合并图像。Step 1204, obtaining a second merged image according to the fourth pixel values read out by merging the plurality of second color photosensitive pixels corresponding to the color filter.
对于包括第二颜色子滤光片2342的彩色滤光片234,电子设备读取在同一彩色滤光片234中的各第二颜色子滤光片2342对应的第二颜色感光像素2442合并读出第四像素值,并基于各第四像素值生成第二合并图像。For the color filter 234 including the second color sub-filter 2342, the electronic device reads the second color photosensitive pixels 2442 corresponding to each second color sub-filter 2342 in the same color filter 234, combines and reads out the fourth pixel value, and generates a second combined image based on each fourth pixel value.
步骤1206,基于第一合并图像中第九对角线方向上的多个全色像素合并读出的第五像素值,得到全色合并图像。Step 1206 , obtaining a full-color combined image based on the fifth pixel value read out by combining a plurality of full-color pixels in the ninth diagonal direction in the first combined image.
电子设备将第一合并图像中在第九对角线方向上的多个全色像素合并读出第五像素值,根据各第五像素值生成全色合并图像。该全色合并图像中均为全色像素。The electronic device combines a plurality of full-color pixels in the ninth diagonal direction in the first combined image to read out fifth pixel values, and generates a full-color combined image according to each fifth pixel value. The full-color combined image contains all full-color pixels.
步骤1208,基于第一合并图像中第十对角线方向上的多个第一颜色感光像素合并读出的第六像素值,以及在第十对角线方向上的多个第三颜色感光像素合并读出的第七像素值,得到第三合并图像,第九对角线方向不同于第十对角线方向。Step 1208, based on the sixth pixel value read out by merging multiple first color photosensitivity pixels in the tenth diagonal direction in the first merged image, and the seventh pixel value read out by merging multiple third color photosensitivity pixels in the tenth diagonal direction, a third merged image is obtained, and the ninth diagonal direction is different from the tenth diagonal direction.
电子设备将第一合并图像中第十对角线方向上的多个第一颜色感光像素合并读出第六像素值,并将第十对角线方向上的多个第三颜色感光像素合并读出第七像素值,根据第六像素值和第七像素值,生成第三合并图像。该第三合并图像中包括第一颜色感光像素和第三颜色感光像素。第九对角线方向与第十对角线方向不同,具体可以是七对角线方向与第十对角线方向不平行,或者,第九对角线方向与第十对角线方向垂直等。The electronic device combines a plurality of first color light-sensitive pixels in the tenth diagonal direction in the first combined image to read out a sixth pixel value, and combines a plurality of third color light-sensitive pixels in the tenth diagonal direction to read out a seventh pixel value, and generates a third combined image according to the sixth pixel value and the seventh pixel value. The third combined image includes first color light-sensitive pixels and third color light-sensitive pixels. The ninth diagonal direction is different from the tenth diagonal direction, and specifically, the seventh diagonal direction is not parallel to the tenth diagonal direction, or the ninth diagonal direction is perpendicular to the tenth diagonal direction, etc.
步骤1210,基于第二合并图像中第十对角线方向上的多个第二颜色感光像素合并读出的第八像素值,得到第四合并图像。Step 1210, obtaining a fourth merged image based on the eighth pixel value read out by merging a plurality of second color light-sensitive pixels in the tenth diagonal direction in the second merged image.
电子设备将第二合并图像中处于第十对角线方向上的多个第二颜色感光像素合并读出第八像素值。基于各第八像素值,生成第四合并图像。The electronic device combines a plurality of second color light-sensitive pixels in the tenth diagonal direction in the second combined image to read out eighth pixel values, and generates a fourth combined image based on the eighth pixel values.
在一个实施例中,电子设备将第二合并图像中处于第十对角线方向上的2个第二颜色感光像素合并读出第八像素值,基于各第八像素值和空像素,生成第四合并图像。In one embodiment, the electronic device combines two second color photosensitive pixels in the tenth diagonal direction in the second combined image to read out the eighth pixel value, and generates a fourth combined image based on the eighth pixel values and empty pixels.
步骤1212,基于全色合并图像、第三合并图像和第四合并图像,得到第二目标图像。Step 1212: Obtain a second target image based on the full-color merged image, the third merged image, and the fourth merged image.
电子设备可根据从全色合并图像、第三合并图像和第四合并图像中读取像素值以生成第二目标图像。The electronic device may generate a second target image based on reading pixel values from the full-color combined image, the third combined image, and the fourth combined image.
本实施例中,在第二分辨率模式下,根据滤光片组中的全色滤光片对应的多个全色像素合并读出的第一像素值,以及彩色滤光片对应的多个彩色像素合并读出的第二像素值,以及彩色滤光片对应的多个第三颜色感光像素合并读出的第三像素值,得到第一合并图像,并将根据彩色滤光片对应的多个第二颜色感光像素合并读出的第四像素值,得到第二合并图像,能够将第二颜色感光像素分离出来作为单独的图像并降低图像的分辨率。基于第一合并图像中第九对角线方向上的多个全色像素合并读出的第五像素值得到全色合并图像,能够将全色像素从第一合并图像中分离出来的同时减小图像的尺寸,以降低功耗。基于第一合并图像中第十对角线方向上的多个第一颜色感光像素合并读出的第六像素值,以及第十对角线方向上的多个第三颜色感光像素合并读出的第七像素值,得到包含第一颜色感光像素和第三颜色感光像素的第三合并图像,多合一的像素读出方式使得生成的图像噪声少。基于第二合并图像中第十对角线方向上的多个第二颜色感光像素合并读出的第八像素值,使得第四合并图像的尺寸与第三合并图像、全色合并图像的尺寸保持一致。基于全色合并图像、第三合并图像和第四合并图像,能够将不同第一颜色感光像素和第二颜色感光像素进行混合排列,使得所生成的第二目标图像中RGB像素分布更均匀,图像质量更高。并且,所得到第二目标图像的分辨率进一步减小,且全色像素具有更高的信噪比,图像的帧率高,从而达到了二级像素合并输出的功耗更低、信噪比更佳的图像处理效果。In this embodiment, in the second resolution mode, a first merged image is obtained according to the first pixel value read out by merging multiple panchromatic pixels corresponding to the panchromatic filters in the filter group, the second pixel value read out by merging multiple color pixels corresponding to the color filters, and the third pixel value read out by merging multiple third color photosensitive pixels corresponding to the color filters, and a second merged image is obtained according to the fourth pixel value read out by merging multiple second color photosensitive pixels corresponding to the color filters, so that the second color photosensitive pixels can be separated as a separate image and the resolution of the image can be reduced. A panchromatic merged image is obtained based on the fifth pixel value read out by merging multiple panchromatic pixels in the ninth diagonal direction in the first merged image, so that the panchromatic pixels can be separated from the first merged image while reducing the size of the image to reduce power consumption. A third merged image including the first color photosensitive pixels and the third color photosensitive pixels is obtained based on the sixth pixel value read out by merging multiple first color photosensitive pixels in the tenth diagonal direction in the first merged image, and the seventh pixel value read out by merging multiple third color photosensitive pixels in the tenth diagonal direction, so that the generated image has less noise. Based on the eighth pixel value read out by merging multiple second color photosensitive pixels in the tenth diagonal direction in the second merged image, the size of the fourth merged image is kept consistent with the size of the third merged image and the full-color merged image. Based on the full-color merged image, the third merged image and the fourth merged image, different first color photosensitive pixels and second color photosensitive pixels can be mixed and arranged, so that the RGB pixels in the generated second target image are more evenly distributed and the image quality is higher. In addition, the resolution of the obtained second target image is further reduced, and the full-color pixels have a higher signal-to-noise ratio, and the frame rate of the image is high, thereby achieving an image processing effect with lower power consumption and better signal-to-noise ratio of the secondary pixel merging output.
在一个实施例中,基于全色合并图像、第三合并图像和第四合并图像,得到第二目标图像,包括:In one embodiment, obtaining a second target image based on the full-color merged image, the third merged image, and the fourth merged image includes:
遍历第三合并图像中的像素;在所遍历的像素值为第六像素值或第七像素值的情况下,从全色合并图像中读取与遍历的像素值对应的第五像素值,并将所读取的第五像素值调整至与遍历的像素值相邻;在所遍历的像素值为第六像素值的情况下,从第四合并图像中读取与第六像素位置相同的第八像素值,并将所读取的第八像素值调整至与第六像素值相邻,直至全色合并图像、第三合并图像和第四合并图像中的像素值均读取后,得到第二目标图像。Traverse the pixels in the third merged image; when the traversed pixel value is the sixth pixel value or the seventh pixel value, read the fifth pixel value corresponding to the traversed pixel value from the full-color merged image, and adjust the read fifth pixel value to be adjacent to the traversed pixel value; when the traversed pixel value is the sixth pixel value, read the eighth pixel value at the same position as the sixth pixel from the fourth merged image, and adjust the read eighth pixel value to be adjacent to the sixth pixel value, until the pixel values in the full-color merged image, the third merged image and the fourth merged image are all read, and the second target image is obtained.
具体地,各第六像素值在第三合并图像中的位置和各第八像素值在第四合并图像中的位置相同。各全色像素在全色合并图像中的位置和各第六像素值在第三合并图像中的位置、各第八像素值在第四合并图像中的位置相同。Specifically, the position of each sixth pixel value in the third merged image is the same as the position of each eighth pixel value in the fourth merged image. The position of each panchromatic pixel in the panchromatic merged image is the same as the position of each sixth pixel value in the third merged image and the position of each eighth pixel value in the fourth merged image.
电子设备可遍历第三合并图像中的各像素值,在每次遍历中,确定当前所遍历的像素值是否为第六像素值或第七像素值。在当前所遍历的像素值非第六像素值且非第七像素值的情况下,继续遍历下一像素值。The electronic device may traverse each pixel value in the third merged image, and in each traversal, determine whether the currently traversed pixel value is the sixth pixel value or the seventh pixel value. If the currently traversed pixel value is neither the sixth pixel value nor the seventh pixel value, continue to traverse the next pixel value.
在当前所遍历的像素值为第六像素值或第七像素值的情况下,确定当前所遍历的像素值的位置,从全色合并图像中读取与遍历的像素值对应的第五像素值,并将所读取的第五像素值调整至与当前所遍历的像素值相邻。并且,在当前所遍历的像素值为第六像素值的情况下,从第四合并图像中读取与第六像素位置相同的第八像素值,将所读取的第八像素值调整至与第六像素值相邻,接着继续遍历下一像素值,直至全色合并图像、第三合并图像和第四合并图像中的像素值均读取后,得到第二目标图像。When the pixel value currently traversed is the sixth pixel value or the seventh pixel value, the position of the pixel value currently traversed is determined, the fifth pixel value corresponding to the traversed pixel value is read from the full-color merged image, and the read fifth pixel value is adjusted to be adjacent to the pixel value currently traversed. Furthermore, when the pixel value currently traversed is the sixth pixel value, the eighth pixel value having the same position as the sixth pixel is read from the fourth merged image, the read eighth pixel value is adjusted to be adjacent to the sixth pixel value, and then the next pixel value is traversed continuously until the pixel values in the full-color merged image, the third merged image, and the fourth merged image are all read, thereby obtaining the second target image.
本实施例中,在第二目标图像中第六像素值和第八像素值相邻,则表示第六像素值和第八像素值在第二目标图像中的位置相同,即表示第六像素值和第八像素值在第二目标图像中的坐标相同。In this embodiment, if the sixth pixel value and the eighth pixel value are adjacent in the second target image, it means that the sixth pixel value and the eighth pixel value have the same position in the second target image, that is, it means that the sixth pixel value and the eighth pixel value have the same coordinates in the second target image.
在一个实施例中,第五像素值与当前所遍历的像素值相邻,可以是第五像素值与当前所遍历的像素值在水平方向上相邻,具体可以是将第五像素值作为当前所遍历的像素值在水平方向上的相邻前一像素值或相邻后一像素值。In one embodiment, the fifth pixel value is adjacent to the currently traversed pixel value, which may be that the fifth pixel value is adjacent to the currently traversed pixel value in the horizontal direction. Specifically, the fifth pixel value may be taken as the adjacent previous pixel value or the adjacent next pixel value of the currently traversed pixel value in the horizontal direction.
第八像素值与第六像素值相邻,可以是第八像素值与第六像素值水平相邻。第八像素值与第六像素值水平相邻,可以是将第八像素值作为第六像素值在水平方向上的相邻前一像素值,或者将第八像素值作为第六像素值在水平方向上的相邻后一像素值。The eighth pixel value is adjacent to the sixth pixel value, which may be that the eighth pixel value is horizontally adjacent to the sixth pixel value. The eighth pixel value is horizontally adjacent to the sixth pixel value, which may be that the eighth pixel value is used as the adjacent previous pixel value of the sixth pixel value in the horizontal direction, or that the eighth pixel value is used as the adjacent subsequent pixel value of the sixth pixel value in the horizontal direction.
在一个实施例中,在第五像素值作为第六像素值在水平方向上的相邻前一像素值的情况下,将第八像素值作为该第六像素值在水平方向上的相邻后一像素值。In one embodiment, when the fifth pixel value is used as the adjacent previous pixel value of the sixth pixel value in the horizontal direction, the eighth pixel value is used as the adjacent subsequent pixel value of the sixth pixel value in the horizontal direction.
本实施例中,遍历第三合并图像中的像素,在所遍历的像素值为第六像素值或第七像素值的情况下,从全色合并图像中读取与遍历的像素值对应的第五像素值,并将所读取的第五像素值调整至与遍历的像素值相邻,使得在图像中引入了全色像素,提高了进光量。在所遍历的像素值为第六像素值的情况下,从第四合并图像中读取与第六像素位置相同的第八像素值,并将所读取的第八像素值调整至与第六像素值相邻,使得第一颜色感光像素和第二颜色感光像素混合排列,提高了彩色分辨能力,使得所生成第二目标图像的每行和每列均有第一颜色感光像素、第二颜色感光像素和第二颜色感光像素存在,即目标图像的每行每列均具备有RGB像素,能够有效降低伪色的风险。In this embodiment, the pixels in the third merged image are traversed, and when the traversed pixel value is the sixth pixel value or the seventh pixel value, the fifth pixel value corresponding to the traversed pixel value is read from the full-color merged image, and the read fifth pixel value is adjusted to be adjacent to the traversed pixel value, so that full-color pixels are introduced into the image, and the amount of light entering is increased. When the traversed pixel value is the sixth pixel value, the eighth pixel value at the same position as the sixth pixel is read from the fourth merged image, and the read eighth pixel value is adjusted to be adjacent to the sixth pixel value, so that the first color photosensitive pixels and the second color photosensitive pixels are mixed and arranged, and the color resolution ability is improved, so that each row and each column of the generated second target image has the first color photosensitive pixels, the second color photosensitive pixels, and the second color photosensitive pixels, that is, each row and each column of the target image has RGB pixels, which can effectively reduce the risk of false colors.
如图13所示,在第二分辨率模式下,通过图像传感器获得原始图像1302,将原始图像1302中局部相同的4个全色像素合并读出第一像素值、局部相同的2个第一颜色感光像素合并读出第二像素值,以及局部相同的4个第三颜色感光像素合并读出第三像素值,得到第一合并图像1304。并且,将局部相同的2个第二颜色感光像素合并读出第四像素值,得到第二合并图像1306。为了保持第二合并图像1306和第一合并图像1304的尺寸相同,可通过第四像素值和空像素生成第二合并图像1306。As shown in FIG. 13 , in the second resolution mode, an original image 1302 is obtained by an image sensor, and the four partially identical full-color pixels in the original image 1302 are merged to read out a first pixel value, the two partially identical first-color light-sensitive pixels are merged to read out a second pixel value, and the four partially identical third-color light-sensitive pixels are merged to read out a third pixel value, thereby obtaining a first merged image 1304. Furthermore, the two partially identical second-color light-sensitive pixels are merged to read out a fourth pixel value, thereby obtaining a second merged image 1306. In order to keep the second merged image 1306 and the first merged image 1304 the same size, the second merged image 1306 may be generated by the fourth pixel value and the empty pixel.
将第一合并图像1304中在第九对角线D9方向上的2个全色像素合并读出第五像素值,得到全色合并图像1308。将第一合并图像1304中在第十对角线D10方向上的2个第一颜色感光像素合并读出第六像素值,以及在第十对角线D10方向上的2个第三颜色感光像素合并读出第七像素值,得到第三合并图像1310。The two full-color pixels in the direction of the ninth diagonal line D9 in the first merged image 1304 are merged to read out a fifth pixel value, thereby obtaining a full-color merged image 1308. The two first-color light-sensitive pixels in the direction of the tenth diagonal line D10 in the first merged image 1304 are merged to read out a sixth pixel value, and the two third-color light-sensitive pixels in the direction of the tenth diagonal line D10 are merged to read out a seventh pixel value, thereby obtaining a third merged image 1310.
基于第二合并图像1306中在第十对角线D10方向上的2个第二颜色感光像素合并读出的第八像素值,得到第四合并图像1312。The fourth merged image 1312 is obtained based on the eighth pixel value read out by merging the two second color light-sensitive pixels in the direction of the tenth diagonal line D10 in the second merged image 1306 .
遍历第三合并图像1310中的像素,在所遍历的像素值为第六像素值或第七像素值的情况下,从全色合并图像1308中读取与遍历的像素值对应的第五像素值,并将所读取的第五像素值作为与遍历的像素值相邻的前一像素值。并且,在所遍历的像素值为第六像素值的情况下,从第四合并图像1312中读取与第六像素位置相同的第八像素值,并将所读取的第八像素值作为与第六像素值相邻的后一像素值,直至第三合并图像中的像素值均遍历后,得到第二目标图像1314。The pixels in the third merged image 1310 are traversed. When the traversed pixel value is the sixth pixel value or the seventh pixel value, the fifth pixel value corresponding to the traversed pixel value is read from the full-color merged image 1308, and the read fifth pixel value is used as the previous pixel value adjacent to the traversed pixel value. Furthermore, when the traversed pixel value is the sixth pixel value, the eighth pixel value at the same position as the sixth pixel is read from the fourth merged image 1312, and the read eighth pixel value is used as the next pixel value adjacent to the sixth pixel value, until all the pixel values in the third merged image are traversed, and the second target image 1314 is obtained.
在一个实施中,在第二分辨率模式下,第二滤光片组的彩色滤光片还包括第一颜色子滤光片或第二颜色子滤光片;根据滤光片组中的全色滤光片对应的多个全色像素合并读出的第一像素值,以及彩色滤光片对应的多个第一颜色感光像素合并读出的第二像素值,以及彩色滤光片对应的多个第三颜色感光像素合并读出的第三像素值,得到第一合并图像,包括:In one implementation, in the second resolution mode, the color filter of the second filter group further includes a first color sub-filter or a second color sub-filter; a first merged image is obtained according to a first pixel value obtained by merging and reading a plurality of panchromatic pixels corresponding to the panchromatic filters in the filter group, a second pixel value obtained by merging and reading a plurality of first color photosensitive pixels corresponding to the color filters, and a third pixel value obtained by merging and reading a plurality of third color photosensitive pixels corresponding to the color filters, including:
在第二分辨率模式下,根据滤光片组中的全色滤光片对应的多个全色像素合并读出的第一像素值,根据第一滤光片组中多个第一颜色子滤光片对应的第一颜色感光像素合并读出的第二像素值、根据包含第一颜色子滤光片的第二滤光片组中多个第三颜色子滤光片对应的第三颜色感光像素合并读出的第三像素值、以及根据第二滤光片组中多个第二颜色子滤光片对应的第二颜色感光像素合并读出的第四像素值,得到第一合并图像;In the second resolution mode, a first merged image is obtained according to a first pixel value obtained by merging and reading a plurality of full-color pixels corresponding to the full-color filters in the filter group, a second pixel value obtained by merging and reading a first color photosensitive pixel corresponding to a plurality of first color sub-filters in the first filter group, a third pixel value obtained by merging and reading a third color photosensitive pixel corresponding to a plurality of third color sub-filters in the second filter group including the first color sub-filters, and a fourth pixel value obtained by merging and reading a second color photosensitive pixel corresponding to a plurality of second color sub-filters in the second filter group;
根据彩色滤光片对应的多个第二颜色感光像素合并读出的第四像素值,得到第二合并图像,包括:The second merged image is obtained by merging and reading out fourth pixel values of a plurality of second color photosensitive pixels corresponding to the color filter, including:
根据第一滤光片组中多个第二颜色子滤光片对应的第二颜色感光像素合并读出的第四像素值,根据第二滤光片组中多个第一颜色子滤光片对应的第一颜色感光像素合并读出的第二像素值,根据包含第二颜色子滤光片的第二滤光片组中多个第三颜色子滤光片对应的第三颜色感光像素合并读出的第三像素值,得到第二合并图像;A second merged image is obtained by combining and reading a fourth pixel value of second color photosensitive pixels corresponding to a plurality of second color sub-filters in the first filter group, combining and reading a second pixel value of first color photosensitive pixels corresponding to a plurality of first color sub-filters in the second filter group, and combining and reading a third pixel value of third color photosensitive pixels corresponding to a plurality of third color sub-filters in the second filter group including the second color sub-filter;
基于第一合并图像中第十对角线方向上的多个第一颜色感光像素合并读出的第六像素值,以及在第十对角线方向上的多个第三颜色感光像素合并读出的第七像素值,得到第三合并图像,包括:基于第一合并图像中在第九对角线方向上的多个全色像素合并读出的第五像素值、在第十对角线方向上的多个第一颜色感光像素合并读出的第六像素值、在第十对角线方向上的多个第三颜色感光像素合并读出的第七像素值、以及在第十对角线方向上的多个第二颜色感光像素合并读出的第八像素值,分别得到全色合并图像和第三合并图像;Based on the sixth pixel value obtained by merging and reading out multiple first color photosensitive pixels in the tenth diagonal direction in the first merged image, and the seventh pixel value obtained by merging and reading out multiple third color photosensitive pixels in the tenth diagonal direction, a third merged image is obtained, including: based on the fifth pixel value obtained by merging and reading out multiple full-color pixels in the ninth diagonal direction in the first merged image, the sixth pixel value obtained by merging and reading out multiple first color photosensitive pixels in the tenth diagonal direction, the seventh pixel value obtained by merging and reading out multiple third color photosensitive pixels in the tenth diagonal direction, and the eighth pixel value obtained by merging and reading out multiple second color photosensitive pixels in the tenth diagonal direction, respectively obtaining a full-color merged image and a third merged image;
基于第二合并图像中在第十对角线方向上的多个第二颜色感光像素合并读出的第八像素值,得到第四合并图像,包括:基于第二合并图像中,在第十对角线方向上的多个第一颜色感光像素合并读出的第六像素值、在第十对角线方向上的多个第三颜色感光像素合并读出的第七像素值、以及在第十对角线方向上的多个第二颜色感光像素合并读出的第八像素值,得到第四合并图像。A fourth merged image is obtained based on the eighth pixel value read out by merging multiple second color photosensitive pixels in the tenth diagonal direction in the second merged image, including: a fourth merged image is obtained based on the sixth pixel value read out by merging multiple first color photosensitive pixels in the tenth diagonal direction in the second merged image, a seventh pixel value read out by merging multiple third color photosensitive pixels in the tenth diagonal direction, and an eighth pixel value read out by merging multiple second color photosensitive pixels in the tenth diagonal direction.
具体地,多个滤光片组包括第一滤光片组231和第二滤光片组232,第一滤光片组231中的彩色滤光片234中包括第一颜色子滤光片2341和第二颜色子滤光片2342。第二滤光片组232的彩色滤光片234中包括第三颜色子滤光片2343,还包括第一颜色子滤光片2341或第二颜色子滤光片2342。Specifically, the plurality of filter groups include a first filter group 231 and a second filter group 232. The color filter 234 in the first filter group 231 includes a first color sub-filter 2341 and a second color sub-filter 2342. The color filter 234 in the second filter group 232 includes a third color sub-filter 2343 and further includes the first color sub-filter 2341 or the second color sub-filter 2342.
在第二分辨率模式下,电子设备将同一全色滤光片233对应的多个全色像素2431合并读出第一像素值。In the second resolution mode, the electronic device combines multiple full-color pixels 2431 corresponding to the same full-color filter 233 to read out a first pixel value.
对于第一滤光片组231中的彩色滤光片234,电子设备将同一彩色滤光片234的多个第一颜色子滤光片2341对应的各第一颜色感光像素2441合并读出第二像素值,并将同一彩色滤光片234的多个第二颜色子滤光片2342对应的各第二颜色感光像素2442合并读出第四像素值,则该同一彩色滤光片234对应第二像素值和第四像素值。For the color filter 234 in the first filter group 231, the electronic device combines the first color photosensitive pixels 2441 corresponding to the multiple first color sub-filters 2341 of the same color filter 234 to read out the second pixel value, and combines the second color photosensitive pixels 2442 corresponding to the multiple second color sub-filters 2342 of the same color filter 234 to read out the fourth pixel value, then the same color filter 234 corresponds to the second pixel value and the fourth pixel value.
在第二滤光片组232中的彩色滤光片234包括第一颜色子滤光片2341和第三颜色子滤光片2343的情况下,电子设备将同一彩色滤光片234的多个第一颜色子滤光片2341对应的各第一颜色感光像素2441合并读出第二像素值,并将多个第三颜色子滤光片2343对应的各第三颜色感光像素2443合并读出第三像素值,则该同一彩色滤光片234对应第二像素值和第三像素值。When the color filter 234 in the second filter group 232 includes a first color sub-filter 2341 and a third color sub-filter 2343, the electronic device merges the first color photosensitive pixels 2441 corresponding to the multiple first color sub-filters 2341 of the same color filter 234 to read out the second pixel value, and merges the third color photosensitive pixels 2443 corresponding to the multiple third color sub-filters 2343 to read out the third pixel value, then the same color filter 234 corresponds to the second pixel value and the third pixel value.
在第二滤光片组232中的彩色滤光片234包括第二颜色子滤光片2342和第三颜色子滤光片2343的情况下,电子设备将同一彩色滤光片234的多个第二颜色子滤光片2342对应的各第二颜色感光像素2442合并读出第四像素值,并将同一彩色滤光片234的多个第三颜色子滤光片2343对应的各第三颜色感光像素2443合并读出第三像素值,则该同一彩色滤光片234对应第四像素值和第三像素值。When the color filter 234 in the second filter group 232 includes a second color sub-filter 2342 and a third color sub-filter 2343, the electronic device merges the second color photosensitive pixels 2442 corresponding to the multiple second color sub-filters 2342 of the same color filter 234 to read out a fourth pixel value, and merges the third color photosensitive pixels 2443 corresponding to the multiple third color sub-filters 2343 of the same color filter 234 to read out a third pixel value, then the same color filter 234 corresponds to the fourth pixel value and the third pixel value.
对于对应第二像素值和第四像素值的彩色滤光片234,电子设备可读取第二像素值;对于对应第二像素值和第三像素值的彩色滤光片234,电子设备可读取第三像素值;对于对应第四像素值和第三像素值的彩色滤光片234,电子设备可读取第四像素值;电子设备根据所读取的各第二像素值、各第三像素值、各第四像素值和所有的第一像素值,生成第一合并图像。该第一合并图像中包括全色像素、第一颜色感光像素、第二颜色感光像素和第三颜色感光像素。For the color filter 234 corresponding to the second pixel value and the fourth pixel value, the electronic device can read the second pixel value; for the color filter 234 corresponding to the second pixel value and the third pixel value, the electronic device can read the third pixel value; for the color filter 234 corresponding to the fourth pixel value and the third pixel value, the electronic device can read the fourth pixel value; the electronic device generates a first merged image based on the read second pixel values, third pixel values, fourth pixel values and all first pixel values. The first merged image includes full-color pixels, first color photosensitive pixels, second color photosensitive pixels and third color photosensitive pixels.
对于第一合并图像,电子设备将第九对角线方向上的多个全色像素合并读出第五像素值,根据各第五像素值生成全色合并图像。该全色合并图像中均为全色像素。For the first combined image, the electronic device combines a plurality of full-color pixels in the ninth diagonal direction to read out fifth pixel values, and generates a full-color combined image according to each fifth pixel value. The full-color combined image contains all full-color pixels.
对于第一合并图像,电子设备将第一合并图像中在第十对角线方向上的多个第一颜色感光像素合并读出第六像素值,并将在第十对角线方向上的多个第三颜色感光像素合并读出第七像素值,将在第十对角线方向上的多个第二颜色感光像素合并读出的第八像素值。根据读出的第六像素值、第七像素值和第八像素值,生成第三合并图像。该第三合并图像中包括第一颜色感光像素、第二颜色感光像素和第三颜色感光像素。For the first merged image, the electronic device combines the plurality of first color photosensitive pixels in the tenth diagonal direction in the first merged image to read out the sixth pixel value, combines the plurality of third color photosensitive pixels in the tenth diagonal direction to read out the seventh pixel value, and combines the plurality of second color photosensitive pixels in the tenth diagonal direction to read out the eighth pixel value. A third merged image is generated based on the read out sixth pixel value, seventh pixel value, and eighth pixel value. The third merged image includes the first color photosensitive pixels, the second color photosensitive pixels, and the third color photosensitive pixels.
对于对应第二像素值和第四像素值的彩色滤光片234,电子设备可获取第四像素值;对于对应第二像素值和第三像素值的彩色滤光片234,电子设备可获取第二像素值;对于对应第四像素值和第三像素值的彩色滤光片234,电子设备可获取第三像素值;电子设备根据所获取的第四像素值、第二像素值和第三像素值和空像素,生成第二合并图像。For the color filter 234 corresponding to the second pixel value and the fourth pixel value, the electronic device can obtain the fourth pixel value; for the color filter 234 corresponding to the second pixel value and the third pixel value, the electronic device can obtain the second pixel value; for the color filter 234 corresponding to the fourth pixel value and the third pixel value, the electronic device can obtain the third pixel value; the electronic device generates a second merged image based on the obtained fourth pixel value, second pixel value, third pixel value and empty pixels.
对于第二合并图像,电子设备将第二合并图像中在第十对角线方向上的多个第一颜色感光像素合并读出第六像素值、在第十对角线方向上的多个第三颜色感光像素合并读出第七像素值、以及在第十对角线方向上的多个第二颜色感光像素合并读出第八像素值。根据读出的第六像素值、第七像素值和第八像素值,以及空像素,生成第四合并图像。该第四合并图像中包括第一颜色感光像素、第二颜色感光像素、第三颜色感光像素和空像素。For the second merged image, the electronic device merges and reads out a sixth pixel value from a plurality of first color light-sensitive pixels in the tenth diagonal direction, merges and reads out a seventh pixel value from a plurality of third color light-sensitive pixels in the tenth diagonal direction, and merges and reads out an eighth pixel value from a plurality of second color light-sensitive pixels in the tenth diagonal direction. A fourth merged image is generated based on the read out sixth pixel value, seventh pixel value, and eighth pixel value, as well as empty pixels. The fourth merged image includes first color light-sensitive pixels, second color light-sensitive pixels, third color light-sensitive pixels, and empty pixels.
电子设备根据全色合并图像、第三合并图像和第四合并图像,可生成第二目标图像。The electronic device may generate a second target image according to the full-color combined image, the third combined image and the fourth combined image.
本实施例中,在第二分辨率模式下,根据滤光片组中的全色滤光片对应的多个全色像素合并读出的第一像素值,根据第一滤光片组中多个第一颜色子滤光片对应的第一颜色感光像素合并读出的第二像素值,根据包含第一颜色子滤光片的第二滤光片组中第三颜色感光像素合并读出的第三像素值,以及根据第二滤光片组中多个第二颜色子滤光片对应的第三颜色感光像素合并读出的第四像素值,得到第一合并图像,并将根据第一滤光片组中多个第二颜色子滤光片对应的第二颜色感光像素合并读出的第四像素值,根据第二滤光片组中多个第一颜色子滤光片对应的第一颜色感光像素合并读出的第二像素值,根据包含第二颜色子滤光片的第二滤光片组中多个第三颜色子滤光片对应的第三颜色感光像素合并读出的第三像素值,得到第二合并图像,能够将各个彩色滤光片对应的第一颜色感光像素、第二颜色感光像素和第三颜色感光像素分离出来形成两张合并图像,使得两张合并图像中各颜色的感光像素在各自合并图像中的位置相同。In this embodiment, in the second resolution mode, a first pixel value is read out according to a combination of a plurality of full-color pixels corresponding to the full-color filters in the filter group, a second pixel value is read out according to a combination of a first color photosensitive pixel corresponding to a plurality of first color sub-filters in the first filter group, a third pixel value is read out according to a combination of a third color photosensitive pixel in the second filter group including the first color sub-filter, and a fourth pixel value is read out according to a combination of a third color photosensitive pixel corresponding to a plurality of second color sub-filters in the second filter group to obtain a first merged image, and a plurality of second color sub-filters in the first filter group are combined to form a first merged image. The second merged image is obtained by combining and reading the fourth pixel value of the second color photosensitive pixels corresponding to the multiple first color sub-filters in the second filter group, and combining and reading the third pixel value of the third color photosensitive pixels corresponding to the multiple third color sub-filters in the second filter group including the second color sub-filter. The first color photosensitive pixels, the second color photosensitive pixels and the third color photosensitive pixels corresponding to each color filter can be separated to form two merged images, so that the photosensitive pixels of each color in the two merged images are in the same position in each merged image.
基于第一合并图像中在第九对角线方向上的多个全色像素合并读出的第五像素值得到全色合并图像,能够将全色像素从第一合并图像中分离出来的同时减小图像的尺寸,以降低功耗。The full-color merged image is obtained based on the fifth pixel value read out by merging multiple full-color pixels in the ninth diagonal direction in the first merged image, and the full-color pixels can be separated from the first merged image while reducing the size of the image to reduce power consumption.
基于第一合并图像中在第十对角线方向上的多个第一颜色感光像素合并读出的第六像素值,以及在第十对角线方向上的多个第三颜色感光像素合并读出的第七像素值,以及在第十对角线方向上的多个第二颜色感光像素合并读出的第八像素值,得到包含第一颜色感光像素、第二颜色感光像素和第三颜色感光像素的第三合并图像,使得RGB像素在图像中的分布更均匀。基于第二合并图像中,在第十对角线方向上的多个第一颜色感光像素合并读出的第六像素值、在第十对角线方向上的多个第三颜色感光像素合并读出的第七像素值、以及在第十对角线方向上的多个第二颜色感光像素合并读出的第八像素值,得到第四合并图像,使得第四合并图像的尺寸与第三合并图像、全色合并图像的尺寸保持一致。基于全色合并图像、第三合并图像和第四合并图像,能够将不同第一颜色感光像素、第二颜色感光像素和第三颜色感光像素进行混合排列,使得所生成的第二目标图像中RGB像素分布更均匀,图像质量更高。并且,所得到第二目标图像的分辨率进一步减小,且全色像素具有更高的信噪比,图像的帧率高,从而达到了二级像素合并输出的功耗更低、信噪比更佳的图像处理效果。Based on the sixth pixel value read out by merging multiple first color photosensitive pixels in the tenth diagonal direction in the first merged image, the seventh pixel value read out by merging multiple third color photosensitive pixels in the tenth diagonal direction, and the eighth pixel value read out by merging multiple second color photosensitive pixels in the tenth diagonal direction, a third merged image including first color photosensitive pixels, second color photosensitive pixels and third color photosensitive pixels is obtained, so that the distribution of RGB pixels in the image is more uniform. Based on the sixth pixel value read out by merging multiple first color photosensitive pixels in the tenth diagonal direction, the seventh pixel value read out by merging multiple third color photosensitive pixels in the tenth diagonal direction, and the eighth pixel value read out by merging multiple second color photosensitive pixels in the tenth diagonal direction in the second merged image, a fourth merged image is obtained, so that the size of the fourth merged image is consistent with that of the third merged image and the full-color merged image. Based on the full-color merged image, the third merged image and the fourth merged image, different first color photosensitive pixels, second color photosensitive pixels and third color photosensitive pixels can be mixed and arranged, so that the distribution of RGB pixels in the generated second target image is more uniform and the image quality is higher. Moreover, the resolution of the obtained second target image is further reduced, and the full-color pixels have a higher signal-to-noise ratio, and the image frame rate is high, thereby achieving an image processing effect with lower power consumption and better signal-to-noise ratio of the secondary pixel merging output.
如图14所示,在第二分辨率模式下,通过图像传感器获得原始图像1402,将原始图像1402中的局部4个相邻的全色像素合并读出第一像素值,将对角线上的2个第一颜色感光像素合并读出第二像素值、将对角线上的2个第三颜色感光像素合并读出第三像素值、将对角线上的2个第二颜色感光像素合并读出的第四像素值;读取第二像素值、第三像素值、第四像素值和所有的第一像素值,生成第一合并图像1404;读取其余的第四像素值、第二像素值和第三像素值,并结合空像素,生成第二合并图像1406。As shown in FIG14 , in the second resolution mode, an original image 1402 is obtained through an image sensor, four adjacent full-color pixels in the original image 1402 are locally merged to read out a first pixel value, two first-color light-sensitive pixels on the diagonal are merged to read out a second pixel value, two third-color light-sensitive pixels on the diagonal are merged to read out a third pixel value, and two second-color light-sensitive pixels on the diagonal are merged to read out a fourth pixel value; the second pixel value, the third pixel value, the fourth pixel value and all the first pixel values are read to generate a first merged image 1404; the remaining fourth pixel values, second pixel values and third pixel values are read and combined with empty pixels to generate a second merged image 1406.
将第一合并图像1404中在第九对角线D9方向上的2个全色像素合并读出第五像素值,得到全色合并图像1408。将第一合并图像1404中在第十对角线D10方向上的2个第一颜色感光像素合并读出第六像素值,以及在第十对角线D10方向上的2个第三颜色感光像素合并读出第七像素值,以及在第十对角线D10方向上的2个第二颜色感光像素合并读出第八像素值。根据读出的第六像素值、第七像素值和第八像素值,生成第三合并图像1410。The two full-color pixels in the direction of the ninth diagonal line D9 in the first merged image 1404 are merged to read out a fifth pixel value, thereby obtaining a full-color merged image 1408. The two first-color light-sensitive pixels in the direction of the tenth diagonal line D10 in the first merged image 1404 are merged to read out a sixth pixel value, and the two third-color light-sensitive pixels in the direction of the tenth diagonal line D10 are merged to read out a seventh pixel value, and the two second-color light-sensitive pixels in the direction of the tenth diagonal line D10 are merged to read out an eighth pixel value. Based on the read out sixth pixel value, seventh pixel value, and eighth pixel value, a third merged image 1410 is generated.
对于第二合并图像1406,将第二合并图像1406中在第十对角线D10方向上的2个第一颜色感光像素合并读出第六像素值,以及在第十对角线D10方向上的2个第三颜色感光像素合并读出第七像素值,以及在第十对角线D10方向上的2个第二颜色感光像素合并读出第八像素值。根据读出的第六像素值、第七像素值和第八像素值,生成第四合并图像1412。For the second merged image 1406, the two first color light-sensitive pixels in the direction of the tenth diagonal line D10 in the second merged image 1406 are merged to read out the sixth pixel value, the two third color light-sensitive pixels in the direction of the tenth diagonal line D10 are merged to read out the seventh pixel value, and the two second color light-sensitive pixels in the direction of the tenth diagonal line D10 are merged to read out the eighth pixel value. A fourth merged image 1412 is generated based on the read out sixth pixel value, seventh pixel value, and eighth pixel value.
电子设备可基于全色合并图像1408、第三合并图像1410和第四合并图像1412,生成第二目标图像。The electronic device may generate a second target image based on the full-color merged image 1408 , the third merged image 1410 , and the fourth merged image 1412 .
在一个实施例中,该方法还包括:在第二分辨率模式下,根据滤光片组对应的多个全色像素合并读出的第一像素值,得到全色图像;根据滤光片组对应的多个第一颜色感光像素合并读出的第二像素值,以及滤光片组对应的多个第三颜色感光像素合并读出的第三像素值,得到第五合并图像;根据滤光片组对应的多个第二颜色感光像素合并读出的第四像素值,得到第六合并图像;基于全色图像、第五合并图像和第六合并图像,得到第三目标图像。In one embodiment, the method also includes: in the second resolution mode, obtaining a full-color image based on a first pixel value read out by merging a plurality of full-color pixels corresponding to the filter group; obtaining a fifth merged image based on a second pixel value read out by merging a plurality of first-color photosensitive pixels corresponding to the filter group, and a third pixel value read out by merging a plurality of third-color photosensitive pixels corresponding to the filter group; obtaining a sixth merged image based on a fourth pixel value read out by merging a plurality of second-color photosensitive pixels corresponding to the filter group; and obtaining a third target image based on the full-color image, the fifth merged image and the sixth merged image.
多个滤光片组包括第一滤光片组231和第二滤光片组232,第一滤光片组231中至少一个彩色滤光片234中包括第一颜色子滤光片2341和第二颜色子滤光片2342,则第一滤光片组231中至少一个彩色滤光片234对应第一颜色感光像素2441和第二颜色感光像素2442。第二滤光片组232中彩色滤光片234至少包括第三颜色子滤光片2343,则第二滤光片组232中彩色滤光片234至少对应第三颜色感光像素2443。The plurality of filter groups include a first filter group 231 and a second filter group 232. At least one color filter 234 in the first filter group 231 includes a first color sub-filter 2341 and a second color sub-filter 2342. Then, at least one color filter 234 in the first filter group 231 corresponds to a first color photosensitive pixel 2441 and a second color photosensitive pixel 2442. The color filter 234 in the second filter group 232 includes at least a third color sub-filter 2343. Then, the color filter 234 in the second filter group 232 corresponds to at least a third color photosensitive pixel 2443.
在第二分辨率模式下,电子设备将同一滤光片组中的所有全色滤光片233对应的全色像素2431合并读出第一像素值,并根据各第一像素值得到全色图像。进一步地,电子设备分别将每个第一滤光片组231中所有全色滤光片233对应的全色像素2431合并读出第一像素值,使得一个第一滤光片组231对应一个第一像素值,以得到各第一滤光片组231分别对应的第一像素值。电子设备分别将每个第二滤光片组232中所有全色滤光片233对应的全色像素2431合并读出第一像素值,使得一个第二滤光片组232对应一个第一像素值,以得到各第二滤光片组232分别对应的第一像素值。根据各第一滤光片组231分别对应的第一像素值和各第二滤光片组232分别对应的第一像素值得到全色图像。In the second resolution mode, the electronic device merges the panchromatic pixels 2431 corresponding to all panchromatic filters 233 in the same filter group and reads out the first pixel value, and obtains a panchromatic image according to each first pixel value. Further, the electronic device merges the panchromatic pixels 2431 corresponding to all panchromatic filters 233 in each first filter group 231 and reads out the first pixel value, so that one first filter group 231 corresponds to one first pixel value, so as to obtain the first pixel value corresponding to each first filter group 231. The electronic device merges the panchromatic pixels 2431 corresponding to all panchromatic filters 233 in each second filter group 232 and reads out the first pixel value, so that one second filter group 232 corresponds to one first pixel value, so as to obtain the first pixel value corresponding to each second filter group 232. A panchromatic image is obtained according to the first pixel value corresponding to each first filter group 231 and the first pixel value corresponding to each second filter group 232.
电子设备将同一滤光片组中所有彩色滤光片234的多个第一颜色子滤光片2341所对应的各第一颜色感光像素2441合并读出第二像素值。电子设备将同一滤光片组中所有彩色滤光片234的多个第三颜色子滤光片2343对应的各第三颜色感光像素2443合并读出第三像素值。电子设备根据各第二像素值和各第三像素值,得到第五合并图像。The electronic device combines the first color photosensitive pixels 2441 corresponding to the multiple first color sub-filters 2341 of all color filters 234 in the same filter group to read out the second pixel value. The electronic device combines the third color photosensitive pixels 2443 corresponding to the multiple third color sub-filters 2343 of all color filters 234 in the same filter group to read out the third pixel value. The electronic device obtains a fifth combined image based on the second pixel values and the third pixel values.
进一步地,电子设备分别将每个第一滤光片组231中所有彩色滤光片234的多个第一颜色子滤光片2341所对应的各第一颜色感光像素2441合并读出第二像素值,使得一个第一滤光片组231对应一个第二像素值,以得到各第一滤光片组231分别对应的第二像素值。电子设备分别将每个第二滤光片组232中所有彩色滤光片234的多个第三颜色子滤光片2343对应的各第三颜色感光像素2443合并读出第三像素值,使得一个第二滤光片组232对应一个第三像素值,以得到各第二滤光片组232分别对应的第三像素值。根据各第一滤光片组231分别对应的第二像素值和各第二滤光片组232分别对应的第三像素值得到第五合并图像。Further, the electronic device respectively combines and reads out the second pixel value of each first color photosensitive pixel 2441 corresponding to the multiple first color sub-filters 2341 of all color filters 234 in each first filter group 231, so that one first filter group 231 corresponds to one second pixel value, so as to obtain the second pixel value corresponding to each first filter group 231. The electronic device respectively combines and reads out the third pixel value of each third color photosensitive pixel 2443 corresponding to the multiple third color sub-filters 2343 of all color filters 234 in each second filter group 232, so that one second filter group 232 corresponds to one third pixel value, so as to obtain the third pixel value corresponding to each second filter group 232. The fifth combined image is obtained according to the second pixel value corresponding to each first filter group 231 and the third pixel value corresponding to each second filter group 232.
电子设备将同一滤光片组中所有彩色滤光片234的多个第二颜色子滤光片2342所对应的各第二颜色感光像素2442合并读出第四像素值。进一步地,电子设备分别将每个第一滤光片组231中所有彩色滤光片234的多个第二颜色子滤光片2342对应的各第二颜色感光像素2442合并读出第四像素值,使得一个第一滤光片组231对应一个第四像素值,以得到各第一滤光片组231分别对应的第四像素值。电子设备根据各第一滤光片组231分别对应的第四像素值,得到第六合并图像。The electronic device combines the second color photosensitive pixels 2442 corresponding to the multiple second color sub-filters 2342 of all color filters 234 in the same filter group and reads out a fourth pixel value. Further, the electronic device combines the second color photosensitive pixels 2442 corresponding to the multiple second color sub-filters 2342 of all color filters 234 in each first filter group 231 and reads out a fourth pixel value, so that one first filter group 231 corresponds to one fourth pixel value, so as to obtain the fourth pixel values corresponding to each first filter group 231. The electronic device obtains a sixth combined image according to the fourth pixel values corresponding to each first filter group 231.
电子设备可根据预设像素读取方式,从全色图像、第五合并图像和第六合并图像中读取像素值以生成第三目标图像。The electronic device may read pixel values from the full-color image, the fifth combined image, and the sixth combined image according to a preset pixel reading method to generate a third target image.
本实施例中,在第二分辨率模式下,通过滤光片组对应的多个全色像素合并读出的第一像素值,能够分离出全色图像;根据滤光片组对应的多个第一颜色感光像素合并读出的第二像素值,以及滤光片组对应的多个第三颜色感光像素合并读出的第三像素值,能够将第一颜色感光像素和第三颜色感光像素分离出来形成第五合并图像,能够快速有效降低图像尺寸。根据滤光片组对应的多个第二颜色感光像素合并读出的第四像素值,能够将第二颜色感光像素分离出来形成第六合并图像,使得第二颜色感光像素在第六合并图像和第一颜色感光像素在第五合并图像中的坐标位置保持一致。基于全色图像、第五合并图像和第六合并图像得到第三目标图像,能够将全色通道信息融合到图像中,提高整体的进光量,使得能够生成信息更多、细节解析更清晰的第三目标图像。并且通过滤光片组对应的多个像素合并读出使得生成的第三目标图像尺寸减小、生成图像所需消耗的功耗低。In this embodiment, in the second resolution mode, a full-color image can be separated by merging the first pixel value read out by the plurality of full-color pixels corresponding to the filter group; according to the second pixel value read out by merging the plurality of first-color photosensitive pixels corresponding to the filter group, and the third pixel value read out by merging the plurality of third-color photosensitive pixels corresponding to the filter group, the first-color photosensitive pixels and the third-color photosensitive pixels can be separated to form a fifth merged image, which can quickly and effectively reduce the image size. According to the fourth pixel value read out by merging the plurality of second-color photosensitive pixels corresponding to the filter group, the second-color photosensitive pixels can be separated to form a sixth merged image, so that the coordinate positions of the second-color photosensitive pixels in the sixth merged image and the first-color photosensitive pixels in the fifth merged image are consistent. The third target image is obtained based on the full-color image, the fifth merged image, and the sixth merged image, so that the full-color channel information can be integrated into the image, the overall amount of light input can be increased, and the third target image with more information and clearer detail resolution can be generated. And the size of the generated third target image is reduced by merging and reading the plurality of pixels corresponding to the filter group, and the power consumption required to generate the image is low.
在一个实施例中,第二滤光片组的彩色滤光片还包括第一颜色子滤光片或第二颜色子滤光片;根据滤光片组对应的多个第一颜色感光像素合并读出的第二像素值,以及滤光片组对应的多个第三颜色感光像素合并读出的第三像素值,得到第五合并图像,包括:In one embodiment, the color filter of the second filter group further includes a first color sub-filter or a second color sub-filter; a fifth merged image is obtained according to a second pixel value read out by merging a plurality of first color photosensitive pixels corresponding to the filter group and a third pixel value read out by merging a plurality of third color photosensitive pixels corresponding to the filter group, including:
根据第一滤光片组中多个第一颜色子滤光片对应的第一颜色感光像素合并读出的第二像素值、根据包含第一颜色子滤光片的第二滤光片组中多个第三颜色子滤光片对应的第三颜色感光像素合并读出的第三像素值、以及根据第二滤光片组中多个第二颜色子滤光片对应的第二颜色感光像素合并读出的第四像素值,得到第五合并图像;Obtain a fifth merged image according to a second pixel value obtained by merging and reading out first color photosensitive pixels corresponding to a plurality of first color sub-filters in the first filter group, a third pixel value obtained by merging and reading out third color photosensitive pixels corresponding to a plurality of third color sub-filters in the second filter group including the first color sub-filter, and a fourth pixel value obtained by merging and reading out second color photosensitive pixels corresponding to a plurality of second color sub-filters in the second filter group;
根据滤光片组对应的多个第二颜色感光像素合并读出的第四像素值,得到第六合并图像,包括:A sixth merged image is obtained by merging and reading out fourth pixel values of a plurality of second color light-sensitive pixels corresponding to the filter group, including:
根据第一滤光片组中多个第二颜色子滤光片对应的第二颜色感光像素合并读出的第四像素值,根据第二滤光片组中多个第一颜色子滤光片对应的第一颜色感光像素合并读出的第二像素值,根据包含第二颜色子滤光片的第二滤光片组中多个第三颜色子滤光片对应的第三颜色感光像素合并读出的第三像素值,得到第六合并图像。A sixth merged image is obtained based on the fourth pixel value read out by merging the second color photosensitive pixels corresponding to multiple second color sub-filters in the first filter group, the second pixel value read out by merging the first color photosensitive pixels corresponding to multiple first color sub-filters in the second filter group, and the third pixel value read out by merging the third color photosensitive pixels corresponding to multiple third color sub-filters in the second filter group including the second color sub-filters.
多个滤光片组包括第一滤光片组231和第二滤光片组232,第一滤光片组231中至少一个彩色滤光片234中包括第一颜色子滤光片2341和第二颜色子滤光片2342,则第一滤光片组231中至少一个彩色滤光片234对应第一颜色感光像素2441和第二颜色感光像素2442。第二滤光片组232中彩色滤光片234包括第三颜色子滤光片2343,还包括第一颜色子滤光片2341或第二颜色子滤光片2342。The plurality of filter groups include a first filter group 231 and a second filter group 232. At least one color filter 234 in the first filter group 231 includes a first color sub-filter 2341 and a second color sub-filter 2342. Then, at least one color filter 234 in the first filter group 231 corresponds to a first color photosensitive pixel 2441 and a second color photosensitive pixel 2442. The color filter 234 in the second filter group 232 includes a third color sub-filter 2343 and also includes the first color sub-filter 2341 or the second color sub-filter 2342.
在第二分辨率模式下,电子设备将同一滤光片组中的所有全色滤光片233对应的全色像素2431合并读出第一像素值,并根据各第一像素值得到全色图像。进一步地,电子设备分别将每个第一滤光片组231中所有全色滤光片233对应的全色像素2431合并读出第一像素值,使得一个第一滤光片组231对应一个第一像素值,以得到各第一滤光片组231分别对应的第一像素值。电子设备分别将每个第二滤光片组232中所有全色滤光片233对应的全色像素2431合并读出第一像素值,使得一个第二滤光片组232对应一个第一像素值,以得到各第二滤光片组232分别对应的第一像素值。根据各第一滤光片组231分别对应的第一像素值和各第二滤光片组232分别对应的第一像素值得到全色图像。In the second resolution mode, the electronic device merges the panchromatic pixels 2431 corresponding to all panchromatic filters 233 in the same filter group and reads out the first pixel value, and obtains a panchromatic image according to each first pixel value. Further, the electronic device merges the panchromatic pixels 2431 corresponding to all panchromatic filters 233 in each first filter group 231 and reads out the first pixel value, so that one first filter group 231 corresponds to one first pixel value, so as to obtain the first pixel value corresponding to each first filter group 231. The electronic device merges the panchromatic pixels 2431 corresponding to all panchromatic filters 233 in each second filter group 232 and reads out the first pixel value, so that one second filter group 232 corresponds to one first pixel value, so as to obtain the first pixel value corresponding to each second filter group 232. A panchromatic image is obtained according to the first pixel value corresponding to each first filter group 231 and the first pixel value corresponding to each second filter group 232.
电子设备分别将每个第一滤光片组231中所有彩色滤光片234的多个第一颜色子滤光片2341所对应的各第一颜色感光像素2441合并读出第二像素值,使得一个第一滤光片组231对应一个第二像素值,以得到各第一滤光片组231分别对应的第二像素值。The electronic device respectively combines the first color photosensitive pixels 2441 corresponding to multiple first color sub-filters 2341 of all color filters 234 in each first filter group 231 and reads out the second pixel value, so that one first filter group 231 corresponds to one second pixel value, to obtain the second pixel values corresponding to each first filter group 231.
对于包含第一颜色子滤光片2341和第三颜色子滤光片2343的第二滤光片组232,电子设备分别将每个第二滤光片组232中所有彩色滤光片234的多个第三颜色子滤光片2343对应的各第三颜色感光像素2443合并读出第三像素值,使得一个包含第一颜色子滤光片2341的第二滤光片组232对应一个第三像素值,以得到包含第一颜色子滤光片2341的每个第二滤光片组232分别对应的第三像素值。For the second filter group 232 including the first color sub-filter 2341 and the third color sub-filter 2343, the electronic device respectively merges the third color photosensitive pixels 2443 corresponding to the multiple third color sub-filters 2343 of all the color filters 234 in each second filter group 232 and reads out the third pixel value, so that a second filter group 232 including the first color sub-filter 2341 corresponds to a third pixel value, so as to obtain the third pixel value corresponding to each second filter group 232 including the first color sub-filter 2341.
对于包含第二颜色子滤光片2342和第三颜色子滤光片2343的第二滤光片组232,电子设备分别将每个第二滤光片组232中所有彩色滤光片234的多个第二颜色子滤光片2342所对应的各第二颜色感光像素2442合并读出第四像素值,使得一个包含第二颜色子滤光片2342的第二滤光片组232对应一个第四像素值,以得到包含第二颜色子滤光片2342的每个第二滤光片组232分别对应的第四像素值。For the second filter group 232 including the second color sub-filter 2342 and the third color sub-filter 2343, the electronic device respectively merges the second color photosensitive pixels 2442 corresponding to the multiple second color sub-filters 2342 of all the color filters 234 in each second filter group 232 and reads out the fourth pixel value, so that a second filter group 232 including the second color sub-filter 2342 corresponds to a fourth pixel value, so as to obtain the fourth pixel value corresponding to each second filter group 232 including the second color sub-filter 2342.
电子设备根据各第一滤光片组231分别对应的第二像素值、包含第一颜色子滤光片2341的每个第二滤光片组232分别对应的第三像素值、以及包含第二颜色子滤光片2342的每个第二滤光片组232分别对应的第四像素值得到第五合并图像。The electronic device obtains a fifth merged image based on the second pixel values corresponding to each first filter group 231, the third pixel values corresponding to each second filter group 232 including the first color sub-filter 2341, and the fourth pixel values corresponding to each second filter group 232 including the second color sub-filter 2342.
电子设备分别将每个第一滤光片组231中所有彩色滤光片234的多个第二颜色子滤光片2342所对应的各第二颜色感光像素2442合并读出第四像素值,使得一个第一滤光片组231对应一个第四像素值,以得到每个第一滤光片组231分别对应的第四像素值。The electronic device respectively combines the second color photosensitive pixels 2442 corresponding to the multiple second color sub-filters 2342 of all the color filters 234 in each first filter group 231 and reads out the fourth pixel value, so that one first filter group 231 corresponds to one fourth pixel value, to obtain the fourth pixel value corresponding to each first filter group 231.
对于包含第一颜色子滤光片2341和第三颜色子滤光片2343的第二滤光片组232,电子设备分别将每个第二滤光片组232中所有彩色滤光片234的多个第一颜色子滤光片2341所对应的各第一颜色感光像素2441合并读出第二像素值,使得一个包含第一颜色子滤光片2341的第二滤光片组232对应一个第二像素值,以得到包含第一颜色子滤光片2341的每个第二滤光片组232分别对应的第二像素值。For the second filter group 232 including the first color sub-filter 2341 and the third color sub-filter 2343, the electronic device respectively merges the first color photosensitive pixels 2441 corresponding to the multiple first color sub-filters 2341 of all the color filters 234 in each second filter group 232 and reads out the second pixel value, so that a second filter group 232 including the first color sub-filter 2341 corresponds to a second pixel value, so as to obtain the second pixel value corresponding to each second filter group 232 including the first color sub-filter 2341.
对于包含第二颜色子滤光片2342和第三颜色子滤光片2343的第二滤光片组232,电子设备分别将每个第二滤光片组232中所有彩色滤光片234的多个第三颜色子滤光片2343对应的各第三颜色感光像素2443合并读出第三像素值,使得一个包含第二颜色子滤光片2342的第二滤光片组232对应一个第三像素值,以得到包含第二颜色子滤光片2342的每个第二滤光片组232分别对应的第三像素值。For the second filter group 232 including the second color sub-filter 2342 and the third color sub-filter 2343, the electronic device respectively merges the third color photosensitive pixels 2443 corresponding to the multiple third color sub-filters 2343 of all the color filters 234 in each second filter group 232 and reads out the third pixel value, so that a second filter group 232 including the second color sub-filter 2342 corresponds to a third pixel value, so as to obtain the third pixel value corresponding to each second filter group 232 including the second color sub-filter 2342.
电子设备根据各第一滤光片组231分别对应的第四像素值、包含第一颜色子滤光片2341的每个第二滤光片组232分别对应的第二像素值,以及包含第二颜色子滤光片2342的每个第二滤光片组232分别对应的第三像素值,得到第六合并图像。The electronic device obtains a sixth merged image based on the fourth pixel values corresponding to each first filter group 231, the second pixel values corresponding to each second filter group 232 including the first color sub-filter 2341, and the third pixel values corresponding to each second filter group 232 including the second color sub-filter 2342.
电子设备可根据预设像素读取方式,从全色图像、第五合并图像和第六合并图像中读取像素值以生成第三目标图像。The electronic device may read pixel values from the full-color image, the fifth combined image, and the sixth combined image according to a preset pixel reading method to generate a third target image.
本实施例中,在第二分辨率模式下,通过根据第一滤光片组中多个第一颜色子滤光片对应的第一颜色感光像素合并读出的第二像素值、根据包含第一颜色子滤光片的第二滤光片组中多个第三颜色子滤光片对应的第三颜色感光像素合并读出的第三像素值、以及根据第二滤光片组中多个第二颜色子滤光片对应的第二颜色感光像素合并读出的第四像素值,能够将部分第一颜色感光像素、第三颜色感光像素和第二颜色感光像素分离出来形成第五合并图像,能够通过像素合并减小图像尺寸,以减少处理功耗。根据第一滤光片组中多个第二颜色子滤光片对应的第二颜色感光像素合并读出的第四像素值、第二滤光片组中多个第一颜色子滤光片对应的第一颜色感光像素合并读出的第二像素值,根据包含第二颜色子滤光片的第二滤光片组中多个第三颜色子滤光片对应的第三颜色感光像素合并读出的第三像素值,能够将部分第一颜色感光像素、第三颜色感光像素和第二颜色感光像素分离出来出来形成第六合并图像,使得第二颜色感光像素在第六合并图像和第一颜色感光像素在第五合并图像中的坐标位置保持一致。基于全色图像、第五合并图像和第六合并图像得到第三目标图像,能够将全色通道信息融合到图像中,提高整体的进光量,使得能够生成信息更多、细节解析更清晰的第三目标图像。并且通过滤光片组对应的多个像素合并读出使得生成的第三目标图像尺寸减小、生成图像所需消耗的功耗低。In this embodiment, in the second resolution mode, by combining and reading out the second pixel value of the first color photosensitive pixels corresponding to the multiple first color sub-filters in the first filter group, combining and reading out the third pixel value of the third color photosensitive pixels corresponding to the multiple third color sub-filters in the second filter group including the first color sub-filter, and combining and reading out the fourth pixel value of the second color photosensitive pixels corresponding to the multiple second color sub-filters in the second filter group, some first color photosensitive pixels, third color photosensitive pixels and second color photosensitive pixels can be separated to form a fifth combined image, and the image size can be reduced by pixel merging to reduce processing power consumption. According to the fourth pixel value read out by merging the second color photosensitive pixels corresponding to the plurality of second color sub-filters in the first filter group, the second pixel value read out by merging the first color photosensitive pixels corresponding to the plurality of first color sub-filters in the second filter group, and the third pixel value read out by merging the third color photosensitive pixels corresponding to the plurality of third color sub-filters in the second filter group including the second color sub-filter, part of the first color photosensitive pixels, the third color photosensitive pixels and the second color photosensitive pixels can be separated to form a sixth merged image, so that the coordinate position of the second color photosensitive pixels in the sixth merged image and the first color photosensitive pixels in the fifth merged image are consistent. The third target image is obtained based on the full-color image, the fifth merged image and the sixth merged image, and the full-color channel information can be integrated into the image to increase the overall light input, so that a third target image with more information and clearer detail resolution can be generated. In addition, the size of the generated third target image is reduced and the power consumption required to generate the image is low by merging and reading out the plurality of pixels corresponding to the filter group.
在一个实施例中,提供了一种图像生成方法,应用于电子设备的图像传感器,图像传感器包括滤光片阵列和像素阵列,滤光片阵列包括最小重复单元,最小重复单元包括多个滤光片组,每个滤光片组包括彩色滤光片和全色滤光片,全色滤光片透过的进光量大于彩色滤光片透过的进光量,彩色滤光片和全色滤光片均包括4个子滤光片,多个滤光片组至少包括第一滤光片组,第一滤光片组中至少一个彩色滤光片包括第一颜色子滤光片和第二颜色子滤光片;第二滤光片组中彩色滤光片包括第三颜色子滤光片,第二滤光片组的彩色滤光片还包括第一颜色子滤光片或第二颜色子滤光片;像素阵列的第一颜色感光像素与滤光片阵列的第一颜色子滤光片对应设置,像素阵列的第二颜色感光像素与滤光片阵列的第二颜色子滤光片对应设置,像素阵列的第三颜色感光像素与滤光片阵列的第三颜色子滤光片对应设置,像素阵列被配置成用于接收穿过滤光片阵列的光线以生成电信号;In one embodiment, an image generation method is provided, which is applied to an image sensor of an electronic device, wherein the image sensor includes a filter array and a pixel array, the filter array includes a minimum repeating unit, the minimum repeating unit includes a plurality of filter groups, each filter group includes a color filter and a full-color filter, the amount of light transmitted by the full-color filter is greater than the amount of light transmitted by the color filter, the color filter and the full-color filter each include four sub-filters, the plurality of filter groups include at least a first filter group, and at least one color filter in the first filter group includes a first color sub-filter and a first color sub-filter. two color sub-filters; the color filter in the second filter group includes a third color sub-filter, and the color filter of the second filter group also includes a first color sub-filter or a second color sub-filter; the first color photosensitive pixel of the pixel array is arranged correspondingly to the first color sub-filter of the filter array, the second color photosensitive pixel of the pixel array is arranged correspondingly to the second color sub-filter of the filter array, and the third color photosensitive pixel of the pixel array is arranged correspondingly to the third color sub-filter of the filter array, and the pixel array is configured to receive light passing through the filter array to generate an electrical signal;
该方法包括:The method includes:
在第一分辨率模式下,根据滤光片组中的全色滤光片对应的多个全色像素合并读出的第一像素值,以及彩色滤光片对应的多个第一颜色感光像素合并读出的第二像素值,以及彩色滤光片对应的多个第三颜色感光像素合并读出的第三像素值,得到第一合并图像;根据彩色滤光片对应的多个第二颜色感光像素合并读出的第四像素值,得到第二合并图像;遍历第一合并图像中的像素值,在所遍历的像素值为第二像素值的情况下,从第二合并图像中读取与第二像素值位置相同的第四像素值,并将所读取的第四像素值调整至与第二像素值相邻,直至第一合并图像中的像素值均被遍历后,得到第一目标图像。In the first resolution mode, a first merged image is obtained based on a first pixel value read out by merging a plurality of panchromatic pixels corresponding to the panchromatic filters in the filter group, a second pixel value read out by merging a plurality of first color photosensitive pixels corresponding to the color filters, and a third pixel value read out by merging a plurality of third color photosensitive pixels corresponding to the color filters; a second merged image is obtained based on a fourth pixel value read out by merging a plurality of second color photosensitive pixels corresponding to the color filters; the pixel values in the first merged image are traversed, and when the traversed pixel value is the second pixel value, a fourth pixel value at the same position as the second pixel value is read from the second merged image, and the read fourth pixel value is adjusted to be adjacent to the second pixel value, until all pixel values in the first merged image are traversed, thereby obtaining a first target image.
可选地,在第一分辨率模式下,根据滤光片组中的全色滤光片对应的多个全色像素合并读出的第一像素值,根据第一滤光片组中多个第一颜色子滤光片对应的第一颜色感光像素合并读出的第二像素值、根据包含第一颜色子滤光片的第二滤光片组中多个第三颜色子滤光片对应的第三颜色感光像素合并读出的第三像素值、以及根据第二滤光片组中多个第二颜色子滤光片对应的第二颜色感光像素合并读出的第四像素值,得到第一合并图像;根据第一滤光片组中多个第二颜色子滤光片对应的第二颜色感光像素合并读出的第四像素值,根据第二滤光片组中多个第一颜色子滤光片对应的第一颜色感光像素合并读出的第二像素值,根据包含第二颜色子滤光片的第二滤光片组中多个第三颜色子滤光片对应的第三颜色感光像素合并读出的第三像素值,得到第二合并图像;基于第一合并图像和第二合并图像,得到第一目标图像。Optionally, in the first resolution mode, a first merged image is obtained according to a first pixel value merged and read out from a plurality of full-color pixels corresponding to the full-color filters in the filter group, a second pixel value merged and read out from a plurality of first color photosensitive pixels corresponding to a plurality of first color sub-filters in the first filter group, a third pixel value merged and read out from a plurality of third color photosensitive pixels corresponding to a plurality of third color sub-filters in the second filter group including the first color sub-filters, and a fourth pixel value merged and read out from a plurality of second color photosensitive pixels corresponding to a plurality of second color sub-filters in the second filter group; a second merged image is obtained according to a fourth pixel value merged and read out from a plurality of second color photosensitive pixels corresponding to a plurality of second color sub-filters in the first filter group, a second pixel value merged and read out from a plurality of first color photosensitive pixels corresponding to a plurality of first color sub-filters in the second filter group, and a third pixel value merged and read out from a plurality of third color photosensitive pixels corresponding to a plurality of third color sub-filters in the second filter group including the second color sub-filters; and a first target image is obtained based on the first merged image and the second merged image.
可选地,在第二分辨率模式下,根据滤光片组中的全色滤光片对应的多个全色像素合并读出的第一像素值,以及彩色滤光片对应的多个第一颜色感光像素合并读出的第二像素值,以及彩色滤光片对应的多个第三颜色感光像素合并读出的第三像素值,得到第一合并图像;第二分辨率模式对应的分辨率小于第一分辨率模式对应的分辨率;根据彩色滤光片对应的多个第二颜色感光像素合并读出的第四像素值,得到第二合并图像;基于第一合并图像中第九对角线方向上的多个全色像素合并读出的第五像素值,得到全色合并图像;基于第一合并图像中第十对角线方向上的多个第一颜色感光像素合并读出的第六像素值,以及第十对角线方向上的多个第三颜色感光像素合并读出的第七像素值,得到第三合并图像,第九对角线方向不同于第十对角线方向;基于第二合并图像中在第十对角线方向上的多个第二颜色感光像素合并读出的第八像素值,得到第四合并图像;遍历第三合并图像中的像素;在所遍历的像素值为第六像素值或第七像素值的情况下,从全色合并图像中读取与遍历的像素值对应的第五像素值,并将所读取的第五像素值调整至与遍历的像素值相邻;在所遍历的像素值为第六像素值的情况下,从第四合并图像中读取与第六像素位置相同的第八像素值,并将所读取的第八像素值调整至与第六像素值相邻,直至全色合并图像、第三合并图像和第四合并图像中的像素值均读取后,得到第二目标图像。Optionally, in the second resolution mode, a first merged image is obtained based on a first pixel value obtained by merging and reading a plurality of panchromatic pixels corresponding to the panchromatic filters in the filter group, a second pixel value obtained by merging and reading a plurality of first color photosensitive pixels corresponding to the color filters, and a third pixel value obtained by merging and reading a plurality of third color photosensitive pixels corresponding to the color filters; the resolution corresponding to the second resolution mode is smaller than the resolution corresponding to the first resolution mode; a second merged image is obtained based on a fourth pixel value obtained by merging and reading a plurality of second color photosensitive pixels corresponding to the color filters; a full-color merged image is obtained based on a fifth pixel value obtained by merging and reading a plurality of panchromatic pixels in the ninth diagonal direction in the first merged image; a sixth pixel value obtained by merging and reading a plurality of first color photosensitive pixels in the tenth diagonal direction in the first merged image, and a plurality of third color photosensitive pixels in the tenth diagonal direction; The seventh pixel value read out by merging the photosensitive pixels is obtained to obtain a third merged image, and the ninth diagonal direction is different from the tenth diagonal direction; based on the eighth pixel value read out by merging multiple second color photosensitive pixels in the tenth diagonal direction in the second merged image, a fourth merged image is obtained; the pixels in the third merged image are traversed; when the traversed pixel value is the sixth pixel value or the seventh pixel value, the fifth pixel value corresponding to the traversed pixel value is read from the full-color merged image, and the read fifth pixel value is adjusted to be adjacent to the traversed pixel value; when the traversed pixel value is the sixth pixel value, the eighth pixel value with the same sixth pixel position is read from the fourth merged image, and the read eighth pixel value is adjusted to be adjacent to the sixth pixel value, until the pixel values in the full-color merged image, the third merged image and the fourth merged image are all read, and the second target image is obtained.
可选地,在第二分辨率模式下,根据滤光片组中的全色滤光片对应的多个全色像素合并读出的第一像素值,根据第一滤光片组中多个第一颜色子滤光片对应的第一颜色感光像素合并读出的第二像素值、根据包含第一颜色子滤光片的第二滤光片组中多个第三颜色子滤光片对应的第三颜色感光像素合并读出的第三像素值、以及根据第二滤光片组中多个第二颜色子滤光片对应的第二颜色感光像素合并读出的第四像素值,得到第一合并图像;根据第一滤光片组中多个第二颜色子滤光片对应的第二颜色感光像素合并读出的第四像素值,根据第二滤光片组中多个第一颜色子滤光片对应的第一颜色感光像素合并读出的第二像素值,根据包含第二颜色子滤光片的第二滤光片组中多个第三颜色子滤光片对应的第三颜色感光像素合并读出的第三像素值,得到第二合并图像;基于第一合并图像中第九对角线方向上的多个全色像素合并读出的第五像素值、在第十对角线方向上的多个第一颜色感光像素合并读出的第六像素值、在第十对角线方向上的多个第三颜色感光像素合并读出的第七像素值、以及在第十对角线方向上的多个第二颜色感光像素合并读出的第八像素值,分别得到全色合并图像和第三合并图像;基于第二合并图像中,在第十对角线方向上的多个第一颜色感光像素合并读出的第六像素值、在第十对角线方向上的多个第三颜色感光像素合并读出的第七像素值、以及在第十对角线方向上的多个第二颜色感光像素合并读出的第八像素值,得到第四合并图像;基于全色合并图像、第三合并图像和第四合并图像,得到第二目标图像。Optionally, in the second resolution mode, a first merged image is obtained according to a first pixel value read out by merging a plurality of full-color pixels corresponding to the full-color filters in the filter group, a second pixel value read out by merging a first color photosensitive pixel corresponding to a plurality of first color sub-filters in the first filter group, a third pixel value read out by merging a third color photosensitive pixel corresponding to a plurality of third color sub-filters in the second filter group including the first color sub-filters, and a fourth pixel value read out by merging a second color photosensitive pixel corresponding to a plurality of second color sub-filters in the second filter group; a first merged image is obtained according to a fourth pixel value read out by merging a second color photosensitive pixel corresponding to a plurality of second color sub-filters in the first filter group, a second pixel value read out by merging a first color photosensitive pixel corresponding to a plurality of first color sub-filters in the second filter group, and a third pixel value read out by merging a third color photosensitive pixel corresponding to a plurality of third color sub-filters in the second filter group including the second color sub-filters. Based on the third pixel value read out by merging the pixels, a second merged image is obtained; based on the fifth pixel value read out by merging the multiple full-color pixels in the ninth diagonal direction in the first merged image, the sixth pixel value read out by merging the multiple first-color photosensitive pixels in the tenth diagonal direction, the seventh pixel value read out by merging the multiple third-color photosensitive pixels in the tenth diagonal direction, and the eighth pixel value read out by merging the multiple second-color photosensitive pixels in the tenth diagonal direction, a full-color merged image and a third merged image are obtained respectively; based on the sixth pixel value read out by merging the multiple first-color photosensitive pixels in the tenth diagonal direction, the seventh pixel value read out by merging the multiple third-color photosensitive pixels in the tenth diagonal direction, and the eighth pixel value read out by merging the multiple second-color photosensitive pixels in the tenth diagonal direction in the second merged image, a fourth merged image is obtained; based on the full-color merged image, the third merged image and the fourth merged image, a second target image is obtained.
可选地,在第二分辨率模式下,根据滤光片组对应的多个全色像素合并读出的第一像素值,得到全色图像;根据滤光片组对应的多个第一颜色感光像素合并读出的第二像素值,以及滤光片组对应的多个第三颜色感光像素合并读出的第三像素值,得到第五合并图像;根据滤光片组对应的多个第二颜色感光像素合并读出的第四像素值,得到第六合并图像;基于全色图像、第五合并图像和第六合并图像,得到第三目标图像。Optionally, in the second resolution mode, a full-color image is obtained based on a first pixel value read out by merging a plurality of full-color pixels corresponding to the filter group; a fifth merged image is obtained based on a second pixel value read out by merging a plurality of first-color photosensitive pixels corresponding to the filter group and a third pixel value read out by merging a plurality of third-color photosensitive pixels corresponding to the filter group; a sixth merged image is obtained based on a fourth pixel value read out by merging a plurality of second-color photosensitive pixels corresponding to the filter group; and a third target image is obtained based on the full-color image, the fifth merged image and the sixth merged image.
可选地,在第二分辨率模式下,根据滤光片组对应的多个全色像素合并读出的第一像素值,得到全色图像;根据第一滤光片组中多个第一颜色子滤光片对应的第一颜色感光像素合并读出的第二像素值、根据包含第一颜色子滤光片的第二滤光片组中多个第三颜色子滤光片对应的第三颜色感光像素合并读出的第三像素值、以及根据第二滤光片组中多个第二颜色子滤光片对应的第二颜色感光像素合并读出的第四像素值,得到第五合并图像;根据第一滤光片组中多个第二颜色子滤光片对应的第二颜色感光像素合并读出的第四像素值,根据第二滤光片组中多个第一颜色子滤光片对应的第一颜色感光像素合并读出的第二像素值,根据包含第二颜色子滤光片的第二滤光片组中多个第三颜色子滤光片对应的第三颜色感光像素合并读出的第三像素值,得到第六合并图像;基于全色图像、第五合并图像和第六合并图像,得到第三目标图像。Optionally, in the second resolution mode, a full-color image is obtained according to a first pixel value read out by merging multiple full-color pixels corresponding to the filter group; a fifth merged image is obtained according to a second pixel value read out by merging first color photosensitive pixels corresponding to multiple first color sub-filters in the first filter group, a third pixel value read out by merging third color photosensitive pixels corresponding to multiple third color sub-filters in the second filter group including the first color sub-filters, and a fourth pixel value read out by merging second color photosensitive pixels corresponding to multiple second color sub-filters in the second filter group; a sixth merged image is obtained according to a fourth pixel value read out by merging second color photosensitive pixels corresponding to multiple second color sub-filters in the first filter group, a second pixel value read out by merging first color photosensitive pixels corresponding to multiple first color sub-filters in the second filter group, and a third pixel value read out by merging third color photosensitive pixels corresponding to multiple third color sub-filters in the second filter group including the second color sub-filters; and a third target image is obtained based on the full-color image, the fifth merged image and the sixth merged image.
本实施例中,提供了支持两种分辨率输出的图像传感器结构,从而提供了两种分辨率的图像输出模式,能够适配不同的应用场景。In this embodiment, an image sensor structure supporting outputs of two resolutions is provided, thereby providing image output modes of two resolutions, which can be adapted to different application scenarios.
在对分辨率要求比较高的场景下使用第一分辨率模式,通过滤光片组中的全色滤光片对应的多个全色像素合并读出的第一像素值,以及彩色滤光片对应的多个第一颜色感光像素合并读出的第二像素值,以及彩色滤光片对应的多个第三颜色感光像素合并读出的第三像素值,能够将全色通道信息融合到图像中,提高整体的进光量,使得能够生成信息更多、细节解析更清晰的第一合并图像。根据彩色滤光片对应的多个第二颜色感光像素合并读出的第四像素值,得到第二合并图像,使得第二合并图像与第一合并图像的尺寸保持一致,从而保证各第二颜色感光像素在第二合并图像中的位置与各第一颜色感光像素在第一合并图像中的位置相同,即保证各第四像素值在第二合并图像中的位置与各第二像素值在第一合并图像中的位置相同。The first resolution mode is used in scenarios with relatively high resolution requirements. The full-color channel information can be integrated into the image by merging the first pixel value read out by merging the multiple full-color pixels corresponding to the full-color filters in the filter group, the second pixel value read out by merging the multiple first-color photosensitive pixels corresponding to the color filters, and the third pixel value read out by merging the multiple third-color photosensitive pixels corresponding to the color filters, thereby increasing the overall amount of light input, so that a first merged image with more information and clearer detail resolution can be generated. The second merged image is obtained according to the fourth pixel value read out by merging the multiple second-color photosensitive pixels corresponding to the color filters, so that the size of the second merged image is consistent with that of the first merged image, thereby ensuring that the position of each second-color photosensitive pixel in the second merged image is the same as the position of each first-color photosensitive pixel in the first merged image, that is, ensuring that the position of each fourth pixel value in the second merged image is the same as the position of each second pixel value in the first merged image.
遍历第一合并图像中的像素值,以将第二合并图像中的第四像素值调整至与位置相同的第二像素值相邻,使得第一颜色感光像素和第二颜色感光像素混合排列,提高了彩色分辨能力,使得所生成第一目标图像的每行和每列均有第一颜色感光像素、第二颜色感光像素和第三颜色感光像素存在,即目标图像的每行每列均具备有RGB像素,能够有效降低伪色的风险。The pixel values in the first merged image are traversed to adjust the fourth pixel value in the second merged image to be adjacent to the second pixel value at the same position, so that the first color photosensitive pixels and the second color photosensitive pixels are mixedly arranged, thereby improving the color resolution capability, so that each row and each column of the generated first target image has the first color photosensitive pixels, the second color photosensitive pixels and the third color photosensitive pixels, that is, each row and each column of the target image has RGB pixels, which can effectively reduce the risk of false color.
或者在第一分辨率模式下,根据滤光片组中的全色滤光片对应的多个全色像素合并读出的第一像素值,以及彩色滤光片对应的多个第一颜色感光像素合并读出的第二像素值、彩色滤光片对应的多个第三颜色感光像素合并读出的第三像素值、以及彩色滤光片对应的多个第二颜色感光像素合并读出的第四像素值,使得合并读取所得到的第一合并图像中包含了所有颜色的像素,能够提高彩色通道的分辨能力。根据彩色滤光片对应的多个第一颜色感光像素合并读出的第二像素值、彩色像素对应的多个第三颜色感光像素合并读出的第三像素值、以及彩色滤光片对应的多个第二颜色感光像素合并读出的第四像素值,得到第二合并图像,使得根据第一合并图像和第二合并图像生成的第一目标图像中的各颜色的像素分布更均匀,有效提高图像的清晰度。Or in the first resolution mode, according to the first pixel value read out by merging multiple panchromatic pixels corresponding to the panchromatic filters in the filter group, the second pixel value read out by merging multiple first color photosensitive pixels corresponding to the color filters, the third pixel value read out by merging multiple third color photosensitive pixels corresponding to the color filters, and the fourth pixel value read out by merging multiple second color photosensitive pixels corresponding to the color filters, the first merged image obtained by merging and reading includes pixels of all colors, which can improve the resolution of the color channel. According to the second pixel value read out by merging multiple first color photosensitive pixels corresponding to the color filters, the third pixel value read out by merging multiple third color photosensitive pixels corresponding to the color pixels, and the fourth pixel value read out by merging multiple second color photosensitive pixels corresponding to the color filters, the second merged image is obtained, so that the pixels of each color in the first target image generated according to the first merged image and the second merged image are more evenly distributed, effectively improving the clarity of the image.
在夜景拍摄等分辨率要求较低的场景下使用第二分辨率模式,根据滤光片组中的全色滤光片对应的多个全色像素合并读出的第一像素值,以及彩色滤光片对应的多个彩色像素合并读出的第二像素值,以及彩色滤光片对应的多个第三颜色感光像素合并读出的第三像素值,得到第一合并图像,并将根据彩色滤光片对应的多个第二颜色感光像素合并读出的第四像素值,得到第二合并图像,能够将第二颜色感光像素分离出来作为单独的图像并降低图像的分辨率。基于第一合并图像中在第九对角线方向上的多个全色像素合并读出的第五像素值得到全色合并图像,能够将全色像素从第一合并图像中分离出来的同时减小图像的尺寸,以降低功耗。基于第一合并图像中在第十对角线方向上的多个第一颜色感光像素合并读出的第六像素值,以及在第十对角线方向上的多个第三颜色感光像素合并读出的第七像素值,得到包含第一颜色感光像素和第三颜色感光像素的第三合并图像,多合一的像素读出方式使得生成的图像噪声少。基于第二合并图像中在第八对角线方向上的多个第二颜色感光像素合并读出的第八像素值,使得第四合并图像的尺寸与第三合并图像、全色合并图像的尺寸保持一致。遍历第三合并图像中的像素,在所遍历的像素值为第六像素值或第七像素值的情况下,从全色合并图像中读取与遍历的像素值对应的第五像素值,并将所读取的第五像素值调整至与遍历的像素值相邻,使得在图像中引入了全色像素,提高了进光量。在所遍历的像素值为第六像素值的情况下,从第四合并图像中读取与第六像素位置相同的第八像素值,并将所读取的第八像素值调整至与第六像素值相邻,使得第一颜色感光像素和第二颜色感光像素混合排列,提高了彩色分辨能力,使得所生成第二目标图像的每行和每列均有第一颜色感光像素、第二颜色感光像素和第二颜色感光像素存在,即目标图像的每行每列均具备有RGB像素,能够有效降低伪色的风险。并且,所得到第二目标图像的分辨率进一步减小,且全色像素具有更高的信噪比,图像的帧率高,从而达到了二级像素合并输出的功耗更低、信噪比更佳的图像处理效果。The second resolution mode is used in scenes with lower resolution requirements such as night scene shooting. The first merged image is obtained based on the first pixel value read out by merging multiple panchromatic pixels corresponding to the panchromatic filter in the filter group, the second pixel value read out by merging multiple color pixels corresponding to the color filter, and the third pixel value read out by merging multiple third color photosensitive pixels corresponding to the color filter. The second merged image is obtained based on the fourth pixel value read out by merging multiple second color photosensitive pixels corresponding to the color filter. The second color photosensitive pixels can be separated as a separate image and the image resolution can be reduced. The panchromatic merged image is obtained based on the fifth pixel value read out by merging multiple panchromatic pixels in the ninth diagonal direction in the first merged image. The panchromatic pixels can be separated from the first merged image while reducing the image size to reduce power consumption. Based on the sixth pixel value read out by merging multiple first color photosensitive pixels in the tenth diagonal direction in the first merged image, and the seventh pixel value read out by merging multiple third color photosensitive pixels in the tenth diagonal direction, a third merged image including first color photosensitive pixels and third color photosensitive pixels is obtained, and the all-in-one pixel readout method makes the generated image less noisy. Based on the eighth pixel value read out by merging multiple second color photosensitive pixels in the eighth diagonal direction in the second merged image, the size of the fourth merged image is kept consistent with the size of the third merged image and the full-color merged image. The pixels in the third merged image are traversed, and when the traversed pixel value is the sixth pixel value or the seventh pixel value, the fifth pixel value corresponding to the traversed pixel value is read from the full-color merged image, and the read fifth pixel value is adjusted to be adjacent to the traversed pixel value, so that full-color pixels are introduced into the image, and the amount of light entering is increased. When the traversed pixel value is the sixth pixel value, the eighth pixel value at the same position as the sixth pixel is read from the fourth merged image, and the read eighth pixel value is adjusted to be adjacent to the sixth pixel value, so that the first color photosensitive pixel and the second color photosensitive pixel are mixed and arranged, and the color resolution capability is improved, so that each row and each column of the generated second target image has the first color photosensitive pixel, the second color photosensitive pixel and the second color photosensitive pixel, that is, each row and each column of the target image has RGB pixels, which can effectively reduce the risk of false color. In addition, the resolution of the obtained second target image is further reduced, and the full-color pixel has a higher signal-to-noise ratio, and the frame rate of the image is high, thereby achieving the image processing effect of lower power consumption and better signal-to-noise ratio of the secondary pixel merging output.
或者,在第二分辨率模式下,根据滤光片组中的全色滤光片对应的多个全色像素合并读出的第一像素值,彩色滤光片对应的多个彩色像素合并读出的第二像素值,彩色滤光片对应的多个第三颜色感光像素合并读出的第三像素值,以及彩色滤光片对应的多个第三颜色感光像素合并读出的第四像素值,得到第一合并图像,并将根据彩色滤光片对应的多个第一颜色感光像素合并读出的第二像素值、彩色滤光片对应的多个第三颜色感光像素合并读出的第三像素值、以及彩色滤光片对应的多个第二颜色感光像素合并读出的第四像素值,得到第二合并图像,能够将各个彩色滤光片对应的第一颜色感光像素、第二颜色感光像素和第三颜色感光像素分离出来形成两张合并图像,使得两张合并图像中各颜色的感光像素在各自合并图像中的位置相同。Alternatively, in the second resolution mode, a first merged image is obtained based on a first pixel value merged and read out by a plurality of panchromatic pixels corresponding to the panchromatic filters in the filter group, a second pixel value merged and read out by a plurality of color pixels corresponding to the color filters, a third pixel value merged and read out by a plurality of third color photosensitive pixels corresponding to the color filters, and a fourth pixel value merged and read out by a plurality of third color photosensitive pixels corresponding to the color filters, and a second merged image is obtained based on a second pixel value merged and read out by a plurality of first color photosensitive pixels corresponding to the color filters, a third pixel value merged and read out by a plurality of third color photosensitive pixels corresponding to the color filters, and a fourth pixel value merged and read out by a plurality of second color photosensitive pixels corresponding to the color filters, and the first color photosensitive pixels, second color photosensitive pixels and third color photosensitive pixels corresponding to each color filter can be separated to form two merged images, so that the photosensitive pixels of each color in the two merged images are in the same position in each merged image.
基于第一合并图像中在第九对角线方向上的多个全色像素合并读出的第五像素值得到全色合并图像,能够将全色像素从第一合并图像中分离出来的同时减小图像的尺寸,以降低功耗。基于第一合并图像中在第十对角线方向上的多个第一颜色感光像素合并读出的第六像素值,以及在第十对角线方向上的多个第三颜色感光像素合并读出的第七像素值,以及在第十对角线方向上的多个第二颜色感光像素合并读出的第八像素值,得到包含第一颜色感光像素、第二颜色感光像素和第三颜色感光像素的第三合并图像,使得RGB像素在图像中的分布更均匀。基于第二合并图像中,在第十对角线方向上的多个第一颜色感光像素合并读出的第六像素值、在第十对角线方向上的多个第三颜色感光像素合并读出的第七像素值、以及在第十对角线方向上的多个第二颜色感光像素合并读出的第八像素值,得到第四合并图像,使得第四合并图像的尺寸与第三合并图像、全色合并图像的尺寸保持一致。基于全色合并图像、第三合并图像和第四合并图像,能够将不同第一颜色感光像素、第二颜色感光像素和第三颜色感光像素进行混合排列,使得所生成的第二目标图像中RGB像素分布更均匀,图像质量更高。并且,所得到第二目标图像的分辨率进一步减小,且全色像素具有更高的信噪比,图像的帧率高,从而达到了二级像素合并输出的功耗更低、信噪比更佳的图像处理效果。Based on the fifth pixel value read out by merging multiple full-color pixels in the ninth diagonal direction in the first merged image, a full-color merged image is obtained, which can separate the full-color pixels from the first merged image and reduce the size of the image to reduce power consumption. Based on the sixth pixel value read out by merging multiple first-color photosensitive pixels in the tenth diagonal direction in the first merged image, the seventh pixel value read out by merging multiple third-color photosensitive pixels in the tenth diagonal direction, and the eighth pixel value read out by merging multiple second-color photosensitive pixels in the tenth diagonal direction, a third merged image including first-color photosensitive pixels, second-color photosensitive pixels, and third-color photosensitive pixels is obtained, so that the distribution of RGB pixels in the image is more uniform. Based on the sixth pixel value read out by merging multiple first-color photosensitive pixels in the tenth diagonal direction, the seventh pixel value read out by merging multiple third-color photosensitive pixels in the tenth diagonal direction, and the eighth pixel value read out by merging multiple second-color photosensitive pixels in the tenth diagonal direction in the second merged image, a fourth merged image is obtained, so that the size of the fourth merged image is consistent with the size of the third merged image and the full-color merged image. Based on the full-color merged image, the third merged image, and the fourth merged image, different first color photosensitive pixels, second color photosensitive pixels, and third color photosensitive pixels can be mixed and arranged, so that the RGB pixels in the generated second target image are more evenly distributed and the image quality is higher. In addition, the resolution of the obtained second target image is further reduced, and the full-color pixels have a higher signal-to-noise ratio, and the frame rate of the image is high, thereby achieving an image processing effect of lower power consumption and better signal-to-noise ratio of the secondary pixel merging output.
应该理解的是,虽然图10-图14的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图10-图14中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that, although the various steps in the flow charts of Figures 10-14 are displayed in sequence according to the indication of the arrows, these steps are not necessarily performed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be performed in other orders. Moreover, at least a portion of the steps in Figures 10-14 may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these sub-steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with at least a portion of other steps or sub-steps or stages of other steps.
图15为一个实施例的图像生成装置装置的结构框图。如图15所示,图像生成装置1500应用于图像传感器,图像传感器包括滤光片阵列和像素阵列,滤光片阵列包括最小重复单元,最小重复单元包括多个滤光片组,每个滤光片组包括彩色滤光片和全色滤光片,全色滤光片透过的进光量大于彩色滤光片透过的进光量,彩色滤光片和全色滤光片均包括4个子滤光片,多个滤光片组包括第一滤光片组和第二滤光片组,第一滤光片组中至少一个彩色滤光片中包括第一颜色子滤光片和第二颜色子滤光片;第二滤光片组中彩色滤光片至少包括第三颜色子滤光片;像素阵列包括多个像素,像素阵列的第一颜色感光像素与滤光片阵列的第一颜色子滤光片对应设置,像素阵列的第二颜色感光像素与滤光片阵列的第二颜色子滤光片对应设置,像素阵列的第三颜色感光像素与滤光片阵列的第三颜色子滤光片对应设置,像素阵列被配置成用于接收穿过滤光片阵列的光线以生成电信号;FIG15 is a block diagram of an image generating device according to an embodiment. As shown in FIG15 , the image generating device 1500 is applied to an image sensor, the image sensor includes a filter array and a pixel array, the filter array includes a minimum repeating unit, the minimum repeating unit includes a plurality of filter groups, each filter group includes a color filter and a panchromatic filter, the amount of light transmitted by the panchromatic filter is greater than the amount of light transmitted by the color filter, the color filter and the panchromatic filter each include four sub-filters, the plurality of filter groups include a first filter group and a second filter group, at least one color filter in the first filter group includes a sub-filter. a color sub-filter and a second color sub-filter; the color filter in the second filter group includes at least a third color sub-filter; the pixel array includes a plurality of pixels, the first color photosensitive pixel of the pixel array is arranged correspondingly to the first color sub-filter of the filter array, the second color photosensitive pixel of the pixel array is arranged correspondingly to the second color sub-filter of the filter array, the third color photosensitive pixel of the pixel array is arranged correspondingly to the third color sub-filter of the filter array, and the pixel array is configured to receive light passing through the filter array to generate an electrical signal;
该图像生成装置1500包括:The image generating device 1500 comprises:
第一合并模块1502,用于在第一分辨率模式下,根据滤光片组中的全色滤光片对应的多个全色像素合并读出的第一像素值,以及彩色滤光片对应的多个第一颜色感光像素合并读出的第二像素值,以及彩色滤光片对应的多个第三颜色感光像素合并读出的第三像素值,得到第一合并图像。The first merging module 1502 is used to obtain a first merged image in the first resolution mode based on the first pixel value read out by merging a plurality of panchromatic pixels corresponding to the panchromatic filters in the filter group, the second pixel value read out by merging a plurality of first color photosensitive pixels corresponding to the color filters, and the third pixel value read out by merging a plurality of third color photosensitive pixels corresponding to the color filters.
第二合并模块1504,用于根据彩色滤光片对应的多个第二颜色感光像素合并读出的第四像素值,得到第二合并图像。The second merging module 1504 is used to merge the fourth pixel values read out according to the multiple second color photosensitive pixels corresponding to the color filter to obtain a second merged image.
图像生成模块1506,用于基于第一合并图像和第二合并图像,得到第一目标图像。The image generating module 1506 is configured to obtain a first target image based on the first merged image and the second merged image.
本实施例中,在第一分辨率模式下,通过滤光片组中的全色滤光片对应的多个全色像素合并读出的第一像素值,以及彩色滤光片对应的多个第一颜色感光像素合并读出的第二像素值,以及彩色滤光片对应的多个第三颜色感光像素合并读出的第三像素值,能够将全色通道信息融合到图像中,提高整体的进光量,使得能够生成信息更多、细节解析更清晰的第一合并图像。根据彩色滤光片对应的多个第二颜色感光像素合并读出的第四像素值,得到第二合并图像,并基于第一合并图像和第二合并图像,得到第一目标图像,能够将第一合并图像中的第一颜色感光像素和第二合并图像中的第二颜色感光像素混合排列,使得所生成的第一目标图像色彩更清晰。并且像素合并读出使得生成的第一目标图像尺寸减小、生成图像所需消耗的功耗低。In the present embodiment, in the first resolution mode, the full-color channel information can be integrated into the image by merging the first pixel value read out by merging the multiple full-color pixels corresponding to the full-color filter in the filter group, the second pixel value read out by merging the multiple first-color photosensitive pixels corresponding to the color filter, and the third pixel value read out by merging the multiple third-color photosensitive pixels corresponding to the color filter, so as to increase the overall amount of light input, so as to generate a first merged image with more information and clearer detail resolution. The second merged image is obtained according to the fourth pixel value read out by merging the multiple second-color photosensitive pixels corresponding to the color filter, and the first target image is obtained based on the first merged image and the second merged image, so that the first color photosensitive pixels in the first merged image and the second color photosensitive pixels in the second merged image can be mixed and arranged, so that the color of the generated first target image is clearer. In addition, the pixel merging readout reduces the size of the generated first target image and the power consumption required to generate the image is low.
在一个实施例中,图像生成模块1506,还用于遍历第一合并图像中的像素值,在所遍历的像素值为第二像素值的情况下,从第二合并图像中读取与第二像素值位置相同的第四像素值,并将所读取的第四像素值调整至与第二像素值相邻,直至第一合并图像中的像素值均被遍历后,得到第一目标图像。In one embodiment, the image generation module 1506 is also used to traverse the pixel values in the first merged image, and when the traversed pixel value is the second pixel value, read a fourth pixel value at the same position as the second pixel value from the second merged image, and adjust the read fourth pixel value to be adjacent to the second pixel value, until all the pixel values in the first merged image are traversed, thereby obtaining the first target image.
本实施例中,遍历第一合并图像中的像素值,在所遍历的像素值为第二像素值的情况下,从第二合并图像中读取与第二像素值位置相同的第四像素值,并将所读取的第四像素值调整至与第二像素值相邻,使得第一颜色感光像素和第二颜色感光像素混合排列,提高了彩色分辨能力,使得所生成第一目标图像的每行和每列均有第一颜色感光像素、第二颜色感光像素和第三颜色感光像素存在,即目标图像的每行每列均具备有RGB像素,能够有效降低伪色的风险。In this embodiment, the pixel values in the first merged image are traversed, and when the traversed pixel value is the second pixel value, the fourth pixel value at the same position as the second pixel value is read from the second merged image, and the read fourth pixel value is adjusted to be adjacent to the second pixel value, so that the first color photosensitive pixels and the second color photosensitive pixels are mixed and arranged, thereby improving the color resolution capability, so that each row and each column of the generated first target image has the first color photosensitive pixels, the second color photosensitive pixels and the third color photosensitive pixels, that is, each row and each column of the target image has RGB pixels, which can effectively reduce the risk of false color.
在一个实施例中,第二滤光片组的彩色滤光片还包括第一颜色子滤光片或第二颜色子滤光片;第一合并模块1502,还用于在第一分辨率模式下,根据滤光片组中的全色滤光片对应的多个全色像素合并读出的第一像素值,根据第一滤光片组中多个第一颜色子滤光片对应的第一颜色感光像素合并读出的第二像素值、根据包含第一颜色子滤光片的第二滤光片组中多个第三颜色子滤光片对应的第三颜色感光像素合并读出的第三像素值、以及根据第二滤光片组中多个第二颜色子滤光片对应的第二颜色感光像素合并读出的第四像素值,得到第一合并图像;In one embodiment, the color filter of the second filter group further includes a first color sub-filter or a second color sub-filter; the first merging module 1502 is further used to obtain a first merged image in the first resolution mode by merging and reading a first pixel value corresponding to a plurality of panchromatic pixels in the filter group, merging and reading a second pixel value corresponding to a plurality of first color sub-filters in the first filter group, merging and reading a third pixel value corresponding to a plurality of third color sub-filters in the second filter group including the first color sub-filter, and merging and reading a fourth pixel value corresponding to a plurality of second color sub-filters in the second filter group;
第二合并模块1504,还用于根据第一滤光片组中多个第二颜色子滤光片对应的第二颜色感光像素合并读出的第四像素值,根据第二滤光片组中多个第一颜色子滤光片对应的第一颜色感光像素合并读出的第二像素值,根据包含第二颜色子滤光片的第二滤光片组中多个第三颜色子滤光片对应的第三颜色感光像素合并读出的第三像素值,得到第二合并图像。The second merging module 1504 is also used to obtain a second merged image based on a fourth pixel value read out by merging the second color photosensitive pixels corresponding to multiple second color sub-filters in the first filter group, a second pixel value read out by merging the first color photosensitive pixels corresponding to multiple first color sub-filters in the second filter group, and a third pixel value read out by merging the third color photosensitive pixels corresponding to multiple third color sub-filters in the second filter group including the second color sub-filters.
本实施例中,第二滤光片组232的彩色滤光片234中包括第三颜色子滤光片2343,还包括第一颜色子滤光片2341或第二颜色子滤光片2342,在第一分辨率模式下,根据滤光片组中的全色滤光片对应的多个全色像素合并读出的第一像素值,根据第一滤光片组中多个第一颜色子滤光片对应的第一颜色感光像素合并读出的第二像素值、根据包含第一颜色子滤光片的第二滤光片组中多个第三颜色子滤光片对应的第三颜色感光像素合并读出的第三像素值、以及根据第二滤光片组中多个第二颜色子滤光片对应的第二颜色感光像素合并读出的第四像素值,使得合并读取所得到的第一合并图像中包含了所有颜色的像素,能够提高彩色通道的分辨能力。根据彩色滤光片对应的多个第一颜色感光像素合并读出的第二像素值、彩色像素对应的多个第三颜色感光像素合并读出的第三像素值、以及彩色滤光片对应的多个第二颜色感光像素合并读出的第四像素值,得到第二合并图像,使得根据第一合并图像和第二合并图像生成的第一目标图像中的各颜色的像素分布更均匀,有效提高图像的清晰度。In this embodiment, the color filter 234 of the second filter group 232 includes a third color sub-filter 2343 and also includes a first color sub-filter 2341 or a second color sub-filter 2342. In the first resolution mode, a first pixel value is read out by merging a plurality of full-color pixels corresponding to the full-color filters in the filter group, a second pixel value is read out by merging a plurality of first color photosensitive pixels corresponding to the plurality of first color sub-filters in the first filter group, a third pixel value is read out by merging a plurality of third color photosensitive pixels corresponding to the plurality of third color sub-filters in the second filter group including the first color sub-filter, and a fourth pixel value is read out by merging a plurality of second color photosensitive pixels corresponding to the plurality of second color sub-filters in the second filter group, so that the first merged image obtained by the merged reading contains pixels of all colors, thereby improving the resolution capability of the color channel. A second merged image is obtained based on the second pixel value read out by merging multiple first color photosensitive pixels corresponding to the color filter, the third pixel value read out by merging multiple third color photosensitive pixels corresponding to the color pixel, and the fourth pixel value read out by merging multiple second color photosensitive pixels corresponding to the color filter, so that the pixel distribution of each color in the first target image generated according to the first merged image and the second merged image is more uniform, effectively improving the clarity of the image.
在一个实施例中,该装置还包括第三合并模块;In one embodiment, the apparatus further comprises a third merging module;
第一合并模块1502,还用于在第二分辨率模式下,根据滤光片组中的全色滤光片对应的多个全色像素合并读出的第一像素值,以及彩色滤光片对应的多个第一颜色感光像素合并读出的第二像素值,以及彩色滤光片对应的多个第三颜色感光像素合并读出的第三像素值,得到第一合并图像;第二分辨率模式对应的分辨率小于第一分辨率模式对应的分辨率;The first merging module 1502 is further configured to obtain a first merged image according to a first pixel value read out by merging a plurality of panchromatic pixels corresponding to the panchromatic filters in the filter group, a second pixel value read out by merging a plurality of first color photosensitive pixels corresponding to the color filters, and a third pixel value read out by merging a plurality of third color photosensitive pixels corresponding to the color filters in a second resolution mode; the resolution corresponding to the second resolution mode is smaller than the resolution corresponding to the first resolution mode;
第二合并模块1504,还用于根据彩色滤光片对应的多个第二颜色感光像素合并读出的第四像素值,得到第二合并图像;The second merging module 1504 is further configured to merge the read fourth pixel values according to the plurality of second color photosensitive pixels corresponding to the color filter to obtain a second merged image;
第三合并模块,用于基于第一合并图像中第九对角线方向上的多个全色像素合并读出的第五像素值,得到全色合并图像;基于第一合并图像中第十对角线方向上的多个第一颜色感光像素合并读出的第六像素值,以及第十对角线方向上的多个第三颜色感光像素合并读出的第七像素值,得到第三合并图像,第九对角线方向不同于第十对角线方向;a third merging module, configured to obtain a full-color merged image based on a fifth pixel value obtained by merging and reading a plurality of full-color pixels in a ninth diagonal direction in the first merged image; and obtain a third merged image based on a sixth pixel value obtained by merging and reading a plurality of first-color light-sensitive pixels in a tenth diagonal direction in the first merged image and a seventh pixel value obtained by merging and reading a plurality of third-color light-sensitive pixels in a tenth diagonal direction, wherein the ninth diagonal direction is different from the tenth diagonal direction;
第三合并模块,还用于基于第二合并图像中第十对角线方向上的多个第二颜色感光像素合并读出的第八像素值,得到第四合并图像;The third merging module is further used to obtain a fourth merged image by merging the eighth pixel value read out based on a plurality of second color light-sensitive pixels in a tenth diagonal direction in the second merged image;
图像生成模块1506,还用于基于全色合并图像、第三合并图像和第四合并图像,得到第二目标图像。The image generating module 1506 is further configured to obtain a second target image based on the full-color merged image, the third merged image and the fourth merged image.
本实施例中,在第二分辨率模式下,根据滤光片组中的全色滤光片对应的多个全色像素合并读出的第一像素值,以及彩色滤光片对应的多个彩色像素合并读出的第二像素值,以及彩色滤光片对应的多个第三颜色感光像素合并读出的第三像素值,得到第一合并图像,并将根据彩色滤光片对应的多个第二颜色感光像素合并读出的第四像素值,得到第二合并图像,能够将第二颜色感光像素分离出来作为单独的图像并降低图像的分辨率。基于第一合并图像中在第九对角线方向上的多个全色像素合并读出的第五像素值得到全色合并图像,能够将全色像素从第一合并图像中分离出来的同时减小图像的尺寸,以降低功耗。基于第一合并图像中在第十对角线方向上的多个第一颜色感光像素合并读出的第六像素值,以及在第十对角线方向上的多个第三颜色感光像素合并读出的第七像素值,得到包含第一颜色感光像素和第三颜色感光像素的第三合并图像,多合一的像素读出方式使得生成的图像噪声少。基于第二合并图像中在第十对角线方向上的多个第二颜色感光像素合并读出的第八像素值,使得第四合并图像的尺寸与第三合并图像、全色合并图像的尺寸保持一致。基于全色合并图像、第三合并图像和第四合并图像,能够将不同第一颜色感光像素和第二颜色感光像素进行混合排列,使得所生成的第二目标图像中RGB像素分布更均匀,图像质量更高。并且,所得到第二目标图像的分辨率进一步减小,且全色像素具有更高的信噪比,图像的帧率高,从而达到了二级像素合并输出的功耗更低、信噪比更佳的图像处理效果。In this embodiment, in the second resolution mode, a first merged image is obtained according to the first pixel value read out by merging multiple panchromatic pixels corresponding to the panchromatic filters in the filter group, the second pixel value read out by merging multiple color pixels corresponding to the color filters, and the third pixel value read out by merging multiple third color photosensitive pixels corresponding to the color filters, and a second merged image is obtained according to the fourth pixel value read out by merging multiple second color photosensitive pixels corresponding to the color filters, so that the second color photosensitive pixels can be separated as a separate image and the resolution of the image can be reduced. A panchromatic merged image is obtained based on the fifth pixel value read out by merging multiple panchromatic pixels in the ninth diagonal direction in the first merged image, so that the panchromatic pixels can be separated from the first merged image while reducing the size of the image to reduce power consumption. A third merged image including the first color photosensitive pixels and the third color photosensitive pixels is obtained based on the sixth pixel value read out by merging multiple first color photosensitive pixels in the tenth diagonal direction in the first merged image, and the seventh pixel value read out by merging multiple third color photosensitive pixels in the tenth diagonal direction, so that the generated image has less noise. Based on the eighth pixel value read out by merging multiple second color photosensitive pixels in the tenth diagonal direction in the second merged image, the size of the fourth merged image is kept consistent with the size of the third merged image and the full-color merged image. Based on the full-color merged image, the third merged image and the fourth merged image, different first color photosensitive pixels and second color photosensitive pixels can be mixed and arranged, so that the RGB pixels in the generated second target image are more evenly distributed and the image quality is higher. In addition, the resolution of the obtained second target image is further reduced, and the full-color pixels have a higher signal-to-noise ratio, and the frame rate of the image is high, thereby achieving an image processing effect with lower power consumption and better signal-to-noise ratio of the secondary pixel merging output.
在一个实施例中,该图像生成模块1506,还用于遍历第三合并图像中的像素;在所遍历的像素值为第六像素值或第七像素值的情况下,从全色合并图像中读取与遍历的像素值对应的第五像素值,并将所读取的第五像素值调整至与遍历的像素值相邻;在所遍历的像素值为第六像素值的情况下,从第四合并图像中读取与第六像素位置相同的第八像素值,并将所读取的第八像素值调整至与第六像素值相邻,直至全色合并图像、第三合并图像和第四合并图像中的像素值均读取后,得到第二目标图像。In one embodiment, the image generation module 1506 is also used to traverse the pixels in the third merged image; when the traversed pixel value is the sixth pixel value or the seventh pixel value, read the fifth pixel value corresponding to the traversed pixel value from the full-color merged image, and adjust the read fifth pixel value to be adjacent to the traversed pixel value; when the traversed pixel value is the sixth pixel value, read the eighth pixel value at the same position as the sixth pixel from the fourth merged image, and adjust the read eighth pixel value to be adjacent to the sixth pixel value, until the pixel values in the full-color merged image, the third merged image and the fourth merged image are all read, and the second target image is obtained.
本实施例中,遍历第三合并图像中的像素,在所遍历的像素值为第六像素值或第七像素值的情况下,从全色合并图像中读取与遍历的像素值对应的第五像素值,并将所读取的第五像素值调整至与遍历的像素值相邻,使得在图像中引入了全色像素,提高了进光量。在所遍历的像素值为第六像素值的情况下,从第四合并图像中读取与第六像素位置相同的第八像素值,并将所读取的第八像素值调整至与第六像素值相邻,使得第一颜色感光像素和第二颜色感光像素混合排列,提高了彩色分辨能力,使得所生成第二目标图像的每行和每列均有第一颜色感光像素、第二颜色感光像素和第二颜色感光像素存在,即目标图像的每行每列均具备有RGB像素,能够有效降低伪色的风险。In this embodiment, the pixels in the third merged image are traversed, and when the traversed pixel value is the sixth pixel value or the seventh pixel value, the fifth pixel value corresponding to the traversed pixel value is read from the full-color merged image, and the read fifth pixel value is adjusted to be adjacent to the traversed pixel value, so that full-color pixels are introduced into the image, and the amount of light entering is increased. When the traversed pixel value is the sixth pixel value, the eighth pixel value at the same position as the sixth pixel is read from the fourth merged image, and the read eighth pixel value is adjusted to be adjacent to the sixth pixel value, so that the first color photosensitive pixels and the second color photosensitive pixels are mixed and arranged, and the color resolution ability is improved, so that each row and each column of the generated second target image has the first color photosensitive pixels, the second color photosensitive pixels, and the second color photosensitive pixels, that is, each row and each column of the target image has RGB pixels, which can effectively reduce the risk of false colors.
在一个实施例中,第二滤光片组的彩色滤光片还包括第一颜色子滤光片或第二颜色子滤光片;第一合并模块1502,还用于在第二分辨率模式下,根据滤光片组中的全色滤光片对应的多个全色像素合并读出的第一像素值,根据第一滤光片组中多个第一颜色子滤光片对应的第一颜色感光像素合并读出的第二像素值、根据包含第一颜色子滤光片的第二滤光片组中多个第三颜色子滤光片对应的第三颜色感光像素合并读出的第三像素值、以及根据第二滤光片组中多个第二颜色子滤光片对应的第二颜色感光像素合并读出的第四像素值,得到第一合并图像;In one embodiment, the color filter of the second filter group further includes a first color sub-filter or a second color sub-filter; the first merging module 1502 is further used to obtain a first merged image in the second resolution mode by merging and reading a first pixel value according to a plurality of panchromatic pixels corresponding to the panchromatic filters in the filter group, a second pixel value according to a first color photosensitive pixel corresponding to a plurality of first color sub-filters in the first filter group, a third pixel value according to a third color photosensitive pixel corresponding to a plurality of third color sub-filters in the second filter group including the first color sub-filter, and a fourth pixel value according to a second color photosensitive pixel corresponding to a plurality of second color sub-filters in the second filter group;
第二合并模块1504,还用于根据第一滤光片组中多个第二颜色子滤光片对应的第二颜色感光像素合并读出的第四像素值,根据第二滤光片组中多个第一颜色子滤光片对应的第一颜色感光像素合并读出的第二像素值,根据包含第二颜色子滤光片的第二滤光片组中多个第三颜色子滤光片对应的第三颜色感光像素合并读出的第三像素值,得到第二合并图像;The second merging module 1504 is further configured to obtain a second merged image based on a fourth pixel value read out by merging the second color photosensitive pixels corresponding to the plurality of second color sub-filters in the first filter group, a second pixel value read out by merging the first color photosensitive pixels corresponding to the plurality of first color sub-filters in the second filter group, and a third pixel value read out by merging the third color photosensitive pixels corresponding to the plurality of third color sub-filters in the second filter group including the second color sub-filter;
第三合并模块,还用于基于第一合并图像中第十对角线方向上的多个第一颜色感光像素合并读出的第六像素值、在第十对角线方向上的多个第三颜色感光像素合并读出的第七像素值、以及在第十对角线方向上的多个第二颜色感光像素合并读出的第八像素值,第三合并图像;a third merging module, further configured to generate a third merged image based on a sixth pixel value merged and read out by a plurality of first color light-sensitive pixels in a tenth diagonal direction in the first merged image, a seventh pixel value merged and read out by a plurality of third color light-sensitive pixels in a tenth diagonal direction, and an eighth pixel value merged and read out by a plurality of second color light-sensitive pixels in a tenth diagonal direction;
第三合并模块,还用于基于第二合并图像中,在第十对角线方向上的多个第一颜色感光像素合并读出的第六像素值、在第十对角线方向上的多个第三颜色感光像素合并读出的第七像素值、以及在第十对角线方向上的多个第二颜色感光像素合并读出的第八像素值,得到第四合并图像。The third merging module is also used to obtain a fourth merged image based on the sixth pixel value read out by merging multiple first color photosensitive pixels in the tenth diagonal direction, the seventh pixel value read out by merging multiple third color photosensitive pixels in the tenth diagonal direction, and the eighth pixel value read out by merging multiple second color photosensitive pixels in the tenth diagonal direction in the second merged image.
本实施例中,在第二分辨率模式下,根据滤光片组中的全色滤光片对应的多个全色像素合并读出的第一像素值,根据第一滤光片组中多个第一颜色子滤光片对应的第一颜色感光像素合并读出的第二像素值,根据包含第一颜色子滤光片的第二滤光片组中第三颜色感光像素合并读出的第三像素值,以及根据第二滤光片组中多个第二颜色子滤光片对应的第三颜色感光像素合并读出的第四像素值,得到第一合并图像,并将根据第一滤光片组中多个第二颜色子滤光片对应的第二颜色感光像素合并读出的第四像素值,根据第二滤光片组中多个第一颜色子滤光片对应的第一颜色感光像素合并读出的第二像素值,根据包含第二颜色子滤光片的第二滤光片组中多个第三颜色子滤光片对应的第三颜色感光像素合并读出的第三像素值,得到第二合并图像,能够将各个彩色滤光片对应的第一颜色感光像素、第二颜色感光像素和第三颜色感光像素分离出来形成两张合并图像,使得两张合并图像中各颜色的感光像素在各自合并图像中的位置相同。In this embodiment, in the second resolution mode, a first pixel value is read out according to a combination of a plurality of full-color pixels corresponding to the full-color filters in the filter group, a second pixel value is read out according to a combination of a first color photosensitive pixel corresponding to a plurality of first color sub-filters in the first filter group, a third pixel value is read out according to a combination of a third color photosensitive pixel in the second filter group including the first color sub-filter, and a fourth pixel value is read out according to a combination of a third color photosensitive pixel corresponding to a plurality of second color sub-filters in the second filter group to obtain a first merged image, and a plurality of second color sub-filters in the first filter group are combined to form a first merged image. The second merged image is obtained by combining and reading the fourth pixel value of the second color photosensitive pixels corresponding to the multiple first color sub-filters in the second filter group, and combining and reading the third pixel value of the third color photosensitive pixels corresponding to the multiple third color sub-filters in the second filter group including the second color sub-filter. The first color photosensitive pixels, the second color photosensitive pixels and the third color photosensitive pixels corresponding to each color filter can be separated to form two merged images, so that the photosensitive pixels of each color in the two merged images are in the same position in each merged image.
基于第一合并图像中在第九对角线方向上的多个全色像素合并读出的第五像素值得到全色合并图像,能够将全色像素从第一合并图像中分离出来的同时减小图像的尺寸,以降低功耗。The full-color merged image is obtained based on the fifth pixel value read out by merging multiple full-color pixels in the ninth diagonal direction in the first merged image, and the full-color pixels can be separated from the first merged image while reducing the size of the image to reduce power consumption.
基于第一合并图像中在第十对角线方向上的多个第一颜色感光像素合并读出的第六像素值,以及在第十对角线方向上的多个第三颜色感光像素合并读出的第七像素值,以及在第十对角线方向上的多个第二颜色感光像素合并读出的第八像素值,得到包含第一颜色感光像素、第二颜色感光像素和第三颜色感光像素的第三合并图像,使得RGB像素在图像中的分布更均匀。基于第二合并图像中,在第十对角线方向上的多个第一颜色感光像素合并读出的第六像素值、在第十对角线方向上的多个第三颜色感光像素合并读出的第七像素值、以及在第十对角线方向上的多个第二颜色感光像素合并读出的第八像素值,得到第四合并图像,使得第四合并图像的尺寸与第三合并图像、全色合并图像的尺寸保持一致。基于全色合并图像、第三合并图像和第四合并图像,能够将不同第一颜色感光像素、第二颜色感光像素和第三颜色感光像素进行混合排列,使得所生成的第二目标图像中RGB像素分布更均匀,图像质量更高。并且,所得到第二目标图像的分辨率进一步减小,且全色像素具有更高的信噪比,图像的帧率高,从而达到了二级像素合并输出的功耗更低、信噪比更佳的图像处理效果。Based on the sixth pixel value read out by merging multiple first color photosensitive pixels in the tenth diagonal direction in the first merged image, the seventh pixel value read out by merging multiple third color photosensitive pixels in the tenth diagonal direction, and the eighth pixel value read out by merging multiple second color photosensitive pixels in the tenth diagonal direction, a third merged image including first color photosensitive pixels, second color photosensitive pixels and third color photosensitive pixels is obtained, so that the distribution of RGB pixels in the image is more uniform. Based on the sixth pixel value read out by merging multiple first color photosensitive pixels in the tenth diagonal direction, the seventh pixel value read out by merging multiple third color photosensitive pixels in the tenth diagonal direction, and the eighth pixel value read out by merging multiple second color photosensitive pixels in the tenth diagonal direction in the second merged image, a fourth merged image is obtained, so that the size of the fourth merged image is consistent with that of the third merged image and the full-color merged image. Based on the full-color merged image, the third merged image and the fourth merged image, different first color photosensitive pixels, second color photosensitive pixels and third color photosensitive pixels can be mixed and arranged, so that the distribution of RGB pixels in the generated second target image is more uniform and the image quality is higher. Moreover, the resolution of the obtained second target image is further reduced, and the full-color pixels have a higher signal-to-noise ratio, and the image frame rate is high, thereby achieving an image processing effect with lower power consumption and better signal-to-noise ratio of the secondary pixel merging output.
在一个实施例中,第一合并模块1502,还用于在第二分辨率模式下,根据滤光片组对应的多个全色像素合并读出的第一像素值,得到全色图像;根据滤光片组对应的多个第一颜色感光像素合并读出的第二像素值,以及滤光片组对应的多个第三颜色感光像素合并读出的第三像素值,得到第五合并图像;In one embodiment, the first merging module 1502 is further configured to obtain a full-color image in the second resolution mode according to a first pixel value read out by merging a plurality of full-color pixels corresponding to the filter group; obtain a fifth merged image according to a second pixel value read out by merging a plurality of first-color light-sensitive pixels corresponding to the filter group and a third pixel value read out by merging a plurality of third-color light-sensitive pixels corresponding to the filter group;
第二合并模块1504,还用于根据滤光片组对应的多个第二颜色感光像素合并读出的第四像素值,得到第六合并图像;The second merging module 1504 is further configured to merge the read fourth pixel values according to the plurality of second color light-sensitive pixels corresponding to the filter group to obtain a sixth merged image;
图像生成模块1506,还用于基于全色图像、第五合并图像和第六合并图像,得到第三目标图像。The image generating module 1506 is further configured to obtain a third target image based on the full-color image, the fifth combined image and the sixth combined image.
本实施例中,在第二分辨率模式下,通过滤光片组对应的多个全色像素合并读出的第一像素值,能够分离出全色图像;根据滤光片组对应的多个第一颜色感光像素合并读出的第二像素值,以及滤光片组对应的多个第三颜色感光像素合并读出的第三像素值,能够将第一颜色感光像素和第三颜色感光像素分离出来形成第五合并图像,能够快速有效降低图像尺寸。根据滤光片组对应的多个第二颜色感光像素合并读出的第四像素值,能够将第二颜色感光像素分离出来形成第六合并图像,使得第二颜色感光像素在第六合并图像和第一颜色感光像素在第五合并图像中的坐标位置保持一致。基于全色图像、第五合并图像和第六合并图像得到第三目标图像,能够将全色通道信息融合到图像中,提高整体的进光量,使得能够生成信息更多、细节解析更清晰的第三目标图像。并且通过滤光片组对应的多个像素合并读出使得生成的第三目标图像尺寸减小、生成图像所需消耗的功耗低。In this embodiment, in the second resolution mode, a full-color image can be separated by merging the first pixel value read out by the plurality of full-color pixels corresponding to the filter group; according to the second pixel value read out by merging the plurality of first-color photosensitive pixels corresponding to the filter group, and the third pixel value read out by merging the plurality of third-color photosensitive pixels corresponding to the filter group, the first-color photosensitive pixels and the third-color photosensitive pixels can be separated to form a fifth merged image, which can quickly and effectively reduce the image size. According to the fourth pixel value read out by merging the plurality of second-color photosensitive pixels corresponding to the filter group, the second-color photosensitive pixels can be separated to form a sixth merged image, so that the coordinate positions of the second-color photosensitive pixels in the sixth merged image and the first-color photosensitive pixels in the fifth merged image are consistent. The third target image is obtained based on the full-color image, the fifth merged image, and the sixth merged image, so that the full-color channel information can be integrated into the image, the overall amount of light input can be increased, and the third target image with more information and clearer detail resolution can be generated. And the size of the generated third target image is reduced by merging and reading the plurality of pixels corresponding to the filter group, and the power consumption required to generate the image is low.
在一个实施例中,第二滤光片组的彩色滤光片还包括第一颜色子滤光片或第二颜色子滤光片;第一合并模块1502,还用于根据第一滤光片组中多个第一颜色子滤光片对应的第一颜色感光像素合并读出的第二像素值、根据包含第一颜色子滤光片的第二滤光片组中多个第三颜色子滤光片对应的第三颜色感光像素合并读出的第三像素值、以及根据第二滤光片组中多个第二颜色子滤光片对应的第二颜色感光像素合并读出的第四像素值,得到第五合并图像;In one embodiment, the color filter of the second filter group further includes a first color sub-filter or a second color sub-filter; the first merging module 1502 is further used to obtain a fifth merged image according to a second pixel value merged and read out by first color photosensitive pixels corresponding to a plurality of first color sub-filters in the first filter group, a third pixel value merged and read out by third color photosensitive pixels corresponding to a plurality of third color sub-filters in the second filter group including the first color sub-filter, and a fourth pixel value merged and read out by second color photosensitive pixels corresponding to a plurality of second color sub-filters in the second filter group;
第二合并模块1504,还用于根据第一滤光片组中多个第二颜色子滤光片对应的第二颜色感光像素合并读出的第四像素值,根据第二滤光片组中多个第一颜色子滤光片对应的第一颜色感光像素合并读出的第二像素值,根据包含第二颜色子滤光片的第二滤光片组中多个第三颜色子滤光片对应的第三颜色感光像素合并读出的第三像素值,得到第六合并图像。The second merging module 1504 is also used to obtain a sixth merged image based on a fourth pixel value read out by merging the second color photosensitive pixels corresponding to multiple second color sub-filters in the first filter group, a second pixel value read out by merging the first color photosensitive pixels corresponding to multiple first color sub-filters in the second filter group, and a third pixel value read out by merging the third color photosensitive pixels corresponding to multiple third color sub-filters in the second filter group including the second color sub-filter.
本实施例中,在第二分辨率模式下,通过根据第一滤光片组中多个第一颜色子滤光片对应的第一颜色感光像素合并读出的第二像素值、根据包含第一颜色子滤光片的第二滤光片组中多个第三颜色子滤光片对应的第三颜色感光像素合并读出的第三像素值、以及根据第二滤光片组中多个第二颜色子滤光片对应的第二颜色感光像素合并读出的第四像素值,能够将部分第一颜色感光像素、第三颜色感光像素和第二颜色感光像素分离出来形成第五合并图像,能够通过像素合并减小图像尺寸,以减少处理功耗。根据第一滤光片组中多个第二颜色子滤光片对应的第二颜色感光像素合并读出的第四像素值、第二滤光片组中多个第一颜色子滤光片对应的第一颜色感光像素合并读出的第二像素值,根据包含第二颜色子滤光片的第二滤光片组中多个第三颜色子滤光片对应的第三颜色感光像素合并读出的第三像素值,能够将部分第一颜色感光像素、第三颜色感光像素和第二颜色感光像素分离出来出来形成第六合并图像,使得第二颜色感光像素在第六合并图像和第一颜色感光像素在第五合并图像中的坐标位置保持一致。基于全色图像、第五合并图像和第六合并图像得到第三目标图像,能够将全色通道信息融合到图像中,提高整体的进光量,使得能够生成信息更多、细节解析更清晰的第三目标图像。并且通过滤光片组对应的多个像素合并读出使得生成的第三目标图像尺寸减小、生成图像所需消耗的功耗低。In this embodiment, in the second resolution mode, by combining and reading out the second pixel value of the first color photosensitive pixels corresponding to the multiple first color sub-filters in the first filter group, combining and reading out the third pixel value of the third color photosensitive pixels corresponding to the multiple third color sub-filters in the second filter group including the first color sub-filter, and combining and reading out the fourth pixel value of the second color photosensitive pixels corresponding to the multiple second color sub-filters in the second filter group, some first color photosensitive pixels, third color photosensitive pixels and second color photosensitive pixels can be separated to form a fifth combined image, and the image size can be reduced by pixel merging to reduce processing power consumption. According to the fourth pixel value read out by merging the second color photosensitive pixels corresponding to the plurality of second color sub-filters in the first filter group, the second pixel value read out by merging the first color photosensitive pixels corresponding to the plurality of first color sub-filters in the second filter group, and the third pixel value read out by merging the third color photosensitive pixels corresponding to the plurality of third color sub-filters in the second filter group including the second color sub-filter, part of the first color photosensitive pixels, the third color photosensitive pixels and the second color photosensitive pixels can be separated to form a sixth merged image, so that the coordinate position of the second color photosensitive pixels in the sixth merged image and the first color photosensitive pixels in the fifth merged image are consistent. The third target image is obtained based on the full-color image, the fifth merged image and the sixth merged image, and the full-color channel information can be integrated into the image to increase the overall light input, so that a third target image with more information and clearer detail resolution can be generated. In addition, the size of the generated third target image is reduced and the power consumption required to generate the image is low by merging and reading out the plurality of pixels corresponding to the filter group.
上述图像生成装置中各个模块的划分仅用于举例说明,在其他实施例中,可将图像生成装置按照需要划分为不同的模块,以完成上述图像生成装置的全部或部分功能。The division of the modules in the above-mentioned image generating device is only for illustration. In other embodiments, the image generating device may be divided into different modules as needed to complete all or part of the functions of the above-mentioned image generating device.
图16为一个实施例中电子设备的内部结构示意图。如图16所示,该电子设备包括通过系统总线连接的处理器和存储器。其中,该处理器用于提供计算和控制能力,支撑整个电子设备的运行。存储器可包括非易失性存储介质及内存储器。非易失性存储介质存储有操作系统和计算机程序。该计算机程序可被处理器所执行,以用于实现以下各个实施例所提供的一种图像生成方法。内存储器为非易失性存储介质中的操作系统计算机程序提供高速缓存的运行环境。该电子设备可以是手机、平板电脑或者个人数字助理或穿戴式设备等。FIG16 is a schematic diagram of the internal structure of an electronic device in an embodiment. As shown in FIG16 , the electronic device includes a processor and a memory connected via a system bus. The processor is used to provide computing and control capabilities to support the operation of the entire electronic device. The memory may include a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The computer program can be executed by the processor to implement an image generation method provided in each of the following embodiments. The internal memory provides a cached operating environment for the operating system computer program in the non-volatile storage medium. The electronic device may be a mobile phone, a tablet computer, a personal digital assistant, a wearable device, etc.
本申请实施例中提供的图像生成装置中的各个模块的实现可为计算机程序的形式。该计算机程序可在终端或服务器上运行。该计算机程序构成的程序模块可存储在终端或服务器的存储器上。该计算机程序被处理器执行时,实现本申请实施例中所描述方法的步骤。The implementation of each module in the image generation device provided in the embodiment of the present application can be in the form of a computer program. The computer program can be run on a terminal or a server. The program modules constituted by the computer program can be stored in the memory of the terminal or the server. When the computer program is executed by the processor, the steps of the method described in the embodiment of the present application are implemented.
本申请实施例还提供了一种计算机可读存储介质。一个或多个包含计算机可执行指令的非易失性计算机可读存储介质,当计算机可执行指令被一个或多个处理器执行时,使得处理器执行图像生成方法的步骤。The embodiment of the present application also provides a computer-readable storage medium, one or more non-volatile computer-readable storage media containing computer-executable instructions, which, when executed by one or more processors, enable the processors to perform the steps of the image generation method.
一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行图像生成方法。A computer program product comprising instructions, when executed on a computer, causes the computer to perform an image generation method.
本申请实施例所使用的对存储器、存储、数据库或其它介质的任何引用可包括非易失性和/或易失性存储器。合适的非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM),它用作外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDR SDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)。Any reference to memory, storage, database or other media used in the embodiments of the present application may include non-volatile and/or volatile memory. Suitable non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM), which is used as an external cache memory. As an illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM) and memory bus dynamic RAM (RDRAM).
以上实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims (26)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111339984.2A CN114125318B (en) | 2021-11-12 | 2021-11-12 | Image sensor, camera module, electronic device, image generation method and device |
| PCT/CN2022/114371 WO2023082766A1 (en) | 2021-11-12 | 2022-08-24 | Image sensor, camera module, electronic device, and image generation method and apparatus |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111339984.2A CN114125318B (en) | 2021-11-12 | 2021-11-12 | Image sensor, camera module, electronic device, image generation method and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN114125318A CN114125318A (en) | 2022-03-01 |
| CN114125318B true CN114125318B (en) | 2024-08-02 |
Family
ID=80379203
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202111339984.2A Active CN114125318B (en) | 2021-11-12 | 2021-11-12 | Image sensor, camera module, electronic device, image generation method and device |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN114125318B (en) |
| WO (1) | WO2023082766A1 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114125318B (en) * | 2021-11-12 | 2024-08-02 | Oppo广东移动通信有限公司 | Image sensor, camera module, electronic device, image generation method and device |
| CN114554046B (en) * | 2021-12-01 | 2024-08-13 | Oppo广东移动通信有限公司 | Image sensor, camera module, electronic device, image generation method and device |
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113573030A (en) * | 2021-07-01 | 2021-10-29 | Oppo广东移动通信有限公司 | Image generation method, apparatus, electronic device, and computer-readable storage medium |
Family Cites Families (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7769229B2 (en) * | 2006-11-30 | 2010-08-03 | Eastman Kodak Company | Processing images having color and panchromatic pixels |
| US8253832B2 (en) * | 2009-06-09 | 2012-08-28 | Omnivision Technologies, Inc. | Interpolation for four-channel color filter array |
| KR101262507B1 (en) * | 2011-04-11 | 2013-05-08 | 엘지이노텍 주식회사 | Pixel, pixel array and method for manufacturing the pixel array and image sensor inclduding the pixel array |
| WO2021174529A1 (en) * | 2020-03-06 | 2021-09-10 | Oppo广东移动通信有限公司 | Image sensor, imaging apparatus, electronic device, image processing system and signal processing method |
| CN212752379U (en) * | 2020-05-15 | 2021-03-19 | 深圳市汇顶科技股份有限公司 | Image sensor and electronic device |
| CN112118378B (en) * | 2020-10-09 | 2024-08-02 | Oppo广东移动通信有限公司 | Image acquisition method and device, terminal and computer readable storage medium |
| CN213279832U (en) * | 2020-10-09 | 2021-05-25 | Oppo广东移动通信有限公司 | Image Sensors, Cameras and Terminals |
| CN113556519B (en) * | 2021-07-01 | 2024-12-03 | Oppo广东移动通信有限公司 | Image processing method, electronic device, and non-volatile computer-readable storage medium |
| CN114125318B (en) * | 2021-11-12 | 2024-08-02 | Oppo广东移动通信有限公司 | Image sensor, camera module, electronic device, image generation method and device |
-
2021
- 2021-11-12 CN CN202111339984.2A patent/CN114125318B/en active Active
-
2022
- 2022-08-24 WO PCT/CN2022/114371 patent/WO2023082766A1/en not_active Ceased
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113573030A (en) * | 2021-07-01 | 2021-10-29 | Oppo广东移动通信有限公司 | Image generation method, apparatus, electronic device, and computer-readable storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN114125318A (en) | 2022-03-01 |
| WO2023082766A1 (en) | 2023-05-19 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN213279832U (en) | Image Sensors, Cameras and Terminals | |
| CN112118378B (en) | Image acquisition method and device, terminal and computer readable storage medium | |
| US8355074B2 (en) | Exposing pixel groups in producing digital images | |
| US7855740B2 (en) | Multiple component readout of image sensor | |
| US8452082B2 (en) | Pattern conversion for interpolation | |
| WO2021208593A1 (en) | High dynamic range image processing system and method, electronic device, and storage medium | |
| CN111432099A (en) | Image sensor, processing system and method, electronic device and storage medium | |
| CN114125242B (en) | Image sensor, camera module, electronic device, image generation method and device | |
| EP2087725A1 (en) | Improved light sensitivity in image sensors | |
| CN113840067B (en) | Image sensor, image generation method, device and electronic device | |
| CN114125318B (en) | Image sensor, camera module, electronic device, image generation method and device | |
| CN114040084B (en) | Image sensor, camera module, electronic device, image generation method and device | |
| WO2023124607A1 (en) | Image generation method and apparatus, electronic device, and computer-readable storage medium | |
| CN114157795B (en) | Image sensor, camera module, electronic device, image generation method and device | |
| CN114363486B (en) | Image sensor, camera module, electronic device, image generation method and device | |
| CN114554046B (en) | Image sensor, camera module, electronic device, image generation method and device | |
| WO2022073364A1 (en) | Image obtaining method and apparatus, terminal, and computer readable storage medium | |
| HK1204412B (en) | Method and imaging system for producing digital images |
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 |