CN115988188A - Color balance correction method, device, electronic equipment and storage medium - Google Patents
Color balance correction method, device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN115988188A CN115988188A CN202211718226.6A CN202211718226A CN115988188A CN 115988188 A CN115988188 A CN 115988188A CN 202211718226 A CN202211718226 A CN 202211718226A CN 115988188 A CN115988188 A CN 115988188A
- Authority
- CN
- China
- Prior art keywords
- pixel
- color
- corrected
- balance correction
- pixels
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Facsimile Image Signal Circuits (AREA)
- Image Processing (AREA)
- Color Television Image Signal Generators (AREA)
- Color Image Communication Systems (AREA)
Abstract
本申请提供了一种色彩平衡校正方法、装置、电子设备及存储介质。其中,该方法包括:确定待校正像素相应的第一色彩像素和第二色彩像素,第一色彩像素为与待校正像素在同一通道的像素,第二色彩像素为与待校正像素不在同一通道的同色像素;根据第一色彩像素计算待校正像素在当前位置的多个梯度值;根据第二色彩像素计算多个第二色彩像素的多个特征值;根据多个梯度值和多个特征值计算待校正像素的色彩平衡校正值,以通过色彩平衡校正值对待校正像素进行色彩平衡校正。本申请实施例通过根据多个梯度值和多个特征值对待校正像素的矫正值做出多种预测,并基于该多个梯度值和多个特征值得到的色彩平衡校正值,能够提高该色彩平衡校正值的准确性。
The present application provides a color balance correction method, device, electronic equipment and storage medium. Wherein, the method includes: determining the first color pixel and the second color pixel corresponding to the pixel to be corrected, the first color pixel is a pixel in the same channel as the pixel to be corrected, and the second color pixel is a pixel in a different channel from the pixel to be corrected Pixels of the same color; calculate multiple gradient values of the pixel to be corrected at the current position according to the first color pixel; calculate multiple eigenvalues of multiple second color pixels according to the second color pixel; calculate according to multiple gradient values and multiple eigenvalues The color balance correction value of the pixel to be corrected, so as to perform color balance correction on the pixel to be corrected by the color balance correction value. In this embodiment of the present application, various predictions are made on the correction value of the pixel to be corrected based on multiple gradient values and multiple eigenvalues, and the color balance correction value obtained based on the multiple gradient values and multiple eigenvalues can improve the color balance. Accuracy of balance correction values.
Description
技术领域technical field
本申请涉及图像处理领域,具体而言,涉及一种色彩平衡校正方法、装置、电子设备及存储介质。The present application relates to the field of image processing, in particular, to a color balance correction method, device, electronic equipment and storage medium.
背景技术Background technique
由于传感器内部存在串扰现象,即邻近像素的光通过某种方式泄露至当前像素,而影响了当前像素的像素值。受传感器的制造工艺的影响,上述光的泄露程度在横向和纵向是不同的,进而会造成同色像素对同样的光源,有不同的表现,因而在最后的成像中,图像上就会出现网格状的瑕疵,造成严重的画质问题。Due to the crosstalk phenomenon inside the sensor, that is, the light of adjacent pixels leaks to the current pixel in some way, which affects the pixel value of the current pixel. Affected by the manufacturing process of the sensor, the above-mentioned light leakage degree is different in the horizontal and vertical directions, which will cause the same color pixels to have different performances for the same light source, so in the final imaging, a grid will appear on the image shape defects, causing serious picture quality problems.
目前,克服上述问题常用的做法是对串扰进行分析,校正,进而缓解色彩不平衡的问题。或利用图对图像的分析来人为判断是否存在色彩不平衡,从而进行相应的校正。但是串扰的成因十分复杂,涉及到镜头、传感器、光源等各种因素。因此,通过分析串扰的程度对色彩不平衡进行校正,是比较不准确的。而通过图像分析的手段进行色彩不平衡的校正,因不能判断图像上同色像素不同的表现是来自于色彩不平衡的问题,还是真的是纹理本身的问题。如果出现误判,则可能造成图像的解析力差等问题。At present, the common way to overcome the above-mentioned problems is to analyze and correct the crosstalk, so as to alleviate the problem of color imbalance. Or use image analysis to artificially judge whether there is color imbalance, so as to make corresponding corrections. However, the causes of crosstalk are very complex, involving various factors such as lenses, sensors, and light sources. Therefore, it is relatively inaccurate to correct the color imbalance by analyzing the degree of crosstalk. However, image analysis is used to correct color imbalance, because it is impossible to judge whether the different performance of pixels of the same color on the image comes from color imbalance or is really a problem with the texture itself. If there is a misjudgment, it may cause problems such as poor resolution of the image.
发明内容Contents of the invention
有鉴于此,本申请实施例的目的在于提供一种色彩平衡校正方法、装置、电子设备及可读存储介质,能够提高该色彩平衡校正值的准确性,进而提高色彩不平衡校正的准确性。In view of this, the purpose of the embodiments of the present application is to provide a color balance correction method, device, electronic device and readable storage medium, which can improve the accuracy of the color balance correction value, and further improve the accuracy of color imbalance correction.
第一方面,本申请实施例提供了一种色彩平衡校正方法,包括:确定待校正像素相应的第一色彩像素和第二色彩像素,所述第一色彩像素为与所述待校正像素在同一通道的像素,所述第二色彩像素为与所述待校正像素不在同一通道的同色像素;根据所述第一色彩像素计算所述待校正像素在当前位置的多个梯度值;根据所述第二色彩像素计算多个所述第二色彩像素的多个特征值;根据多个所述梯度值和多个所述特征值计算所述待校正像素的色彩平衡校正值,以通过所述色彩平衡校正值对所述待校正像素进行色彩平衡校正。In the first aspect, the embodiment of the present application provides a color balance correction method, including: determining the first color pixel and the second color pixel corresponding to the pixel to be corrected, the first color pixel is the same as the pixel to be corrected channel, the second color pixel is the same color pixel that is not in the same channel as the pixel to be corrected; calculate multiple gradient values of the pixel to be corrected at the current position according to the first color pixel; according to the first color pixel Calculating a plurality of eigenvalues of a plurality of pixels of the second color for two color pixels; calculating a color balance correction value of the pixel to be corrected according to a plurality of gradient values and a plurality of eigenvalues, so as to pass the color balance The correction value performs color balance correction on the pixel to be corrected.
在上述实现过程中,通过根据第一色彩像素计算多个梯度值,第二色彩像素计算多个特征值,以通过多个梯度值和多个特征值对待校正像素的校正值做多种预测,并基于该多个梯度值和多个特征值得到的色彩平衡校正值,能够提高该色彩平衡校正值的准确性,进而提高色彩平衡矫正的准确性。In the above implementation process, multiple gradient values are calculated according to the pixels of the first color, and multiple eigenvalues are calculated for the pixels of the second color, so as to make multiple predictions of the correction value of the pixel to be corrected through the multiple gradient values and the multiple eigenvalues, And the color balance correction value obtained based on the multiple gradient values and the multiple feature values can improve the accuracy of the color balance correction value, thereby improving the accuracy of the color balance correction.
在一个实施例中,所述根据多个所述梯度值和多个所述特征值计算所述待校正像素的色彩平衡校正值,以通过所述色彩平衡校正值对所述待校正像素进行色彩平衡校正,包括:将所述多个所述梯度值和多个所述特征值进行排列组合后相加,以得到所述第二色彩像素的估计值;根据所述第二色彩像素的估计值和所述待校正像素的像素值计算所述待校正像素的色彩平衡校正值,以通过所述色彩平衡校正值对所述待校正像素进行色彩平衡校正。In one embodiment, the color balance correction value of the pixel to be corrected is calculated according to the plurality of gradient values and the plurality of feature values, so as to color the pixel to be corrected by using the color balance correction value Balance correction, comprising: arranging and combining the plurality of gradient values and the plurality of feature values and adding them together to obtain an estimated value of the pixel of the second color; according to the estimated value of the pixel of the second color and calculating a color balance correction value of the pixel to be corrected with the pixel value of the pixel to be corrected, so as to perform color balance correction on the pixel to be corrected by using the color balance correction value.
在上述实现过程中,通过多个梯度值和多个特征值进行排列组合,得到多个第二色彩像素估计值,可以对该待校正像素的校正值做多种预测,提高了对该待校正像素的校正值预测的准确性。In the above implementation process, multiple estimated values of pixels of the second color are obtained by arranging and combining multiple gradient values and multiple eigenvalues, and various predictions can be made on the correction value of the pixel to be corrected, which improves the accuracy of the pixel to be corrected. Pixel-corrected value prediction accuracy.
在一个实施例中,所述根据所述第二色彩像素的估计值和所述待校正像素的像素值计算所述待校正像素的色彩平衡校正值,以通过所述色彩平衡校正值对所述待校正像素进行色彩平衡校正,包括:将所述第二色彩像素的估计值和所述待校正像素的像素值进行滤波处理,以得到所述第二色彩像素的最终估计值;将所述第二色彩像素的最终估计值和所述待校正像素的像素值进行加权平均处理,得到所述待校正像素的色彩平衡校正值,以通过所述色彩平衡校正值对所述待校正像素进行色彩平衡校正。In one embodiment, the color balance correction value of the pixel to be corrected is calculated according to the estimated value of the pixel of the second color and the pixel value of the pixel to be corrected, so that the color balance correction value can be used to correct the Performing color balance correction on the pixel to be corrected includes: performing filtering processing on the estimated value of the second color pixel and the pixel value of the pixel to be corrected to obtain the final estimated value of the second color pixel; Perform weighted average processing on the final estimated value of the two-color pixel and the pixel value of the pixel to be corrected to obtain a color balance correction value of the pixel to be corrected, so as to perform color balance on the pixel to be corrected by using the color balance correction value Correction.
在上述实现过程中,在确定出第二色彩像素的估计值后,再对该第二色彩像素的估计值进行滤波处理以消除干扰,进而提高了第二色彩像素的最终估计值的准确性。再通过对第二色彩像素的最终估计值和待校正像素的像素值进行加权平均,平衡了待校正像素和第二色彩像素之间的差值,提高了待校正像素进行色彩平衡校正的准确性。In the above implementation process, after the estimated value of the pixel of the second color is determined, the estimated value of the pixel of the second color is filtered to eliminate interference, thereby improving the accuracy of the final estimated value of the pixel of the second color. Then, by weighting the final estimated value of the second color pixel and the pixel value of the pixel to be corrected, the difference between the pixel to be corrected and the second color pixel is balanced, and the accuracy of color balance correction for the pixel to be corrected is improved. .
在一个实施例中,若所述待校正像素为目标窗口的边缘像素,所述确定待校正像素相应的第一色彩像素和第二色彩像素之前,所述方法还包括:以所述待校正像素相邻的边缘像素所在轴为中心轴,通过待校正像素有像素侧的像素将待校正像素空白侧的像素进行镜像补齐。In one embodiment, if the pixel to be corrected is an edge pixel of the target window, before determining the first color pixel and the second color pixel corresponding to the pixel to be corrected, the method further includes: using the pixel to be corrected The axis where the adjacent edge pixels are located is the central axis, and the pixels on the blank side of the pixel to be corrected are mirror-compensated by the pixel on the pixel side of the pixel to be corrected.
在上述实现过程中,对于目标窗口的边缘的待校正像素,在进行色彩平衡校正值计算之前,先通过有像素侧的像素将空白侧的像素进行镜像补齐,以在对待校正像素进行计算时,可以根据目标窗口中的多个像素对待校正像素的校正值做多种预测,能够提高了色彩平衡校正值的准确性。In the above implementation process, for the pixels to be corrected on the edge of the target window, before the calculation of the color balance correction value, the pixels on the blank side are mirrored to complement the pixels on the side with pixels, so that when the pixels to be corrected are calculated , multiple predictions can be made on the correction values of the pixels to be corrected according to the multiple pixels in the target window, which can improve the accuracy of the color balance correction value.
在一个实施例中,所述待校正像素为绿色像素。In one embodiment, the pixel to be corrected is a green pixel.
在上述实现过程中,由于绿色像素在每个像素中存在两个通道,这两个绿色像素通道因为横纵向临近不同,其像素值不同,进而造成两个通道的绿色像素不平衡。通过对该绿色像素进行色彩平衡校正值,以通过该色彩平衡校正值对绿色像素进行绿平衡校正,平衡了两个通道的绿色像素之间的像素差,提高了画质。In the above implementation process, since there are two channels in each pixel of the green pixel, the pixel values of the two green pixel channels are different due to the difference in the horizontal and vertical proximity, which causes the green pixels of the two channels to be unbalanced. By performing the color balance correction value on the green pixel, the green balance correction is performed on the green pixel through the color balance correction value, so that the pixel difference between the green pixels of the two channels is balanced, and the image quality is improved.
在一个实施例中,所述根据所述第一色彩像素计算待校正像素在当前位置的多个梯度值,包括:根据所述第一色彩像素中的部分所述第一色彩像素计算待校正像素在当前位置的多个梯度值。In one embodiment, the calculating multiple gradient values of the pixel to be corrected at the current position according to the first color pixel includes: calculating the pixel to be corrected according to a part of the first color pixel in the first color pixel Multiple gradient values at the current position.
在上述实现过程中,通过根据第一色彩像素中的部分第一色彩像素计算待校正像素在当前位置的多个梯度值,增加了该梯度值计算的多种可能,以得到更多的梯度值,通过多个梯度值可以对待校正像素的校正值做多种预测,提高了对该待校正像素的校正值预测的准确性。In the above implementation process, by calculating multiple gradient values of the pixel to be corrected at the current position according to part of the first color pixels in the first color pixels, multiple possibilities for the gradient value calculation are increased to obtain more gradient values , multiple predictions of the correction value of the pixel to be corrected can be made through multiple gradient values, which improves the accuracy of prediction of the correction value of the pixel to be corrected.
在一个实施例中,所述根据所述第二色彩像素计算多个所述第二色彩像素的特征值,包括:根据所述第二色彩像素中的部分所述第二色彩像素计算多个所述第二色彩像素的特征值。In one embodiment, the calculating the feature values of the plurality of second color pixels according to the second color pixels includes: calculating a plurality of the second color pixels according to part of the second color pixels in the second color pixels The feature value of the second color pixel.
在上述实现过程中,通过根据第二色彩像素中的部分第二色彩像素计算多个第二色彩像素的特征值,增加了该特征值计算的多种可能,以得到更多的特征值,通过多个特征值可以对待校正像素的校正值做多种预测,提高了对该待校正像素的校正值预测的准确性。In the above implementation process, by calculating the eigenvalues of multiple second color pixels according to part of the second color pixels in the second color pixels, multiple possibilities for the calculation of the eigenvalues are increased to obtain more eigenvalues, by Multiple feature values can make multiple predictions of the correction value of the pixel to be corrected, which improves the accuracy of prediction of the correction value of the pixel to be corrected.
第二方面,本申请实施例还提供一种色彩平衡校正装置,包括:确定模块,用于确定待校正像素相应的第一色彩像素和第二色彩像素,所述第一色彩像素为与所述待校正像素在同一通道的像素,所述第二色彩像素为与所述待校正像素不在同一通道的同色像素;第一计算模块,用于根据所述第一色彩像素计算所述待校正像素在当前位置的多个梯度值;第二计算模块,用于根据所述第二色彩像素计算多个所述第二色彩像素的特征值;第三计算模块,用于根据多个所述梯度值和多个所述特征值计算所述待校正像素的色彩平衡校正值,以通过所述色彩平衡校正值对所述待校正像素进行色彩平衡校正。In the second aspect, the embodiment of the present application also provides a color balance correction device, including: a determination module, configured to determine a first color pixel and a second color pixel corresponding to the pixel to be corrected, the first color pixel is the same as the The pixel to be corrected is in the same channel, and the pixel of the second color is a pixel of the same color that is not in the same channel as the pixel to be corrected; the first calculation module is used to calculate the pixel to be corrected according to the pixel of the first color A plurality of gradient values at the current position; a second calculation module, configured to calculate a plurality of feature values of the second color pixel according to the second color pixel; a third calculation module, configured to calculate a plurality of eigenvalues of the second color pixel according to the plurality of gradient values and A color balance correction value of the pixel to be corrected is calculated for the plurality of eigenvalues, so as to perform color balance correction on the pixel to be corrected by using the color balance correction value.
第三方面,本申请实施例还提供一种电子设备,包括:处理器、存储器,所述存储器存储有所述处理器可执行的机器可读指令,当电子设备运行时,所述机器可读指令被所述处理器执行时执行上述第一方面,或第一方面的任一种可能的实施方式中的方法的步骤。In the third aspect, the embodiment of the present application also provides an electronic device, including: a processor, a memory, the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the machine-readable When the instructions are executed by the processor, the above first aspect, or the steps of the method in any possible implementation manner of the first aspect are executed.
第四方面,本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,该计算机程序被处理器运行时执行上述第一方面,或第一方面的任一种可能的实施方式中色彩平衡校正方法的步骤。In the fourth aspect, the embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned first aspect, or any of the first aspects, can be executed. Steps of a color balance correction method in a possible implementation.
为使本申请的上述目的、特征和优点能更明显易懂,下文特举实施例,并配合所附附图,作详细说明如下。In order to make the above objects, features and advantages of the present application more comprehensible, the following specific embodiments are described in detail in conjunction with the accompanying drawings.
附图说明Description of drawings
为了更清楚地说明本申请实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本申请的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the accompanying drawings used in the embodiments. It should be understood that the following drawings only show some embodiments of the present application, so It should be regarded as a limitation on the scope, and those skilled in the art can also obtain other related drawings based on these drawings without creative work.
图1为本申请实施例提供的每2x2个像素中色彩像素的分布示意图;FIG. 1 is a schematic diagram of the distribution of color pixels in every 2x2 pixels provided by the embodiment of the present application;
图2为本申请实施例提供的色彩平衡校正方法的流程图;FIG. 2 is a flow chart of a color balance correction method provided in an embodiment of the present application;
图3为本申请实施例提供的5x5个像素中色彩像素的分布示意图;3 is a schematic diagram of the distribution of color pixels in 5x5 pixels provided by the embodiment of the present application;
图4为本申请实施例提供的4x6个像素中色彩像素的分布示意图;FIG. 4 is a schematic diagram of the distribution of color pixels in 4x6 pixels provided by the embodiment of the present application;
图5为本申请实施例提供的4x6个像素中色彩像素的分布示意图中待校正像素为Gb01,进行镜像补齐后的图像;FIG. 5 is a schematic diagram of the distribution of color pixels in 4x6 pixels provided by the embodiment of the present application. The pixel to be corrected is Gb01, and the image after mirroring is completed;
图6为本申请实施例提供的4x6个像素中色彩像素的分布示意图中待校正像素为Gr06,进行镜像补齐后的图像;6 is a schematic diagram of the distribution of color pixels in 4x6 pixels provided by the embodiment of the present application. The pixel to be corrected is Gr06, and the image after mirroring is completed;
图7为本申请实施例提供的10x10个像素中色彩像素的分布示意图;7 is a schematic diagram of the distribution of color pixels in 10x10 pixels provided by the embodiment of the present application;
图8为本申请实施例提供的色彩平衡校正装置的功能模块示意图;FIG. 8 is a schematic diagram of functional modules of a color balance correction device provided by an embodiment of the present application;
图9为本申请实施例提供的电子设备的方框示意图。FIG. 9 is a schematic block diagram of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中附图,对本申请实施例中的技术方案进行描述。The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。同时,在本申请的描述中,术语“第一”、“第二”等仅用于区分描述,而不能理解为指示或暗示相对重要性。It should be noted that like numerals and letters denote similar items in the following figures, therefore, once an item is defined in one figure, it does not require further definition and explanation in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second" and the like are only used to distinguish descriptions, and cannot be understood as indicating or implying relative importance.
为了方便理解,首先对本申请实施例的适用场景进行详细阐述。For the convenience of understanding, the applicable scenarios of the embodiments of the present application are first described in detail.
相机的图像传感器为了增加单个像素的感光量,通常采用Bayer Pattern(中文名称:拜尔阵列)结构。即通过光学掩膜,使图像每一个像素只接受红,绿,蓝中某一种波长的光。因此,图像传感器的输出图像的每个像素也可分成红,绿,蓝三种。又因为自然光中,人眼对绿光的敏感度比较高,所以Bayer Pattern中的绿光像素比例是红,蓝的两倍。其结果,就使得图像传感器的输出中,每2x2个像素,以类似如图1中的这种形式出现,图1中R为红色像素、B为蓝色像素、Gr为绿色像素,其横向近邻为红色像素,纵向近邻为蓝色像素、Gb为绿色像素,其横向近邻为蓝色像素,纵向近邻为红色像素。In order to increase the light sensitivity of a single pixel, the image sensor of the camera usually adopts a Bayer Pattern (Chinese name: Bayer array) structure. That is, through an optical mask, each pixel of the image can only receive light of a certain wavelength among red, green, and blue. Therefore, each pixel of the output image of the image sensor can also be divided into three types: red, green, and blue. And because the human eye is more sensitive to green light in natural light, the ratio of green light pixels in the Bayer Pattern is twice that of red and blue. As a result, every 2x2 pixels in the output of the image sensor appear in a form similar to that shown in Figure 1. In Figure 1, R is a red pixel, B is a blue pixel, and Gr is a green pixel, and its horizontal neighbors is a red pixel, its vertical neighbor is a blue pixel, Gb is a green pixel, its horizontal neighbor is a blue pixel, and its vertical neighbor is a red pixel.
从图1中可以发现,Gr,Gb同为绿色像素,只是其横纵向的近邻不同。显然,Gr在横向受到R的串扰,纵向受到B的串扰。Gb在横向受到B的串扰,纵向受到R的串扰。基于这样的区别,导致同为绿色像素的Gr,Gb,对同样的光源,有不同的表现,即像素值不同。It can be found from Figure 1 that Gr and Gb are both green pixels, but their horizontal and vertical neighbors are different. Obviously, Gr is crosstalked by R in the horizontal direction, and crosstalked by B in the vertical direction. Gb is crosstalked by B in the horizontal direction, and crosstalked by R in the vertical direction. Based on this difference, Gr and Gb, which are both green pixels, have different performances for the same light source, that is, different pixel values.
若在图像中遍布这样的Gr,Gb,当这两种像素的表现不同时,在最后的成像中,图像上就会出现网格状的瑕疵,造成严重的画质问题。这种问题即为色彩不平衡。If such Gr and Gb are all over the image, when the performance of these two pixels is different, in the final imaging, grid-like defects will appear on the image, causing serious image quality problems. This problem is known as color imbalance.
有鉴于此,本申请发明人提出一种色彩平衡校正方法,通过根据与待校正像素在同一通道的像素计算待校正像素在当前位置的多个梯度值,以及与待校正像素不在同一通道的同色像素计算多个第二色彩像素的多个特征值,并通过该多个特征值和梯度值对待校正像素的矫正值做出多种预测,然后对这多种预测进行统合,能够得到更加准确的色彩平衡校正值,并通过该色彩平衡校正值能够对色彩不平衡进行校正,提高了画质。In view of this, the inventor of the present application proposes a color balance correction method, by calculating multiple gradient values of the pixel to be corrected at the current position according to the pixels in the same channel as the pixel to be corrected, and the same color as the pixel to be corrected is not in the same channel The pixel calculates multiple eigenvalues of multiple second color pixels, and makes multiple predictions of the correction value of the pixel to be corrected through the multiple eigenvalues and gradient values, and then integrates these multiple predictions to obtain a more accurate The color balance correction value, and the color imbalance can be corrected by using the color balance correction value, thereby improving the image quality.
请参阅图2,是本申请实施例提供的色彩平衡校正方法的流程图。下面将对图2所示的具体流程进行详细阐述。Please refer to FIG. 2 , which is a flow chart of the color balance correction method provided by the embodiment of the present application. The specific process shown in FIG. 2 will be described in detail below.
步骤201,确定待校正像素相应的第一色彩像素和第二色彩像素。
其中,第一色彩像素为与待校正像素在同一通道的像素,第二色彩像素为与待校正像素不在同一通道的同色像素。Wherein, the pixel of the first color is a pixel in the same channel as the pixel to be corrected, and the pixel of the second color is a pixel of the same color not in the same channel as the pixel to be corrected.
目前比较常用的Bayer Pattern结构中,绿色像素比例是红色和蓝色的两倍。因此,在图像传感器的输出中,每2×2个像素中,存在两个绿色像素通道。这两个绿色像素通道因为横纵向邻近不同,其像素值不同,进而造成两个通道的绿色像素不平衡,则这两个通道中的任意绿色像素可以为待校正像素。In the currently commonly used Bayer Pattern structure, the proportion of green pixels is twice that of red and blue. Therefore, in the output of the image sensor, there are two green pixel channels for every 2x2 pixels. Because the horizontal and vertical proximity of the two green pixel channels are different, the pixel values are different, which causes the green pixels of the two channels to be unbalanced, and any green pixel in the two channels can be a pixel to be corrected.
这里的同一通道是指在横向和纵向受到的串扰相同的通道。下面以BayerPattern结构为例结合图示进一步描述待校正像素、第一像素和第二像素之间的关系。如图3所示,图3中,Gr00、Gr02、Gr04、Gr20、Gr22、Gr24、Gr40、Gr42以及Gr44为同一通道的像素,Gb11、Gb13、Gb31、Gb33为同一通道的像素。The same channel here refers to a channel that receives the same crosstalk in the horizontal and vertical directions. The relationship between the pixel to be corrected, the first pixel and the second pixel will be further described below by taking the BayerPattern structure as an example in conjunction with the diagram. As shown in FIG. 3, in FIG. 3, Gr00, Gr02, Gr04, Gr20, Gr22, Gr24, Gr40, Gr42, and Gr44 are pixels of the same channel, and Gb11, Gb13, Gb31, and Gb33 are pixels of the same channel.
示例性地,若待校正像素为Gr22,则第一色彩像素为Gr00、Gr02、Gr04、Gr20、Gr24、Gr40、Gr42,第二色彩像素为Gb11、Gb13、Gb31、Gb33。若待校正像素为Gb11,则第一色彩像素为Gb13、Gb31、Gb33,第二色彩像素为Gr00、Gr02、Gr04、Gr20、Gr24、Gr40、Gr42。Exemplarily, if the pixel to be corrected is Gr22, the first color pixels are Gr00, Gr02, Gr04, Gr20, Gr24, Gr40, Gr42, and the second color pixels are Gb11, Gb13, Gb31, Gb33. If the pixel to be corrected is Gb11, the first color pixels are Gb13, Gb31, Gb33, and the second color pixels are Gr00, Gr02, Gr04, Gr20, Gr24, Gr40, Gr42.
上述的第一色彩像素和第二色彩像素均为图像窗口内的色彩像素。The above-mentioned first color pixels and second color pixels are color pixels in the image window.
可以理解地,除上述常用的Bayer Pattern结构外,像sensor结构。Sensor结构中黄色像素比例是红色和蓝色的两倍。因此,在图像传感器的输出中,每2×2个像素中,存在两个黄色像素通道。则在这种结构中的待校正像素为黄色像素。Understandably, in addition to the commonly used Bayer Pattern structure mentioned above, it is like a sensor structure. The proportion of yellow pixels in the Sensor structure is twice that of red and blue. Therefore, in the output of the image sensor, there are two channels of yellow pixels for every 2×2 pixels. Then the pixel to be corrected in this structure is a yellow pixel.
上述的待校正像素为黄色像素或绿色像素仅是示例性地,该待校正像素的确定可以根据图像传感器的结构来确定,本申请不做具体限定。It is only exemplary that the pixel to be corrected is a yellow pixel or a green pixel, and the determination of the pixel to be corrected can be determined according to the structure of the image sensor, which is not specifically limited in this application.
步骤202,根据第一色彩像素计算待校正像素在当前位置的多个梯度值。
这里的多个梯度值可以通过索贝尔算子、拉普拉斯算子等算子进行计算。The multiple gradient values here can be calculated by operators such as Sobel operator and Laplacian operator.
示例性地,如图3所示,若图3中待校正像素为Gr22,则通过第一色彩像素计算多个梯度值可以使用如下方法进行计算:Exemplarily, as shown in FIG. 3, if the pixel to be corrected in FIG. 3 is Gr22, the calculation of multiple gradient values by the first color pixel can be performed using the following method:
Gr_Grad_1=Gr22-(Gr02+Gr20+Gr24+Gr42)/4.0;Gr_Grad_1=Gr22-(Gr02+Gr20+Gr24+Gr42)/4.0;
Gr_Grad_2=Gr22-(Gr00+Gr04+Gr040+Gr44)/4.0;Gr_Grad_2=Gr22-(Gr00+Gr04+Gr040+Gr44)/4.0;
其中,Gr_Grad_1为第一梯度值,Gr_Grad_2为第二梯度值,Gr00、Gr02、Gr04、Gr20、Gr22、Gr24、Gr40、Gr42、Gr44为各个像素的像素值。Wherein, Gr_Grad_1 is the first gradient value, Gr_Grad_2 is the second gradient value, and Gr00, Gr02, Gr04, Gr20, Gr22, Gr24, Gr40, Gr42, and Gr44 are the pixel values of each pixel.
当然,除上述算法外,通过第一色彩像素计算多个梯度值还可以使用如下方法进行计算:Of course, in addition to the above algorithm, the calculation of multiple gradient values through the first color pixel can also be calculated using the following method:
Gr_Grad_3=Gr22-(Gr20+Gr24)/2.0;Gr_Grad_3=Gr22-(Gr20+Gr24)/2.0;
Gr_Grad_4=Gr22-(Gr02+Gr42)/2.0;Gr_Grad_4=Gr22-(Gr02+Gr42)/2.0;
其中,Gr_Grad_3为第三梯度值,Gr_Grad_4为第四梯度值,Gr02、Gr20、Gr22、Gr24、Gr42为各个像素的像素值。Wherein, Gr_Grad_3 is the third gradient value, Gr_Grad_4 is the fourth gradient value, and Gr02, Gr20, Gr22, Gr24, and Gr42 are the pixel values of each pixel.
可以理解地,上述通过第一色彩像素计算多个梯度值的算法仅是示例性地,通过第一色彩像素计算多个梯度值的计算方法可以根据实际情况进行调整,本申请不做具体限制。It can be understood that the above-mentioned algorithm for calculating multiple gradient values through the first color pixels is only exemplary, and the calculation method for calculating multiple gradient values through the first color pixels can be adjusted according to actual conditions, and this application does not make specific limitations.
步骤203,根据第二色彩像素计算多个第二色彩像素的多个特征值。
这里的多个特征值可以通过平均值、加权平均值、待方向的平均值等方法进行计算。The multiple eigenvalues here can be calculated by methods such as average value, weighted average value, and average value of the direction to be treated.
示例性地,如图3所示,若图3中待校正像素为Gr22,则通过第二色彩像素计算多个特征值可以使用如下方法进行计算:Exemplarily, as shown in FIG. 3, if the pixel to be corrected in FIG. 3 is Gr22, then the calculation of multiple eigenvalues by the second color pixel can be calculated using the following method:
Gb_Val_1=(Gb11+Gb13+Gb31+Gb33)/4.0;Gb_Val_1=(Gb11+Gb13+Gb31+Gb33)/4.0;
Gb_Val_2=(Gb11+Gb33)/2.0;Gb_Val_2=(Gb11+Gb33)/2.0;
Gb_Val_3=(Gb31+Gb13)/2.0;Gb_Val_3=(Gb31+Gb13)/2.0;
其中,Gb_Val_1为第一特征值,Gb_Val_2为第二特征值,Gb_Val_3为第三特征值,Gb11、Gb13、Gb31、Gb33为各个像素的像素值。Wherein, Gb_Val_1 is the first eigenvalue, Gb_Val_2 is the second eigenvalue, Gb_Val_3 is the third eigenvalue, and Gb11, Gb13, Gb31, Gb33 are the pixel values of each pixel.
当然,除上述方法外,通过第二色彩像素计算多个特征值还可以使用如下方法进行计算:Of course, in addition to the above method, the calculation of multiple eigenvalues through the second color pixel can also be calculated using the following method:
Gb_Val_4=Medium_Filter(Gb11,Gb13+Gb31+Gb33);Gb_Val_4=Medium_Filter(Gb11,Gb13+Gb31+Gb33);
Gb_Val_5=Max((Gb11+Gb33)/2.0,(Gb31+Gb13)/2.0);Gb_Val_5=Max((Gb11+Gb33)/2.0, (Gb31+Gb13)/2.0);
其中,Gr_Grad_4为第四特征值,Gr_Grad_5为第五特征值,Gb11、Gb13、Gb31、Gb33为各个像素的像素值。Wherein, Gr_Grad_4 is the fourth feature value, Gr_Grad_5 is the fifth feature value, and Gb11, Gb13, Gb31, and Gb33 are the pixel values of each pixel.
可以理解地,上述通过第二色彩像素计算多个特征值的算法仅是示例性地,通过第二色彩像素计算多个特征值的计算方法可以根据实际情况进行调整,本申请不做具体限制。It can be understood that the above-mentioned algorithm for calculating multiple eigenvalues by using pixels of the second color is only exemplary, and the calculation method for calculating multiple eigenvalues by using pixels of the second color can be adjusted according to actual conditions, and this application does not make specific limitations.
步骤204,根据多个梯度值和多个特征值计算待校正像素的色彩平衡校正值,以通过色彩平衡校正值对待校正像素进行色彩平衡校正。
这里的色彩平衡校正值为待校正像素的校正后的像素值。示例性地,若该色彩平衡校正值为A,则可以通过该色彩平衡校正值替换该待校正像素的像素值,即该待校正像素校正后的像素值也为A。Here, the color balance correction value is the corrected pixel value of the pixel to be corrected. Exemplarily, if the color balance correction value is A, the pixel value of the pixel to be corrected can be replaced by the color balance correction value, that is, the corrected pixel value of the pixel to be corrected is also A.
在上述实现过程中,通过根据第一色彩像素计算多个梯度值,第二色彩像素计算多个特征值,以通过多个梯度值和多个特征值对待校正像素的校正值做多种预测,并基于该多个梯度值和多个特征值得到的色彩平衡校正值,能够提高该色彩平衡校正值的准确性,进而提高色彩平衡矫正的准确性。In the above implementation process, multiple gradient values are calculated according to the pixels of the first color, and multiple eigenvalues are calculated for the pixels of the second color, so as to make multiple predictions of the correction value of the pixel to be corrected through the multiple gradient values and the multiple eigenvalues, And the color balance correction value obtained based on the multiple gradient values and the multiple feature values can improve the accuracy of the color balance correction value, thereby improving the accuracy of the color balance correction.
在一种可能的实现方式中,步骤204,包括:将多个梯度值和多个特征值进行排列组合后相加,以得到第二色彩像素的估计值;根据第二色彩像素的估计值和待校正像素的像素值计算待校正像素的色彩平衡校正值,以通过色彩平衡校正值对待校正像素进行色彩平衡校正。In a possible implementation manner,
可以理解地,若梯度值为M个,特征值为N个,则可以得到M×N个第二色彩像素的估计值。Understandably, if there are M gradient values and N feature values, then M×N estimated values of the second color pixels can be obtained.
示例性地,若梯度值包括:第一梯度值Gr_Grad_1和第二梯度值Gr_Grad_2。特征值包括:第一特征值Gb_Val_1,第二特征值Gb_Val_2还和第三特征值Gb_Val_3。则将该2个梯度值和3个特征值进行排列组合后相加可以得到如下6中第二色彩像素的估计值:Exemplarily, if the gradient value includes: a first gradient value Gr_Grad_1 and a second gradient value Gr_Grad_2. The characteristic values include: a first characteristic value Gb_Val_1, a second characteristic value Gb_Val_2 and a third characteristic value Gb_Val_3. Then the 2 gradient values and 3 eigenvalues are arranged and combined and then added together to obtain the estimated value of the second color pixel in the following 6:
Gb_Est_1=Gr_Grad_1+Gb_Val_1;Gb_Est_1=Gr_Grad_1+Gb_Val_1;
Gb_Est_2=Gr_Grad_1+Gb_Val_2;Gb_Est_2=Gr_Grad_1+Gb_Val_2;
Gb_Est_3=Gr_Grad_1+Gb_Val_3;Gb_Est_3=Gr_Grad_1+Gb_Val_3;
Gb_Est_4=Gr_Grad_2+Gb_Val_1;Gb_Est_4=Gr_Grad_2+Gb_Val_1;
Gb_Est_5=Gr_Grad_2+Gb_Val_2;Gb_Est_5=Gr_Grad_2+Gb_Val_2;
Gb_Est_6=Gr_Grad_2+Gb_Val_3;Gb_Est_6=Gr_Grad_2+Gb_Val_3;
其中,Gb_Est_1、Gb_Est_2、Gb_Est_3、Gb_Est_4、Gb_Est_5、Gb_Est_6均为第二色彩像素的估计值。Wherein, Gb_Est_1, Gb_Est_2, Gb_Est_3, Gb_Est_4, Gb_Est_5, and Gb_Est_6 are estimated values of pixels of the second color.
在上述实现过程中,通过多个梯度值和多个特征值进行排列组合,得到多个第二色彩像素估计值,可以对该待校正像素的校正值做多种预测,提高了对该待校正像素的校正值预测的准确性。In the above implementation process, multiple estimated values of pixels of the second color are obtained by arranging and combining multiple gradient values and multiple eigenvalues, and various predictions can be made on the correction value of the pixel to be corrected, which improves the accuracy of the pixel to be corrected. Pixel-corrected value prediction accuracy.
在一种可能的实现方式中,根据第二色彩像素的估计值和待校正像素的像素值计算待校正像素的色彩平衡校正值,以通过色彩平衡校正值对待校正像素进行色彩平衡校正,包括:将第二色彩像素的估计值和待校正像素的像素值进行滤波处理,以得到第二色彩像素的最终估计值;将第二色彩像素的最终估计值和待校正像素的像素值进行加权平均处理,得到待校正像素的色彩平衡校正值,以通过色彩平衡校正值对待校正像素进行色彩平衡校正。In a possible implementation manner, calculating the color balance correction value of the pixel to be corrected according to the estimated value of the second color pixel and the pixel value of the pixel to be corrected, so as to perform color balance correction on the pixel to be corrected by using the color balance correction value, including: Perform filtering processing on the estimated value of the second color pixel and the pixel value of the pixel to be corrected to obtain the final estimated value of the second color pixel; perform weighted average processing on the final estimated value of the second color pixel and the pixel value of the pixel to be corrected , to obtain the color balance correction value of the pixel to be corrected, so as to perform color balance correction on the pixel to be corrected by the color balance correction value.
这里的滤波处理可以是低通滤波、中值滤波、最大值滤波、最小值滤波等。该滤波处理方式可以根据实际情况进行选择,本申请不做具体限制。The filtering process here may be low-pass filtering, median filtering, maximum filtering, minimum filtering, and the like. The filtering processing manner may be selected according to actual conditions, and is not specifically limited in this application.
示例性地,若对上述示例中的第二色彩像素的估计值和待校正像素进行中值滤波,可以得到如下结果:Exemplarily, if median filtering is performed on the estimated value of the second color pixel and the pixel to be corrected in the above example, the following result can be obtained:
Gb_Est=Median_Filter(Gr22,Gb_Est_1,Gb_Est_2,Gb_Est_3,Gb_Est_4,Gb_Est_5,Gb_Est_6);Gb_Est = Median_Filter(Gr22, Gb_Est_1, Gb_Est_2, Gb_Est_3, Gb_Est_4, Gb_Est_5, Gb_Est_6);
其中,Gb_Est为第二色彩像素的最终估计值,Gb_Est_1、Gb_Est_2、Gb_Est_3、Gb_Est_4、Gb_Est_5、Gb_Est_6均为第二色彩像素的估计值,Gr22为待校正像素的像素值。Wherein, Gb_Est is the final estimated value of the second color pixel, Gb_Est_1, Gb_Est_2, Gb_Est_3, Gb_Est_4, Gb_Est_5, Gb_Est_6 are the estimated values of the second color pixel, Gr22 is the pixel value of the pixel to be corrected.
在将第二色彩像素的估计值和待校正像素进行中值滤波后,将该第二色彩像素的最终估计值和待校正像素的像素值进行加权平均,得到待校正像素的色彩平衡校正值,示例如下:After the estimated value of the second color pixel and the pixel to be corrected are subjected to median filtering, the final estimated value of the second color pixel and the pixel value of the pixel to be corrected are weighted and averaged to obtain the color balance correction value of the pixel to be corrected, Examples are as follows:
Gr22_GIC=(Gb_Est+Gr22)/2.0;Gr22_GIC=(Gb_Est+Gr22)/2.0;
其中,Gr22_GIC为待校正像素的色彩平衡校正值,Gb_Est为第二色彩像素的最终估计值,Gr22为待校正像素的像素值。Wherein, Gr22_GIC is the color balance correction value of the pixel to be corrected, Gb_Est is the final estimated value of the second color pixel, and Gr22 is the pixel value of the pixel to be corrected.
在上述实现过程中,在确定出第二色彩像素的估计值后,再对该第二色彩像素的估计值进行滤波处理以消除干扰,进而提高了第二色彩像素的最终估计值的准确性。再通过对第二色彩像素的最终估计值和待校正像素的像素值进行加权平均,平衡了待校正像素和第二色彩像素之间的差值,提高了待校正像素进行色彩平衡校正的准确性。In the above implementation process, after the estimated value of the pixel of the second color is determined, the estimated value of the pixel of the second color is filtered to eliminate interference, thereby improving the accuracy of the final estimated value of the pixel of the second color. Then, by weighting the final estimated value of the second color pixel and the pixel value of the pixel to be corrected, the difference between the pixel to be corrected and the second color pixel is balanced, and the accuracy of color balance correction for the pixel to be corrected is improved. .
在一种可能的实现方式中,若待校正像素为目标窗口的边缘像素,步骤201之前,该方法还包括:以待校正像素相邻的边缘像素所在轴为中心轴,通过待校正像素有像素侧的像素将待校正像素空白侧的像素进行镜像补齐。In a possible implementation, if the pixel to be corrected is an edge pixel of the target window, before
这里的目标窗口为显示图像的图像窗口。The target window here is the image window where the image is displayed.
可以理解地,若待校正像素为目标窗口的边缘像素则该待校正像素在横向或纵向至少有一侧没有色彩像素。为了保证计算得到的待校正像素的色彩平衡校正值更加准确,可以根据已有的色彩像素将没有色彩像素的一侧镜像补齐。It can be understood that if the pixel to be corrected is an edge pixel of the target window, at least one side of the pixel to be corrected has no color pixel in the horizontal or vertical direction. In order to ensure that the calculated color balance correction value of the pixel to be corrected is more accurate, the side without the color pixel can be mirror-compensated according to the existing color pixel.
示例性地,如图4所示,若待校正像素为图4中的Gb01,该Gb01的左侧和上侧均没有色彩像素。该待校正像素相邻的边缘像素即为该待校正像素,则在横向可以以该Gb01所在的像素点所在列为中心轴,将右侧色彩像素镜像补充到左侧。而横向可以以该Gb01所在的像素点所在行为中心轴,将下侧色彩像素镜像补充到上侧,形成如图5所示的图像后,按照步骤201-204对该Gb01的色彩平衡校正值。Exemplarily, as shown in FIG. 4 , if the pixel to be corrected is Gb01 in FIG. 4 , there is no color pixel on the left side and the upper side of the Gb01 . The edge pixel adjacent to the pixel to be corrected is the pixel to be corrected, and in the horizontal direction, the column of the pixel where the Gb01 is located can be taken as the central axis, and the right color pixel is mirrored to the left. In the horizontal direction, the pixel of the Gb01 can be used as the central axis, and the lower side color pixels can be mirrored to the upper side to form an image as shown in FIG.
若待校正像素为图4中的Gr06,该Gr06的左侧均没有色彩像素。该待校正像素相邻的边缘像素即为Gr06左侧的黑色像素,则在横向可以以该Gr06左侧的黑色像素所在列为中心轴,将右侧色彩像素镜像补充到左侧。形成如图6所示的图像后,按照步骤201-204对该Gr06的色彩平衡校正值。If the pixel to be corrected is Gr06 in FIG. 4, there is no color pixel on the left side of Gr06. The edge pixel adjacent to the pixel to be corrected is the black pixel on the left side of Gr06, and in the horizontal direction, the column of the black pixel on the left side of Gr06 can be used as the central axis, and the color pixel on the right side can be mirrored to the left side. After forming the image as shown in FIG. 6 , follow steps 201-204 to correct the color balance value of the Gr06.
可以理解地,上述仅是示例性地,通过待校正像素有像素侧的像素将待校正像素空白侧的像素进行镜像补齐的方式可以根据待校正像素的位置和实际色彩像素的分布情况进行调整,本申请不做具体限制。It can be understood that the above is just an example, and the method of mirror complementing the pixels on the blank side of the pixel to be corrected by the pixel on the side of the pixel to be corrected can be adjusted according to the position of the pixel to be corrected and the distribution of the actual color pixels , this application does not make specific limitations.
在上述实现过程中,对于目标窗口的边缘的待校正像素,在进行色彩平衡校正值计算之前,先通过有像素侧的像素将空白侧的像素进行镜像补齐,以在对待校正像素进行计算时,可以根据目标窗口中的多个像素对待校正像素的校正值做多种预测,能够提高了色彩平衡校正值的准确性。In the above implementation process, for the pixels to be corrected on the edge of the target window, before the calculation of the color balance correction value, the pixels on the blank side are mirrored to complement the pixels on the side with pixels, so that when the pixels to be corrected are calculated , multiple predictions can be made on the correction values of the pixels to be corrected according to the multiple pixels in the target window, which can improve the accuracy of the color balance correction value.
在一种可能的实现方式中,该待校正像素为绿色像素。In a possible implementation manner, the pixel to be corrected is a green pixel.
在上述实现过程中,由于绿色像素在每个像素中存在两个通道,这两个绿色像素通道因为横纵向临近不同,其像素值不同,进而造成两个通道的绿色像素不平衡。通过对该绿色像素进行色彩平衡校正值,以通过该色彩平衡校正值对绿色像素进行绿平衡校正,平衡了两个通道的绿色像素之间的像素差,提高了画质。In the above implementation process, since there are two channels in each pixel of the green pixel, the pixel values of the two green pixel channels are different due to the difference in the horizontal and vertical proximity, which causes the green pixels of the two channels to be unbalanced. By performing the color balance correction value on the green pixel, the green balance correction is performed on the green pixel through the color balance correction value, so that the pixel difference between the green pixels of the two channels is balanced, and the image quality is improved.
在一种可能的实现方式中,步骤202,包括:根据第一色彩像素中的部分第一色彩像素计算待校正像素在当前位置的多个梯度值。In a possible implementation manner,
可以理解地,待校正像素相应的多个第一色彩像素,在通过第一色彩像素进行梯度值计算时,可以通过目标窗口的所有第一色彩像素对该梯度值进行计算,也可以仅通过目标窗口的部分第一色彩像素对该梯度值进行计算。It can be understood that when calculating the gradient value of the plurality of first color pixels corresponding to the pixel to be corrected, the gradient value can be calculated through all the first color pixels of the target window, or only through the target Part of the pixels of the first color in the window calculate the gradient value.
示例性地,如图3所示,若待校正像素为Gr22,则可以通过Gr00、Gr02、Gr04、Gr20、Gr24、Gr40、Gr42、Gr44计算Gr22在当前位置的梯度值。也可以通过Gr00、Gr02、Gr04、Gr40、Gr42、Gr44计算Gr22在当前位置的梯度值,通过Gr00、Gr02、Gr04、Gr40、Gr42、Gr44可以计算得到Gr22在当前位置的横向梯度值。还可以通过Gr00、Gr20、Gr40、Gr04、Gr24、Gr44计算Gr22在当前位置的梯度值,通过Gr00、Gr20、Gr40、Gr04、Gr24、Gr44可以计算得到Gr22在当前位置的纵向梯度值。当然,还可以通过Gr04、Gr40、Gr00、Gr44计算Gr22在当前位置的梯度值,通过Gr04、Gr40、Gr00、Gr44可以计算得到Gr22在当前位置的45°角的梯度值等。Exemplarily, as shown in FIG. 3 , if the pixel to be corrected is Gr22, the gradient value of Gr22 at the current position can be calculated through Gr00, Gr02, Gr04, Gr20, Gr24, Gr40, Gr42, and Gr44. The gradient value of Gr22 at the current position can also be calculated through Gr00, Gr02, Gr04, Gr40, Gr42, and Gr44, and the lateral gradient value of Gr22 at the current position can be calculated through Gr00, Gr02, Gr04, Gr40, Gr42, and Gr44. The gradient value of Gr22 at the current position can also be calculated through Gr00, Gr20, Gr40, Gr04, Gr24, and Gr44, and the longitudinal gradient value of Gr22 at the current position can be calculated through Gr00, Gr20, Gr40, Gr04, Gr24, and Gr44. Of course, the gradient value of Gr22 at the current position can also be calculated through Gr04, Gr40, Gr00, and Gr44, and the gradient value of the 45° angle of Gr22 at the current position can be calculated through Gr04, Gr40, Gr00, and Gr44.
上述的通过第一色彩像素计算待校正像素在当前位置的多个梯度值可以是通过与该待校正像素相邻的第一色彩像素进行计算,也可以通过与该待校正像素不相邻的第一色彩像素进行计算。该第一色彩像素的选择可以根据实际情况进行调整,本申请不做具体限制。The above calculation of multiple gradient values of the pixel to be corrected at the current position through the first color pixel can be calculated by the first color pixel adjacent to the pixel to be corrected, or by the first color pixel not adjacent to the pixel to be corrected One color pixel for calculation. The selection of the first color pixel can be adjusted according to the actual situation, which is not specifically limited in this application.
示例性地,如图7所示,若待校正像素为Gr113,则可以选择Gr100、Gr104、Gr121、Gr125计算梯度值,也可以选择Gr106、Gr108、Gr1117、Gr1119计算梯度值等。Exemplarily, as shown in FIG. 7, if the pixel to be corrected is Gr113, then Gr100, Gr104, Gr121, and Gr125 can be selected to calculate the gradient value, and Gr106, Gr108, Gr1117, and Gr1119 can be selected to calculate the gradient value.
在上述实现过程中,通过根据第一色彩像素中的部分第一色彩像素计算待校正像素在当前位置的多个梯度值,增加了该梯度值计算的多种可能,以得到更多的梯度值,通过多个梯度值可以对待校正像素的校正值做多种预测,提高了对该待校正像素的校正值预测的准确性。In the above implementation process, by calculating multiple gradient values of the pixel to be corrected at the current position according to part of the first color pixels in the first color pixels, multiple possibilities for the gradient value calculation are increased to obtain more gradient values , multiple predictions of the correction value of the pixel to be corrected can be made through multiple gradient values, which improves the accuracy of prediction of the correction value of the pixel to be corrected.
在一种可能的实现方式中,步骤203,包括:根据第二色彩像素中的部分第二色彩像素计算多个第二色彩像素的特征值。In a possible implementation manner,
可以理解地,待校正像素相应的多个第二色彩像素,在通过第二色彩像素进行特征值计算时,可以通过目标窗口的所有第二色彩像素对该特征值进行计算,也可以仅通过目标窗口的部分第二色彩像素对该特征值进行计算。It can be understood that when calculating the eigenvalues of the plurality of pixels of the second color corresponding to the pixel to be corrected, the eigenvalues can be calculated through all the pixels of the second color in the target window, or only through the target Part of the pixels of the second color in the window calculate the feature value.
示例性地,如图7所示,若待校正像素为Gr113,则可以通过Gb107、Gb108、Gb112、Gb113计算第二色彩像素的特征值。也可以通过Gb102、Gb107、Gb112、Gb117、Gb122计算第二色彩像素的特征值,通过Gb102、Gb107、Gb112、Gb117、Gb122可以计算得到第二色彩像素的纵向特征值。还可以通过Gb105、Gb106、Gb107、Gb108、Gb109计算第二色彩像素的特征值,通过Gb105、Gb106、Gb107、Gb108、Gb109可以计算得到第二色彩像素的横向特征值。当然,还可以通过Gb104、Gb108、Gb112、Gb116、Gb120计算第二色彩像素的特征值,通过Gb104、Gb108、Gb112、Gb116、Gb120可以计算得到第二色彩像素的45°角特征值等。Exemplarily, as shown in FIG. 7 , if the pixel to be corrected is Gr113, the feature value of the pixel of the second color may be calculated through Gb107 , Gb108 , Gb112 , and Gb113 . The feature value of the second color pixel can also be calculated through Gb102, Gb107, Gb112, Gb117, Gb122, and the vertical feature value of the second color pixel can be calculated through Gb102, Gb107, Gb112, Gb117, Gb122. The feature value of the second color pixel can also be calculated through Gb105, Gb106, Gb107, Gb108, Gb109, and the horizontal feature value of the second color pixel can be calculated through Gb105, Gb106, Gb107, Gb108, Gb109. Of course, the eigenvalues of the second color pixels can also be calculated through Gb104, Gb108, Gb112, Gb116, and Gb120, and the 45° angle eigenvalues of the second color pixels can be calculated through Gb104, Gb108, Gb112, Gb116, and Gb120.
上述的通过第二色彩像素中计算第二色彩像素的特征值可以是通过与该待校正像素相邻的第二色彩像素进行计算,也可以通过与该待校正像素不相邻的第二色彩像素进行计算。该第二色彩像素的选择可以根据实际情况进行调整,本申请不做具体限制。The aforementioned calculation of the eigenvalue of the second color pixel by the second color pixel may be performed by the second color pixel adjacent to the pixel to be corrected, or by the second color pixel not adjacent to the pixel to be corrected Calculation. The selection of the pixels of the second color can be adjusted according to the actual situation, which is not specifically limited in this application.
示例性地,如图7所示,若待校正像素为Gr113,则可以选择Gb107、Gb108、Gb112、Gb113计算特征值,也可以选择Gb100、Gb104、Gb120、Gb124计算特征值等。Exemplarily, as shown in FIG. 7, if the pixel to be corrected is Gr113, Gb107, Gb108, Gb112, and Gb113 can be selected to calculate the feature value, and Gb100, Gb104, Gb120, and Gb124 can be selected to calculate the feature value, etc.
在上述实现过程中,通过根据第二色彩像素中的部分第二色彩像素计算多个第二色彩像素的特征值,增加了该特征值计算的多种可能,以得到更多的特征值,通过多个特征值可以对待校正像素的校正值做多种预测,提高了对该待校正像素的校正值预测的准确性。In the above implementation process, by calculating the eigenvalues of multiple second color pixels according to part of the second color pixels in the second color pixels, multiple possibilities for the calculation of the eigenvalues are increased to obtain more eigenvalues, by Multiple feature values can make multiple predictions of the correction value of the pixel to be corrected, which improves the accuracy of prediction of the correction value of the pixel to be corrected.
基于同一申请构思,本申请实施例中还提供了与色彩平衡校正方法对应的色彩平衡校正装置,由于本申请实施例中的装置解决问题的原理与前述的色彩平衡校正方法实施例相似,因此本实施例中的装置的实施可以参见上述方法的实施例中的描述,重复之处不再赘述。Based on the same application idea, the embodiment of the present application also provides a color balance correction device corresponding to the color balance correction method. Since the problem-solving principle of the device in the embodiment of the present application is similar to the aforementioned embodiment of the color balance correction method, this application For the implementation of the device in the embodiment, reference may be made to the description in the embodiment of the above method, and repeated descriptions will not be repeated.
请参阅图8,是本申请实施例提供的色彩平衡校正装置的功能模块示意图。本实施例中的色彩平衡校正装置中的各个模块用于执行上述方法实施例中的各个步骤。色彩平衡校正装置包括确定模块301、第一计算模块302、第二计算模块303、第三计算模块304;其中,Please refer to FIG. 8 , which is a schematic diagram of functional modules of a color balance correction device provided by an embodiment of the present application. Each module in the color balance correction device in this embodiment is used to execute each step in the above method embodiment. The color balance correction device includes a
确定模块301用于确定待校正像素相应的第一色彩像素和第二色彩像素,所述第一色彩像素为与所述待校正像素在同一通道的像素,所述第二色彩像素为与所述待校正像素不在同一通道的同色像素。The determining
第一计算模块302用于根据所述第一色彩像素计算所述待校正像素在当前位置的多个梯度值。The
第二计算模块303用于根据所述第二色彩像素计算多个所述第二色彩像素的特征值。The
第三计算模块304用于根据多个所述梯度值和多个所述特征值计算所述待校正像素的色彩平衡校正值,以通过所述色彩平衡校正值对所述待校正像素进行色彩平衡校正。The
一种可能的实施方式中,第三计算模块304,还用于:将所述多个所述梯度值和多个所述特征值进行排列组合后相加,以得到所述第二色彩像素的估计值;根据所述第二色彩像素的估计值和所述待校正像素的像素值计算所述待校正像素的色彩平衡校正值,以通过所述色彩平衡校正值对所述待校正像素进行色彩平衡校正。In a possible implementation manner, the
一种可能的实施方式中,第三计算模块304,具体用于:将所述第二色彩像素的估计值和所述待校正像素的像素值进行滤波处理,以得到所述第二色彩像素的最终估计值;将所述第二色彩像素的最终估计值和所述待校正像素的像素值进行加权平均处理,得到所述待校正像素的色彩平衡校正值,以通过所述色彩平衡校正值对所述待校正像素进行色彩平衡校正。In a possible implementation manner, the
一种可能的实施方式中,该色彩平衡校正装置还包括补齐模块,用于:以所述待校正像素相邻的边缘像素所在轴为中心轴,通过所述待校正像素有像素的侧的像素将所述待校正像素空白的侧的像素进行镜像补齐。In a possible implementation manner, the color balance correction device further includes a complementing module, configured to: take the axis where the edge pixel adjacent to the pixel to be corrected is located as the central axis, and pass through the pixel on the side of the pixel to be corrected The pixels on the side of the blank side of the pixel to be corrected are mirror complemented.
一种可能的实施方式中,第一计算模块302,具体用于:根据所述第一色彩像素中的部分所述第一色彩像素计算待校正像素在当前位置的多个梯度值。In a possible implementation manner, the
一种可能的实施方式中,第二计算模块303,具体用于:根据所述第二色彩像素中的部分所述第二色彩像素计算多个所述第二色彩像素的特征值。In a possible implementation manner, the
为便于对本实施例进行理解,下面对执行本申请实施例所公开的色彩平衡校正方法的电子设备进行详细介绍。In order to facilitate the understanding of this embodiment, the electronic device that executes the color balance correction method disclosed in the embodiment of the present application is introduced in detail below.
如图9所示,是电子设备的方框示意图。电子设备100可以包括存储器111、处理器113。本领域普通技术人员可以理解,图9所示的结构仅为示意,其并不对电子设备100的结构造成限定。例如,电子设备100还可包括比图9中所示更多或者更少的组件,或者具有与图9所示不同的配置。As shown in FIG. 9 , it is a schematic block diagram of an electronic device. The
上述的存储器111和处理器113相互之间直接或间接地电性连接,以实现数据的传输或交互。例如,这些元件相互之间可通过一条或多条通讯总线或信号线实现电性连接。上述的处理器113用于执行存储器中存储的可执行模块。The above-mentioned
其中,存储器111可以是,但不限于,随机存取存储器(Random AccessMemory,简称RAM),只读存储器(Read Only Memory,简称ROM),可编程只读存储器(Programmable Read-Only Memory,简称PROM),可擦除只读存储器(Erasable Programmable Read-OnlyMemory,简称EPROM),电可擦除只读存储器(Electric Erasable Programmable Read-OnlyMemory,简称EEPROM)等。其中,存储器111用于存储程序,所述处理器113在接收到执行指令后,执行所述程序,本申请实施例任一实施例揭示的过程定义的电子设备100所执行的方法可以应用于处理器113中,或者由处理器113实现。Wherein, the
上述的处理器113可能是一种集成电路芯片,具有信号的处理能力。上述的处理器113可以是通用处理器,包括中央处理器(Central Processing Unit,简称CPU)、网络处理器(Network Processor,简称NP)等;还可以是数字信号处理器(digital signalprocessor,简称DSP)、专用集成电路(Application Specific Integrated Circuit,简称ASIC)、现场可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The above-mentioned
本实施例中的电子设备100可以用于执行本申请实施例提供的各个方法中的各个步骤。The
此外,本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,该计算机程序被处理器运行时执行上述方法实施例中所述的色彩平衡校正方法的步骤。In addition, an embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is run by a processor, the color balance correction method described in the above-mentioned method embodiments is executed. step.
本申请实施例所提供的色彩平衡校正方法的计算机程序产品,包括存储了程序代码的计算机可读存储介质,所述程序代码包括的指令可用于执行上述方法实施例中所述的色彩平衡校正方法的步骤,具体可参见上述方法实施例,在此不再赘述。The computer program product of the color balance correction method provided by the embodiment of the present application includes a computer-readable storage medium storing program codes, and the instructions included in the program code can be used to execute the color balance correction method described in the above method embodiments For details, please refer to the above-mentioned method embodiments, and details are not repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,也可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,附图中的流程图和框图显示了根据本申请的多个实施例的装置、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或代码的一部分,所述模块、程序段或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现方式中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。In the several embodiments provided in this application, it should be understood that the disclosed devices and methods may also be implemented in other ways. The device embodiments described above are only illustrative. For example, the flowcharts and block diagrams in the accompanying drawings show the architecture, functions and possible implementations of devices, methods and computer program products according to multiple embodiments of the present application. operate. In this regard, each block in a flowchart or block diagram may represent a module, program segment, or part of code that includes one or more Executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. It should also be noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by a dedicated hardware-based system that performs the specified function or action , or may be implemented by a combination of dedicated hardware and computer instructions.
另外,在本申请各个实施例中的各功能模块可以集成在一起形成一个独立的部分,也可以是各个模块单独存在,也可以两个或两个以上模块集成形成一个独立的部分。In addition, each functional module in each embodiment of the present application may be integrated to form an independent part, each module may exist independently, or two or more modules may be integrated to form an independent part.
所述功能如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disc, etc., which can store program codes. . It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is a relationship between these entities or operations. There is no such actual relationship or order between them. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or device. Without further limitations, an element defined by the statement "comprising..." does not exclude the presence of additional same elements in the process, method, article or device comprising said element.
以上所述仅为本申请的优选实施例而已,并不用于限制本申请,对于本领域的技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。The above descriptions are only preferred embodiments of the present application, and are not intended to limit the present application. For those skilled in the art, there may be various modifications and changes in the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of this application shall be included within the protection scope of this application. It should be noted that like numerals and letters denote similar items in the following figures, therefore, once an item is defined in one figure, it does not require further definition and explanation in subsequent figures.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。The above is only a specific implementation of the application, but the scope of protection of the application is not limited thereto. Anyone familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the application. Should be covered within the protection scope of this application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211718226.6A CN115988188B (en) | 2022-12-29 | 2022-12-29 | Color balance correction method, device, electronic equipment and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211718226.6A CN115988188B (en) | 2022-12-29 | 2022-12-29 | Color balance correction method, device, electronic equipment and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN115988188A true CN115988188A (en) | 2023-04-18 |
| CN115988188B CN115988188B (en) | 2025-07-29 |
Family
ID=85959653
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202211718226.6A Active CN115988188B (en) | 2022-12-29 | 2022-12-29 | Color balance correction method, device, electronic equipment and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN115988188B (en) |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102907103A (en) * | 2010-06-02 | 2013-01-30 | 索尼公司 | Image processing device, image processing method and program |
| US8995766B1 (en) * | 2013-09-27 | 2015-03-31 | Himax Imaging Limited | Image processing method and image processing device |
| US20150138439A1 (en) * | 2013-11-19 | 2015-05-21 | Realtek Semiconductor Corp. | Real-time false color reduction system and method for color interpolation |
| US9578320B1 (en) * | 2014-01-03 | 2017-02-21 | Marvell International Ltd. | Methods and apparatus for defect correction in image sensor outputs |
| US20170064230A1 (en) * | 2015-08-25 | 2017-03-02 | Kabushiki Kaisha Toshiba | Adaptive analyzer of sensitivity difference of same color pixels and adaptive corrector of sensitivity difference of same color pixels |
| CN110248169A (en) * | 2018-03-07 | 2019-09-17 | 舜宇光学(浙江)研究院有限公司 | The method for correcting image and its image correction system of green channel imbalance for the domain Bayer |
| CN113163179A (en) * | 2020-01-22 | 2021-07-23 | 瑞昱半导体股份有限公司 | Pixel value correction method and pixel value correction device |
-
2022
- 2022-12-29 CN CN202211718226.6A patent/CN115988188B/en active Active
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102907103A (en) * | 2010-06-02 | 2013-01-30 | 索尼公司 | Image processing device, image processing method and program |
| US8995766B1 (en) * | 2013-09-27 | 2015-03-31 | Himax Imaging Limited | Image processing method and image processing device |
| US20150138439A1 (en) * | 2013-11-19 | 2015-05-21 | Realtek Semiconductor Corp. | Real-time false color reduction system and method for color interpolation |
| US9578320B1 (en) * | 2014-01-03 | 2017-02-21 | Marvell International Ltd. | Methods and apparatus for defect correction in image sensor outputs |
| US20170064230A1 (en) * | 2015-08-25 | 2017-03-02 | Kabushiki Kaisha Toshiba | Adaptive analyzer of sensitivity difference of same color pixels and adaptive corrector of sensitivity difference of same color pixels |
| CN110248169A (en) * | 2018-03-07 | 2019-09-17 | 舜宇光学(浙江)研究院有限公司 | The method for correcting image and its image correction system of green channel imbalance for the domain Bayer |
| CN113163179A (en) * | 2020-01-22 | 2021-07-23 | 瑞昱半导体股份有限公司 | Pixel value correction method and pixel value correction device |
Also Published As
| Publication number | Publication date |
|---|---|
| CN115988188B (en) | 2025-07-29 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US12002233B2 (en) | Systems and methods for estimating depth and visibility from a reference viewpoint for pixels in a set of images captured from different viewpoints | |
| US8837852B2 (en) | Apparatus and method for removing defective pixels | |
| CN104169970A (en) | Method and optical system for determining a depth map of an image | |
| CN112544074A (en) | Image processing method, image processing device, electronic equipment and storage medium | |
| CN118351097A (en) | Method and device for detecting glue path quality, electronic equipment and storage medium | |
| KR20200106854A (en) | Pixel correction | |
| CN113298869B (en) | Distance measuring method, distance measuring device, computer device, and storage medium | |
| CN113554561A (en) | Image generation method, apparatus, electronic device, and computer-readable storage medium | |
| CN115988188A (en) | Color balance correction method, device, electronic equipment and storage medium | |
| CN116055698B (en) | Color adjustment method, color adjustment device and electronic equipment | |
| CN116524039A (en) | Image processing method, device, vehicle and storage medium | |
| CN114298933A (en) | Image color shift detection method, detection device and processor | |
| CN118552540A (en) | Image detection method, image detection device and storage medium | |
| CN120495373A (en) | Modulation correction method, device, equipment, medium and lighting measurement system | |
| CN120558395A (en) | Pixel value acquisition method of spectrum analyzer and spectrum analyzer |
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 | ||
| CB02 | Change of applicant information | ||
| CB02 | Change of applicant information |
Country or region after: China Address after: Room 59, 17th Floor, Science and Technology Innovation Building, No. 777 Zhongguan West Road, Zhuangshi Street, Ningbo City, Zhejiang Province, 315200 Applicant after: Aixin Yuanzhi Semiconductor Co.,Ltd. Address before: Room 59, 17th Floor, Science and Technology Innovation Building, No. 777 Zhongguan West Road, Zhuangshi Street, Ningbo City, Zhejiang Province, 315200 Applicant before: Aixin Yuanzhi Semiconductor (Ningbo) Co.,Ltd. Country or region before: China Country or region after: China Address after: Room 59, 17th Floor, Science and Technology Innovation Building, No. 777 Zhongguan West Road, Zhuangshi Street, Ningbo City, Zhejiang Province, 315200 Applicant after: Aixin Yuanzhi Semiconductor (Ningbo) Co.,Ltd. Address before: 201700 room 1190, zone B, floor 11, building 1, No. 158, Shuanglian Road, Qingpu District, Shanghai Applicant before: Aisin Yuanzhi semiconductor (Shanghai) Co.,Ltd. Country or region before: China |
|
| GR01 | Patent grant | ||
| GR01 | Patent grant |