Image processing method and device, electronic equipment and computer readable storage medium
By determining the optimization parameters of the sensor filter and using a color correction algorithm, combined with the initial and limiting coefficients to process the image, the problem of poor image color correction in the existing technology is solved, and the color authenticity and quality of the image are improved.
Patent Information
- Application Number
- CN202410744052.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-11
- Publication Date
- 2024-09-17
AI Technical Summary
The existing automatic white balance algorithm cannot effectively correct the color of the image in some specific scenes, resulting in a large color difference between the image and the real situation, and cannot meet the needs of image processing.
By determining the optimization parameters corresponding to the filter in the sensor, combining the color correction algorithm to correct the image to be processed, and using the initial adjustment coefficients and limiting coefficients of multiple color channels for optimization, the color difference is reduced and the image quality is improved.
It effectively reduces the color difference between the target image and the real situation, improves the color authenticity and quality of the image, and meets a variety of image processing needs.
Smart Images

Figure CN118660232A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of color correction, and in particular to an image processing method, device, electronic device and computer-readable storage medium. Background Art
[0002] When the RGB image sensor collects images, the light wave signal usually passes through a color filter before being converted by the photoelectric sensor to convert the color information into monochrome information. The obtained image data can be processed to restore the monochrome information to the original color information to a certain extent. However, since the spectral response of the color filter is not ideal, the color image restored by the simple demosaicing algorithm often deviates from the actual object color. In this case, various white balance (WB) algorithms are derived to adjust the deviated color to the original object color.
[0003] The automatic white balance algorithm in the prior art usually generates a set of parameters according to the characteristics of the current image content, such as the automatic white balance algorithm based on the grayscale world assumption and the automatic white balance algorithm based on the perfect reflection assumption. However, these algorithms fail in certain specific scenes. For example, in some pure color scenes, the color cannot be effectively corrected, resulting in a large color difference between the image and the actual situation, which cannot meet the current image processing requirements. Summary of the invention
[0004] In view of this, the purpose of the embodiments of the present application is to provide an image processing method, device, electronic device and computer-readable storage medium to improve the problem of large color difference between images and real situations existing in the prior art.
[0005] In order to solve the above problems, in a first aspect, an embodiment of the present application provides an image processing method, the method comprising:
[0006] Determine the optimal parameters corresponding to the filter in the sensor;
[0007] Correcting the image to be processed based on the optimization parameters and the color correction algorithm to obtain a target image;
[0008] The optimization parameters include initial adjustment coefficients corresponding to multiple color channels.
[0009] In the above implementation process, the influence of the filter used in shooting on the image color is taken into account. Therefore, during processing, the optimization parameters corresponding to the filter in the sensor used for shooting can be first determined to determine the initial adjustment coefficients corresponding to multiple color channels. When performing color correction, the image to be processed can be corrected in combination with the optimization parameters and the color correction algorithm to obtain the corresponding target image. The color correction algorithm can be further optimized according to the optimization parameters, and the effect of color correction on the image to be processed is optimized, thereby reducing the color difference between the target image obtained and the actual situation, improving the quality of the target image, and meeting the current various image processing needs.
[0010] Optionally, the correcting the image to be processed based on the optimization parameters and the color correction algorithm to obtain a target image includes:
[0011] Adjusting the image to be processed based on the optimization parameters to obtain an initial image;
[0012] Performing a demosaicing process on the initial image to obtain a first color image;
[0013] Processing the first color image based on the color correction algorithm to obtain a first adjustment coefficient;
[0014] Performing a restriction process on the first adjustment coefficient based on the restriction coefficient to obtain a first optimization algorithm with a first target coefficient;
[0015] The first color image is corrected based on the first optimization algorithm to obtain the target image.
[0016] In the above implementation process, the original image to be processed can be directly processed using the initial adjustment coefficients corresponding to the multiple color channels in the optimization parameters to obtain the corresponding initial image, and the first color image with other colors can be obtained by de-mosaicing the initial image. In addition, when optimizing the color correction algorithm, the first color image can be first processed using the initial color correction algorithm to obtain the corresponding first adjustment coefficient, and the first adjustment coefficient can be restricted in combination with the corresponding restriction coefficient in the actual situation to obtain the optimized first target coefficient and the corresponding first optimization algorithm, so that the first color image can be corrected using the first optimization algorithm to obtain a target image with higher quality. The image can be corrected for the first time according to the optimization parameters, and the color correction algorithm can be optimized by the restriction coefficient, and the image can be corrected for the second time using the obtained first optimization algorithm, so as to combine the actual situation and adjustment requirements of the filter, and process the image by the secondary correction method, so as to effectively improve the effectiveness of the first optimization algorithm, thereby improving the color authenticity of the target image.
[0017] Optionally, the restriction coefficient is determined by:
[0018] Acquire original images of multiple color cards under a light source with preset conditions;
[0019] Processing the original image based on an initial color correction algorithm to obtain a processed image;
[0020] determining a color calibration matrix based on the processed image and standard values of the color chart;
[0021] Processing the first image corresponding to the unrestricted case based on the color calibration matrix to obtain a second image;
[0022] Based on the initial color correction algorithm, determining a plurality of color gain parameters corresponding to the second image under a plurality of color temperatures;
[0023] An edge value is determined among the plurality of color gain parameters as the limiting coefficient.
[0024] In the above implementation process, in order to determine the restriction range of the restriction coefficient, the original image corresponding to the color card can be first obtained, and the original image can be processed accordingly using the initial or existing color correction algorithm to obtain a processed image, so as to determine the color calibration matrix when the processed image is processed to be consistent with the standard value of the color card according to the difference between the standard value of the color card and the processed image. The original image can be processed according to the corresponding optimization parameters in the unrestricted case where the first adjustment coefficient is not restricted to obtain the corresponding first image, and then the first image can be processed based on the color correction matrix to obtain the corresponding second image, and the second image can be processed accordingly according to the initial color correction algorithm to obtain multiple groups of color gain parameters corresponding to multiple different color temperature conditions, and the maximum and minimum edge values therein are selected as the corresponding restriction coefficients. The restriction coefficient of the restricted color channel adjustment coefficient can be determined by comparing with the standard case of the color card, which effectively improves the effectiveness of the restriction coefficient, thereby optimizing the color correction effect of the first optimization algorithm.
[0025] Optionally, the correcting the image to be processed based on the optimization parameters and the color correction algorithm to obtain a target image includes:
[0026] Performing demosaic processing on the image to be processed to obtain a second color image;
[0027] Based on the image to be processed, the second color image and the light source parameters corresponding to the image to be processed, the color coefficients of each color channel in the color correction algorithm are adjusted to obtain second adjustment coefficients;
[0028] Performing weighted summation processing based on the optimization parameter, the second adjustment coefficient and the weighting coefficient to obtain a second optimization algorithm with a second target coefficient;
[0029] The second color image is corrected based on the second optimization algorithm to obtain the target image.
[0030] In the above implementation process, the original image to be processed can be first de-mosaiced to obtain a second color image with other colors, and then the color coefficients of each color channel in the color correction algorithm can be adjusted according to the image to be processed, the corresponding light source parameters and the actual situation of the second color image to obtain the second adjustment coefficient, and the optimization parameters and the second adjustment coefficients are weighted and summed according to the weighting coefficient to obtain the optimized second target coefficient and the corresponding second optimization algorithm, so that the second color image can be corrected using the second optimization algorithm to obtain a target image with higher quality. It is possible to combine the actual situation and adjustment requirements of the filter, and perform weighted summation according to the second adjustment coefficients adjusted by the optimization parameters and the color correction algorithm to process the image by secondary correction, effectively improving the effectiveness of the second optimization algorithm, thereby improving the color authenticity of the target image.
[0031] Optionally, the weighting coefficient is determined by:
[0032] Acquire original images of multiple color cards under a light source with preset conditions;
[0033] Processing the original image based on an initial color correction algorithm to obtain a processed image;
[0034] determining a color calibration matrix based on the processed image and standard values of the color chart;
[0035] Processing the third image corresponding to the initial weighting coefficient based on the color calibration matrix to obtain a fourth image;
[0036] determining color difference data according to the fourth image and the standard value;
[0037] The weighting coefficient is obtained by performing calculation according to the color difference data and the initial weighting coefficient.
[0038] In the above implementation process, in order to determine the weighting coefficients of two different coefficients during weighted summation processing, the original image corresponding to the color card can be first obtained, and the original image can be processed accordingly using the initial or existing color correction algorithm to obtain a processed image, so as to determine the color calibration matrix when the processed image is processed to be consistent with the standard value of the color card according to the difference between the standard value of the color card and the processed image. According to the corresponding initial weighting coefficient when the second adjustment coefficient is not weighted, the original image can be processed using the optimization parameters to obtain the corresponding third image, and then the third image can be processed based on the color correction matrix to obtain the corresponding fourth image, and the color difference data between the fourth image and the standard value of the color card can be determined, so as to calculate the corresponding weighting coefficient according to the color difference data and the initial weighting coefficient. The weighting coefficient for adjusting the calculation ratio of multiple different coefficients can be calculated by comparing with the standard situation of the color card, which effectively improves the effectiveness of the weighting coefficient, thereby optimizing the color correction effect of the second optimization algorithm.
[0039] Optionally, determining the optimization parameters corresponding to the filter in the sensor includes:
[0040] Determining the identity of the filter used in the sensor;
[0041] The optimization parameters are obtained by querying multiple historical parameters in a database based on the identity identifier.
[0042] In the above implementation process, considering the diversity of filters used in the sensor, the identity of the currently used filter can be obtained by scanning, identification, etc., and based on the identity, a quick query is performed in a database with historical parameters of multiple historical filters to obtain the historical parameters of the historical filters consistent with the current filter model as the corresponding optimization parameters. The historical parameters of multiple different types of filters can be collected and saved by pre-establishing a database, so that the corresponding optimization parameters can be quickly and accurately obtained by querying the database, which effectively improves the efficiency of processing.
[0043] Optionally, the historical parameters are determined in the following manner:
[0044] Get the spectral response parameters corresponding to the historical filter;
[0045] Performing integration processing according to the spectral response parameters and the spectral distribution function under the reference light condition to obtain the response integral values corresponding to the plurality of color channels;
[0046] The plurality of response integral values are normalized to obtain the historical parameter.
[0047] In the above implementation process, the spectral response parameters of each historical filter can be integrated in combination with the spectral distribution function under the reference light conditions to obtain the response integral values corresponding to the multiple color channels, and, for the convenience of calculation, the multiple response integral values can also be normalized to obtain the normalization coefficients corresponding to the multiple color channels, that is, the initial adjustment coefficients, as the corresponding historical parameters. The actual performance of the filter and the lighting conditions can be combined for calculation processing, so that the historical parameters can effectively correct the adverse effects of the physical factors brought by the filter on the image color, thereby optimizing the correction effect of the optimization parameters on the image color.
[0048] In a second aspect, an embodiment of the present application further provides an image processing device, the device comprising: an optimization module and a correction module;
[0049] The optimization module is used to determine the optimization parameters corresponding to the filter in the sensor;
[0050] The correction module is used to correct the image to be processed based on the optimization parameters and the color correction algorithm to obtain a target image;
[0051] The optimization parameters include initial adjustment coefficients corresponding to multiple color channels.
[0052] In the above implementation process, the optimization module is used to determine the optimization parameters corresponding to the filter in the sensor used for shooting, so as to determine the initial adjustment coefficients corresponding to multiple color channels. The correction module combines the optimization parameters and the color correction algorithm to correct the image to be processed, so as to obtain the corresponding target image.
[0053] In a third aspect, an embodiment of the present application further provides an electronic device, comprising a memory and a processor, wherein the memory stores program instructions, and when the processor reads and runs the program instructions, it executes the steps in any implementation of the above-mentioned image processing method.
[0054] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer program instructions, and when the computer program instructions are read and executed by a processor, the steps in any implementation of the above-mentioned image processing method are executed.
[0055] In summary, the embodiments of the present application provide an image processing method, device, electronic device and computer-readable storage medium. Taking into account the impact of the filter used during shooting on the image color, the optimization parameters corresponding to the filter in the sensor are first determined during processing to determine the initial adjustment coefficients corresponding to multiple color channels. When performing color correction, the image to be processed is corrected in combination with the optimization parameters and the color correction algorithm, so that the color correction algorithm is optimized according to the optimization parameters, thereby optimizing the effect of color correction on the image to be processed, thereby reducing the color difference between the target image and the actual situation and improving the quality of the target image. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0057] Figure 1 A block diagram of an electronic device provided in an embodiment of the present application;
[0058] Figure 2 A schematic diagram of a flow chart of a first image processing method provided in an embodiment of the present application;
[0059] Figure 3 A detailed flowchart of the first step S300 provided in the embodiment of the present application;
[0060] Figure 4 A schematic diagram of a second image processing method provided in an embodiment of the present application;
[0061] Figure 5 A detailed flowchart of the second step S300 provided in the embodiment of the present application;
[0062] Figure 6 A schematic diagram of a third image processing method provided in an embodiment of the present application;
[0063] Figure 7 A schematic diagram of the change of color difference under different color temperatures provided in an embodiment of the present application;
[0064] Figure 8 A detailed flow chart of step S200 provided in an embodiment of the present application;
[0065] Fig. 9 A schematic diagram of a fourth image processing method provided in an embodiment of the present application;
[0066] Fig.10 An image of processing the original RGB data of a 24-color card imaged under a 5500K white light source using optimized parameters provided in an embodiment of the present application;
[0067] Fig.11 An image provided in an embodiment of the present application is obtained by processing the original RGB data of a 24-color card imaged under a 2800K yellow light source using an existing color correction algorithm;
[0068] Fig.12 An image provided in an embodiment of the present application, in which the original RGB data of a 24-color card imaged under a 2800K yellow light source is processed using the image processing method provided in the present application;
[0069] Fig.13 A schematic diagram of the structure of an image processing device provided in an embodiment of the present application.
[0070] Icons: 100 - electronic device; 111 - memory; 112 - storage controller; 113 - processor; 114 - peripheral interface; 115 - input and output unit; 116 - display unit; 600 - image processing device; 610 - optimization module; 620 - correction module. DETAILED DESCRIPTION
[0071] The technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments of the embodiments of the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the embodiments of the present application.
[0072] The automatic white balance algorithm in the prior art usually generates a set of parameters according to the characteristics of the current image content, such as the automatic white balance algorithm based on the grayscale world assumption and the automatic white balance algorithm based on the perfect reflection assumption. However, these algorithms will fail in certain specific scenarios. For example, when the automatic white balance algorithm based on the grayscale world assumption encounters a large area of pure red scene, it will correct the red to white, which does not match the actual object color. The visual effect of a green object under red light should be black, but the algorithm will process it as white. Therefore, in some pure color scenes, the color cannot be effectively corrected, resulting in a large color difference between the image and the actual situation, which cannot meet the current image processing needs.
[0073] In order to solve the above problems, an embodiment of the present application provides an image processing method, which is applied to electronic devices. The electronic devices may include servers, personal computers (PCs), tablet computers, smart phones, personal digital assistants (PDAs), image processing systems, cameras, and other electronic devices with logical computing functions. The method can effectively correct the color of the image, reduce the color difference between the image and the actual situation, improve the color quality of the image, and meet the image processing needs in a variety of different scenarios.
[0074] Optionally, see Figure 1 , Figure 1 The block diagram of an electronic device provided in an embodiment of the present application. The electronic device 100 may include a memory 111, a storage controller 112, a processor 113, a peripheral interface 114, an input and output unit 115, and a display unit 116. A person skilled in the art may understand that Figure 1 The structure shown is only for illustration and does not limit the structure of the electronic device 100. For example, the electronic device 100 may further include Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.
[0075] The memory 111, storage controller 112, processor 113, peripheral interface 114, input / output unit 115 and display unit 116 are electrically connected to each other directly or indirectly to achieve data transmission or interaction. For example, these components can be electrically connected to each other via one or more communication buses or signal lines. The processor 113 is used to execute the executable module stored in the memory.
[0076] The memory 111 may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable read-only memory (EEPROM), etc. The memory 111 is used to store programs, and the processor 113 executes the program after receiving the execution instruction. The method executed by the electronic device 100 defined by the process disclosed in any embodiment of the present application can be applied to the processor 113, or implemented by the processor 113.
[0077] The processor 113 may be an integrated circuit chip with signal processing capability. The processor 113 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application may be implemented or executed. The general-purpose processor may be a microprocessor or any conventional processor.
[0078] The peripheral interface 114 couples various input / output devices to the processor 113 and the memory 111. In some embodiments, the peripheral interface 114, the processor 113 and the memory controller 112 can be implemented in a single chip. In other embodiments, they can be implemented by separate chips.
[0079] The input / output unit 115 is used to provide input data to the user. The input / output unit 115 may be, but is not limited to, a mouse and a keyboard.
[0080] The above-mentioned display unit 116 provides an interactive interface (such as a user operation interface) between the electronic device 100 and the user or is used to display image data for the user's reference. In this embodiment, the display unit can be a liquid crystal display or a touch display. If it is a touch display, it can be a capacitive touch screen or a resistive touch screen that supports single-point and multi-point touch operations. Supporting single-point and multi-point touch operations means that the touch display can sense touch operations generated simultaneously from one or more positions on the touch display, and the sensed touch operations are handed over to the processor for calculation and processing. In an embodiment of the present application, the display unit 116 can display a variety of information such as images at various stages of the correction process.
[0081] The electronic device in this embodiment can be used to execute each step in each image processing method provided in the embodiment of the present application. The implementation process of the image processing method is described in detail below through several embodiments.
[0082] See also Figure 2 , Figure 2 A schematic flow chart of a first image processing method provided in an embodiment of the present application, the method may include steps S200-S300.
[0083] Step S200, determining the optimization parameters corresponding to the filter in the sensor.
[0084] Among them, the sensor can be various types of sensors set in devices with image acquisition functions such as cameras and video cameras. Taking the camera as an example, the sensor is mainly responsible for converting light into electrical signals, and then converting these electrical signals into digital signals through an analog-to-digital converter, and then transmitting them to the camera's storage medium, thereby realizing image capture and storage. The sensor can use photosensitive elements (such as photodiodes) to sense light. The photosensitive elements convert the received light into electrical signals, which are then encoded and processed by the processor inside the camera to eventually form an image or video. The camera sensor can include various types of sensors such as CMOS (complementary metal oxide semiconductor) sensors. In the camera sensor, the function of the filter is to filter out or allow light of a specific wavelength to pass through, thereby improving or optimizing the image quality. Specifically, the filter can achieve the following functions: Cut off and filter out light of a specific wavelength: If it is not filtered out, it may cause color distortion of the image. Protect the image sensor: The filter can also prevent dust and oil from contaminating the photosensitive device and protect the image sensor. Reduce image blur caused by external light source irradiation: Some filters have anti-reflection or anti-scattering properties, which can reduce image blur caused by external light source irradiation. Therefore, the filter currently used by the sensor can be determined first, and the corresponding optimization parameters can be determined according to the actual situation of the filter.
[0085] It should be noted that the optimization parameters may include initial adjustment coefficients corresponding to multiple color channels, and the multiple color channels may include three color channels of RGB, namely R (red) channel, G (green) channel, B (blue) channel or other types of color channels. The initial adjustment coefficient may be the calculation coefficient used when performing pixel adjustment for each color channel. Taking RGB as an example, the initial adjustment coefficient may include the three calculation coefficients Kr, Kg, and Kb corresponding to the three color channels.
[0086] Step S300, correcting the image to be processed based on the optimization parameters and the color correction algorithm to obtain a target image.
[0087] The image to be processed may be image data collected by an electronic device, or may be RAW data. RAW data is the raw data after the light source signal captured by the image sensor is converted into a digital signal, and the data contains the original color information of the image. Since the light sources encountered in actual engineering are usually not ideal white light, they will be affected by a series of factors such as color temperature and color rendering, so the intervention of the color correction algorithm is still required. The color correction algorithm may include various types of algorithms, such as color space conversion algorithms, gray world hypothesis algorithms, etc. Take the AWB (Auto White Balance, automatic white balance) algorithm in the gray world hypothesis algorithm as an example, which is an algorithm for automatically adjusting the color temperature of the camera. During the photo shooting process, the camera will record the information of the light and the information of the target color. Then, based on this information, the AWB algorithm will automatically adjust the white balance of the camera to make the color restoration higher and the image quality better. The AWB algorithm can intelligently identify the colors under different light, and automatically adjust the white balance according to the preset parameters, so that the color presentation is more realistic and in line with the visual habits of the human eye. In the AWB algorithm, the gray world algorithm is a classic and simple method. The basic concept of the grayscale world method is that for a colorful image, the average grayscale values of the three RGB channels are equal, which conforms to the grayscale world theory. The algorithm sums the three components of the image and then takes the average value, adjusts the gain of the three channels according to the average value, and makes the average values of the three color components (R, G, B) equal, that is, R_avg=G_avg=B_avg. When performing color correction, the image to be processed can be corrected by combining the optimization parameters and the color correction algorithm, so as to optimize the color correction algorithm according to the optimization parameters and obtain the corresponding target image.
[0088] Optionally, the RAW file of the image to be processed may contain camera sensor data information necessary to create a visible image, including sensor metadata, sensor size, color attributes, configuration files and other information, so as to facilitate subsequent image processing.
[0089] For example, when the image to be processed is RAW data, the target image may be an image in a corresponding RGB format.
[0090] exist Figure 2 In the embodiment shown, the color correction algorithm can be further optimized according to the optimization parameters, thereby optimizing the effect of color correction on the processed image, thereby reducing the color difference between the obtained target image and the actual situation, improving the quality of the target image, and meeting various current image processing requirements.
[0091] Optionally, see Figure 3 , Figure 3 A detailed flowchart of the first step S300 provided in an embodiment of the present application, step S300 may include steps S311-S315.
[0092] Step S311, adjusting the image to be processed based on the optimization parameters to obtain an initial image.
[0093] The original image to be processed can be directly processed using the initial adjustment coefficients corresponding to the multiple color channels in the optimization parameters to obtain the corresponding initial image. The processing method can be to directly multiply the multiple initial adjustment coefficients in the optimization parameters with the pixel values in the corresponding color channels in the image to be processed to adjust the pixel values and obtain the corresponding initial image.
[0094] Step S312, performing demosaicing processing on the initial image to obtain a first color image.
[0095] Considering that the initial image is usually an image generated through a monochrome filter, in order to restore other color information of pixels in the image, the image may be demosaiced to obtain a first color image with other colors.
[0096] Optionally, various types of demosaicing algorithms may be used for demosaicing processing, such as a demosaicing algorithm based on linear interpolation, a demosaicing algorithm based on image restoration, a demosaicing algorithm based on deep learning, and the like.
[0097] Step S313: Process the first color image based on a color correction algorithm to obtain a first adjustment coefficient.
[0098] Among them, considering that the first color image still has a certain color deviation, therefore, when optimizing the color correction algorithm, the first color image can be processed using the initial color correction algorithm to obtain the corresponding first adjustment coefficient. The first adjustment coefficient may include the calculation coefficients corresponding to each color channel used when the color correction algorithm processes the first color image.
[0099] Step S314: performing restriction processing on the first adjustment coefficient based on the restriction coefficient to obtain a first optimization algorithm with a first target coefficient.
[0100] Among them, the restriction coefficient can be a coefficient for limiting the calculation coefficient of the color channel to limit the adjustment range of the color. The first adjustment coefficient can be restricted in combination with the corresponding restriction coefficient in the actual situation to obtain the optimized first target coefficient and the corresponding first optimization algorithm, so that the final first target coefficient only fluctuates within a certain range above and below the first adjustment coefficient to achieve a better color correction effect.
[0101] Optionally, the limiting coefficient may be set as an adjustment range threshold when adjusting the coefficient, for example, set to 0.8-1.2, etc., that is, the calculation coefficient may be determined by floating between 0.8 times and 1.2 times.
[0102] Step S315, performing correction processing on the first color image based on the first optimization algorithm to obtain a target image.
[0103] The first color image can be corrected using the first optimization algorithm to obtain a target image with higher quality. During the correction, the calculation coefficients of multiple color channels in the first optimization parameter can be multiplied with the pixel values in each color channel in the first color image to obtain the corrected target image.
[0104] exist Figure 3 In the embodiment shown, the image can be corrected for the first time according to the optimization parameters, and the color correction algorithm can be optimized by limiting the coefficients. The image can be corrected for the second time using the obtained first optimization algorithm. In combination with the actual situation and adjustment requirements of the filter, the image is processed by a secondary correction method, which effectively ensures the effectiveness of the first optimization algorithm, thereby improving the color authenticity of the target image.
[0105] Optionally, see Figure 4 , Figure 4 This is a flow chart of a second image processing method provided in an embodiment of the present application. The method may further include steps S411-S416.
[0106] Step S411, obtaining original images of a plurality of color cards under a light source with preset conditions.
[0107] Among them, in order to determine the limit range of the limit coefficient, the original image corresponding to the color card can be obtained first. In order to ensure the validity of the original image, the original image can be a color image of multiple color cards obtained by shooting under a light source with preset conditions and performing de-mosaicing and other processing. The multiple color cards may include a variety of different colors, such as red, green, blue, yellow, white, etc. The light source with preset conditions can be a light source with a color temperature of 5000K to 7500K.
[0108] Step S412, processing the original image based on the initial color correction algorithm to obtain a processed image.
[0109] Among them, the original image can be processed accordingly using an initial or existing color correction algorithm to obtain a processed image.
[0110] Step S413, determining a color calibration matrix based on the processed image and the standard value of the color card.
[0111] Among them, since there is a color difference between the processed image and the standard value of the color card, the processed image can be processed using a color calibration matrix, and the color calibration matrix can be continuously adjusted. When the color values of each color card of the adjusted image obtained by processing the processed image with the color calibration matrix are the same as the standard value of the color card, the current color calibration matrix is used as the color calibration matrix required for calculation.
[0112] Step S414: Process the first image corresponding to the unrestricted case based on the color calibration matrix to obtain a second image.
[0113] The original image can be processed according to the corresponding optimization parameters in an unrestricted case where the first adjustment coefficient is not restricted to obtain a corresponding first image, and then the first image can be processed based on the color correction matrix to obtain a corresponding second image.
[0114] Step S415 , based on the initial color correction algorithm, determining a plurality of color gain parameters corresponding to the second image under a plurality of color temperature conditions.
[0115] Step S416: determining an edge value from a plurality of color gain parameters as a limiting coefficient.
[0116] The second image is processed accordingly according to the initial color correction algorithm to obtain multiple groups of color gain parameters corresponding to multiple different color temperatures, and the maximum and minimum edge values therein are selected as corresponding restriction coefficients.
[0117] Optionally, the color gain parameter may be an adjustment range parameter corresponding to each color channel under the three color channels of RGB. For example, when the optimization parameters include the three initial adjustment coefficients Kr, Kg, and Kb, at a color temperature of 5500K, the RGB gain parameters are obtained as follows (with kg as the base, i.e., kg is always equal to 1): kr=1.021, kg=1, and kb=1.011; at a color temperature of 6500K, the RGB gain parameters are obtained as follows: kr=1.152, kg=1, and kb=0.993; at a color temperature of 7500K, the RGB gain parameters are obtained as follows: kr=1.336, kg=1, and kb=0.952. Then the restriction coefficients may include: a restriction range of 1.021 to 1.336 for Kr, a restriction range of 1 for Kg (since kg is the base, kg is always 1), and a restriction range of 0.952 to 1.011 for Kb. When using the restriction coefficient for processing, taking Kr as an example, for values of Kr greater than 1.336, make it equal to 1.336, for values less than 1.021, make it equal to 1.021, and the same applies to Kb and Kg.
[0118] exist Figure 4 In the illustrated embodiment, the limiting coefficient of the color channel adjustment coefficient can be calculated by comparing with the standard condition of the color card, which effectively improves the validity of the limiting coefficient and thus optimizes the color correction effect of the first optimization algorithm.
[0119] Optionally, see Figure 5 , Figure 5 A detailed flowchart of the second step S300 provided in an embodiment of the present application, step S300 may include steps S321-S324.
[0120] Step S321, performing demosaic processing on the image to be processed to obtain a second color image.
[0121] The original image to be processed may be first subjected to a demosaicing process to obtain a second color image with other colors. Figure 3 The same as shown above will not be described again.
[0122] Step S322, based on the image to be processed, the second color image and the light source parameters corresponding to the image to be processed, the color coefficients of each color channel in the color correction algorithm are adjusted to obtain second adjustment coefficients.
[0123] Among them, the color coefficients of each color channel in the color correction algorithm (that is, the calculation coefficients for adjusting the pixel values of the image color channels) can be adjusted according to the image to be processed and the corresponding light source parameters and the actual situation of the second color image to obtain the second adjustment coefficient.
[0124] Optionally, since the shooting scenes of the image to be processed are different, the light source parameters when the image to be processed is shot can be obtained to analyze the actual application scenario, so as to effectively adjust the color coefficients of each color channel in the color correction algorithm according to the actual application scenario and the adjustment requirements of the second color image, thereby effectively improving the effectiveness of the second adjustment coefficient.
[0125] Step S323, performing weighted summation processing based on the optimization parameter, the second adjustment coefficient and the weighting coefficient to obtain a second optimization algorithm with a second target coefficient.
[0126] Among them, the weighted coefficient can be a weighted value assigned to each calculation coefficient when processing in combination with multiple different types of calculation coefficients. Considering the impact of the filter on color, the filter and the correction algorithm can be combined, and the optimization parameter and the second adjustment coefficient can be weighted and summed according to the weighted coefficient to obtain the optimized second target coefficient and the corresponding second optimization algorithm, so that the value of the final second target coefficient fluctuates within a small range above and below the coefficient value of the optimization parameter, so that the correct image color can be obtained in a pure color scene, and a better adjustment range can be obtained in a complex image content.
[0127] Optionally, among the weighted coefficients, the weighted value of the optimization parameter may account for a larger proportion and the weighted value of the second adjustment coefficient may account for a smaller proportion. For example, the weighted value of the optimization parameter may be 0.8, and the weighted value of the second adjustment coefficient may be 0.2.
[0128] Step S324, performing correction processing on the second color image based on the second optimization algorithm to obtain a target image.
[0129] The second color image can be corrected using the second optimization algorithm to obtain a target image with higher quality. During the correction, the calculation coefficients of multiple color channels in the second optimization parameters can be multiplied with the pixel values in each color channel in the second color image to obtain the corrected target image.
[0130] exist Figure 5 In the embodiment shown, it is possible to combine the actual situation and adjustment requirements of the filter, perform weighted sum processing based on the second adjustment coefficient adjusted according to the optimization parameters and the color correction algorithm, and process the image through secondary correction, thereby effectively improving the effectiveness of the second optimization algorithm and improving the color authenticity of the target image.
[0131] Optionally, see Figure 6 , Figure 6 This is a flow chart of a third image processing method provided in an embodiment of the present application. The method may further include steps S421-S426.
[0132] Step S421, obtaining original images of multiple color cards under a light source with preset conditions.
[0133] Among them, in order to determine the weighted coefficients of two different coefficients during weighted summation processing, the original image corresponding to the color card can be obtained first. In order to ensure the validity of the original image, the original image can be a color image of multiple color cards obtained by shooting under a light source with preset conditions and performing de-mosaicing and other processing. The multiple color cards may include multiple different colors, such as red, green, blue, yellow, white, etc. The light source with preset conditions can be a light source with a color temperature of 5000K to 7500K.
[0134] Step S422, processing the original image based on the initial color correction algorithm to obtain a processed image.
[0135] Among them, the original image can be processed accordingly using an initial or existing color correction algorithm to obtain a processed image.
[0136] Step S423, determining a color calibration matrix based on the processed image and the standard value of the color card.
[0137] Among them, since there is a color difference between the processed image and the standard value of the color card, the processed image can be processed using a color calibration matrix, and the color calibration matrix can be continuously adjusted. When the color values of each color card of the adjusted image obtained by processing the processed image with the color calibration matrix are the same as the standard value of the color card, the current color calibration matrix is used as the color calibration matrix required for calculation.
[0138] Step S424: Process the third image corresponding to the initial weighting coefficient based on the color calibration matrix to obtain a fourth image.
[0139] Among them, the corresponding initial weighting coefficient when the second adjustment coefficient is not weighted can be used to process the original image using the optimized parameters to obtain the corresponding third image, and then the third image can be processed based on the color correction matrix to obtain the corresponding fourth image.
[0140] Optionally, the initial weighting coefficient may be: the weight of the optimization parameter is 1, the weight of the second adjustment coefficient is 0, and so on.
[0141] Step S425, determining color difference data according to the fourth image and the standard value.
[0142] The fourth image may convert all standard values into the HSV domain, compare the numerical deviations of the H component, and then calculate the root mean square of the color difference of multiple color cards respectively as the color difference data of the present value coefficient at the color temperature.
[0143] Step S426, performing calculation according to the color difference data and the initial weighting coefficient to obtain the weighting coefficient.
[0144] Among them, since there is a color difference between the fourth image and the standard value of the color card, the color difference data between the color value of each color block of the fourth image and the corresponding standard value of the color card can be determined, so as to calculate according to the color difference data and the initial weighting coefficient to obtain the corresponding weighting coefficient.
[0145] Optionally, see Figure 7 , Figure 7 A schematic diagram of the change of color difference under different color temperatures provided by the embodiment of the present application, with the horizontal axis as the weighting coefficient and the vertical axis as the chromaticity error, can be obtained under different color temperatures. The vertical coordinate of the error value will theoretically increase exponentially with the increase of the weighting coefficient. Under three different color temperatures, namely, 5500k, 6500k, and 7500k, there is a corresponding relationship between the weighting coefficient and the color difference. In order to improve the accuracy of the weighting coefficient, the average value can be calculated based on the color difference data corresponding to the three curves, and the chromaticity error average curve e-avg curve can be obtained. The weighting coefficient corresponding to the point with the smallest e-avg error is taken as the weighting coefficient used for weighted summation processing.
[0146] exist Figure 6 In the illustrated embodiment, the weighted coefficients for adjusting the calculation ratios of a plurality of different coefficients can be calculated by comparing with the standard conditions of the color card, thereby effectively improving the validity of the weighted coefficients and optimizing the color correction effect of the second optimization algorithm.
[0147] Optionally, see Figure 8 , Figure 8 A detailed flow chart of step S200 is provided for an embodiment of the present application. Step S200 may include steps S210-S220.
[0148] Step S210, determining the identity of the filter used in the sensor.
[0149] Considering the diversity of filters used in the sensor, the identity of the currently used filter can be obtained by scanning, recognition, parameter extraction, etc.
[0150] Optionally, the identity identifier may be a barcode, a QR code, a serial number, a model number, or other identification information that can characterize the model of the filter.
[0151] Step S220, querying multiple historical parameters in the database based on the identity identifier to obtain optimized parameters.
[0152] Among them, a database containing various different types of historical filters and corresponding historical parameters can be pre-built. The filter model can be used as an index in the database, so that a quick query can be performed in the database based on the identity identifier to obtain the historical parameters of the historical filter consistent with the current filter model as the corresponding optimization parameters.
[0153] exist Figure 8 In the illustrated embodiment, historical parameters of various types of filters can be collected and saved by pre-establishing a database, so that corresponding optimization parameters can be quickly and accurately obtained by querying the database, thereby effectively improving processing efficiency.
[0154] Optionally, see Fig. 9 , Fig. 9 This is a flowchart of a fourth image processing method provided in an embodiment of the present application. The method may further include steps S511-S513.
[0155] Step S511, obtaining spectral response parameters corresponding to the historical filter.
[0156] When processing each historical filter, the spectral response parameters corresponding to the historical filter can be obtained first. The spectral response parameters can include a spectral response diagram of the historical filter, and the spectral response diagram includes the response amplitude of each color channel to different spectral frequencies.
[0157] Step S512, performing integration processing according to the spectral response parameters and the spectral distribution function under the reference light condition to obtain response integral values corresponding to the multiple color channels.
[0158] Among them, the response integral values corresponding to the multiple color channels can be obtained by performing integration processing based on the spectral response parameters of each historical filter and the spectral distribution function under the reference light conditions.
[0159] Optionally, the reference light condition can be set to 5500K natural light, and the spectral distribution function of 5500K natural white light can be obtained, or the spectral distribution function of ideal white light with average distribution can be obtained, and the response amplitude of each color channel in the spectral response parameter is integrated to obtain multiple response integral values. Taking the three RGB color channels as an example, the three response integral values can be recorded as Pr, Pg, and Pb.
[0160] Step S513, normalizing the multiple response integral values to obtain historical parameters.
[0161] In order to facilitate calculation, multiple response integral values may be normalized to obtain normalization coefficients corresponding to multiple color channels, namely, initial adjustment coefficients, which are used as corresponding historical parameters.
[0162] Optionally, taking the three color channels of RGB as an example, when performing normalization processing, any one of the three response integral values can be taken as the standard basis and the remaining two values can be normalized. The normalization coefficients are recorded as Kr, Kg, and Kb, which are the corresponding historical parameters. For example, the ideal white light distribution function with average distribution can be used to integrate the three colors, and Pg can be used as the standard basis to obtain Kr=1.5091, Kb=1.6369, and Kg=1, that is, Kr*Pr=Kg*Pg=Kb*Pb. The influence of physical factors on color brought by the filter can be corrected, so that under the assumption of white light conditions, when no other algorithm processing is performed, a white object is still a white object.
[0163] It should be noted that if the corresponding historical parameters are not found in the database, Fig. 9 The method shown determines the optimization parameters of the filter, and stores the model of the filter and the corresponding optimization parameters as historical data in a database to update the database in real time.
[0164] exist Fig. 9 In the embodiment shown, calculations can be performed in combination with the actual performance of the filter and the lighting conditions so that the historical parameters can effectively correct the adverse effects of the physical factors brought by the filter on the image color, thereby optimizing the correction effect of the optimization parameters on the image color.
[0165] See also Figure 10-12 , Fig.10 An image provided in an embodiment of the present application is obtained by processing the original RGB data of a 24-color card imaged under a 5500K white light source using optimized parameters. Fig.11 An image provided in an embodiment of the present application is obtained by processing the original RGB data of a 24-color card imaged under a 2800K yellow light source using an existing color correction algorithm. Fig.12 An image provided in an embodiment of the present application is obtained by processing the original RGB data of a 24-color card imaged under a 2800K yellow light source using the image processing method provided in the present application. It can be seen that the white block area retains the main color of the yellow light source to the greatest extent, and other colors still have a certain degree of recognition.
[0166] See also Fig.13 , Fig.13 A schematic diagram of the structure of an image processing device provided in an embodiment of the present application, the image processing device 600 may include: an optimization module 610 and a correction module 620;
[0167] The optimization module 610 is used to determine the optimization parameters corresponding to the filter in the sensor;
[0168] The correction module 620 is used to correct the image to be processed based on the optimization parameters and the color correction algorithm to obtain a target image;
[0169] The optimization parameters include initial adjustment coefficients corresponding to multiple color channels.
[0170] In an optional embodiment, the correction module 620 is specifically used to: adjust the image to be processed based on the optimization parameters to obtain an initial image; perform de-mosaic processing on the initial image to obtain a first color image; process the first color image based on the color correction algorithm to obtain a first adjustment coefficient; restrict the first adjustment coefficient based on the restriction coefficient to obtain a first optimization algorithm with a first target coefficient; perform correction processing on the first color image based on the first optimization algorithm to obtain a target image.
[0171] In an optional embodiment, the image processing device 600 may also include a first coefficient determination module, which is used to obtain original images of multiple color cards under a light source with preset conditions; process the original images based on an initial color correction algorithm to obtain a processed image; determine a color calibration matrix based on the processed image and the standard value of the color card; process the first image corresponding to an unrestricted situation based on the color calibration matrix to obtain a second image; determine multiple color gain parameters corresponding to the second image under multiple color temperature conditions based on the initial color correction algorithm; and determine an edge value as a restriction coefficient among multiple color gain parameters.
[0172] In an optional embodiment, the correction module 620 is specifically used to: perform de-mosaic processing on the image to be processed to obtain a second color image; adjust the color coefficients of each color channel in the color correction algorithm based on the image to be processed, the second color image and the light source parameters corresponding to the image to be processed to obtain a second adjustment coefficient; perform weighted summation processing based on the optimization parameters, the second adjustment coefficient and the weighting coefficient to obtain a second optimization algorithm with a second target coefficient; perform correction processing on the second color image based on the second optimization algorithm to obtain a target image.
[0173] In an optional embodiment, the image processing device 600 may also include a second coefficient determination module, which is used to obtain original images of multiple color cards under a light source with preset conditions; process the original images based on an initial color correction algorithm to obtain a processed image; determine a color calibration matrix based on the processed image and the standard value of the color card; process the third image corresponding to the initial weighting coefficient based on the color calibration matrix to obtain a fourth image; determine color difference data based on the fourth image and the standard value; and calculate based on the color difference data and the initial weighting coefficient to obtain the weighting coefficient.
[0174] In an optional implementation, the optimization module 610 is specifically used to: determine the identity of the filter used in the sensor; and query multiple historical parameters in the database based on the identity to obtain the optimization parameters.
[0175] In an optional embodiment, the image processing device 600 may further include an acquisition module for obtaining spectral response parameters corresponding to historical filters; performing integration processing based on the spectral response parameters and the spectral distribution function under reference light conditions to obtain response integral values corresponding to multiple color channels; and normalizing the multiple response integral values to obtain historical parameters.
[0176] Since the principle of solving the problem by the image processing device 600 in the embodiment of the present application is similar to that in the embodiment of the aforementioned image processing method, the implementation of the image processing device 600 in this embodiment can refer to the description in the embodiment of the aforementioned image processing method, and the repeated parts will not be repeated.
[0177] The embodiment of the present application further provides a computer-readable storage medium, in which computer program instructions are stored. When the computer program instructions are read and executed by a processor, the steps of any one of the image processing methods provided in the embodiment are executed.
[0178] In several embodiments provided in the present application, it should be understood that the disclosed device can also be implemented in other ways. The device embodiments described above are merely schematic, for example, the block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices according to the multiple embodiments of the present application. In this regard, each box in the block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram, and the combination of the block diagrams, can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0179] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0180] 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 can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0181] The above description is only an embodiment of the present application and is not intended to limit the scope of protection of the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application. It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.
[0182] The above description is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.
[0183] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
Claims
1. An image processing method, characterized in that: The method comprises: Determine the optimal parameters corresponding to the filter in the sensor; Correcting the image to be processed based on the optimization parameters and the color correction algorithm to obtain a target image; The optimization parameters include initial adjustment coefficients corresponding to multiple color channels.
2. The method according to claim 1, characterized in that The step of correcting the image to be processed based on the optimization parameters and the color correction algorithm to obtain a target image includes: Adjusting the image to be processed based on the optimization parameters to obtain an initial image; Performing a demosaicing process on the initial image to obtain a first color image; Processing the first color image based on the color correction algorithm to obtain a first adjustment coefficient; Performing a restriction process on the first adjustment coefficient based on the restriction coefficient to obtain a first optimization algorithm with a first target coefficient; The first color image is corrected based on the first optimization algorithm to obtain the target image.
3. The method according to claim 2, characterized in that in, The restriction factor is determined by: Acquire original images of multiple color cards under a light source with preset conditions; Processing the original image based on an initial color correction algorithm to obtain a processed image; determining a color calibration matrix based on the processed image and standard values of the color chart; Processing the first image corresponding to the unrestricted case based on the color calibration matrix to obtain a second image; Based on the initial color correction algorithm, determining a plurality of color gain parameters corresponding to the second image under a plurality of color temperatures; An edge value is determined among the plurality of color gain parameters as the limiting coefficient.
4. The method according to claim 1, characterized in that: The step of correcting the image to be processed based on the optimization parameters and the color correction algorithm to obtain a target image includes: Performing demosaic processing on the image to be processed to obtain a second color image; Based on the image to be processed, the second color image and the light source parameters corresponding to the image to be processed, the color coefficients of each color channel in the color correction algorithm are adjusted to obtain second adjustment coefficients; Performing weighted summation processing based on the optimization parameter, the second adjustment coefficient and the weighting coefficient to obtain a second optimization algorithm with a second target coefficient; The second color image is corrected based on the second optimization algorithm to obtain the target image.
5. The method according to claim 4, characterized in that in, The weighting coefficient is determined in the following way: Acquire original images of multiple color cards under a light source with preset conditions; Processing the original image based on an initial color correction algorithm to obtain a processed image; determining a color calibration matrix based on the processed image and standard values of the color chart; Processing the third image corresponding to the initial weighting coefficient based on the color calibration matrix to obtain a fourth image; determining color difference data according to the fourth image and the standard value; The weighting coefficient is obtained by performing calculation according to the color difference data and the initial weighting coefficient.
6. The method according to claim 1, characterized in that The step of determining the optimization parameters corresponding to the optical filter in the sensor includes: Determining the identity of the filter used in the sensor; The optimization parameters are obtained by querying a plurality of historical parameters in a database based on the identity identifier.
7. The method according to claim 6, characterized in that in, The historical parameters are determined in the following way: Get the spectral response parameters corresponding to the historical filter; Performing integration processing according to the spectral response parameters and the spectral distribution function under the reference light condition to obtain the response integral values corresponding to the plurality of color channels; The plurality of response integral values are normalized to obtain the historical parameter.
8. An image processing device, characterized in that: The device comprises: an optimization module and a correction module; The optimization module is used to determine the optimization parameters corresponding to the filter in the sensor; The correction module is used to correct the image to be processed based on the optimization parameters and the color correction algorithm to obtain a target image; The optimization parameters include initial adjustment coefficients corresponding to multiple color channels.
9. An electronic device, characterized in that: The electronic device comprises a memory and a processor, wherein the memory stores program instructions, and when the processor runs the program instructions, the steps in the method according to any one of claims 1 to 7 are executed.
10. A computer-readable storage medium, characterized in that: The readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the steps in the method according to any one of claims 1 to 7 are executed.
Citation Information
Cited By
Single-lens visible light-near infrared light imaging system based on multi-channel color filter and algorithm
CN118828167A
