Image saturation adjustment method, device and computer-readable storage medium
By constructing the coefficient matrix and the color correction matrix multiplication, it directly acts on the RGB channel of the image, the problem of high requirements for image saturation adjustment equipment in the prior art is solved, and efficient image saturation adjustment on low-performance devices is achieved.
Patent Information
- Application Number
- CN202110791173.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-13
- Publication Date
- 2024-11-29
- Estimated Expiration
- 2041-07-13
AI Technical Summary
The prior art methods for image saturation adjustment have high requirements on equipment, are inconvenient to operate, and it is difficult to effectively adjust image saturation on low-performance processing equipment.
By constructing a coefficient matrix, it directly acts on the RGB channel value of the image, adjusts the saturation of the image, and multiplies the saturation matrix and the color correction matrix to adjust the saturation of the image.
This method can adapt to low-performance equipment, has small matrix calculation, easy parameter adjustment, improves computing speed, and facilitates image saturation adjustment.
Smart Images

Figure CN113674163B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image processing technology, and in particular to an image saturation adjustment method, device and computer-readable storage medium. Background Art
[0002] With the development of security technology, users pay more and more attention to the improvement of video image quality. Color is the most important component of image quality, and its style characteristics often become the first indicator for users to evaluate videos. However, the current method of directly adjusting the saturation of the image has high requirements on the image adjustment equipment and is inconvenient to operate. Summary of the invention
[0003] The main technical problem solved by the present invention is to provide an image saturation adjustment method, device and computer-readable storage medium, which can adapt to low-performance processing devices and more conveniently adjust the image saturation.
[0004] To solve the above technical problems, a technical solution adopted by the present invention is: to provide an image saturation adjustment method, which includes: obtaining an image to be processed; using a coefficient matrix to adjust the RGB channel values of the image to be processed to adjust the saturation of the image to be processed, and obtaining a saturation adjusted image.
[0005] Among them, using the coefficient matrix to adjust the RGB channel values of the image to be processed to adjust the saturation of the image to be processed includes: obtaining the saturation value of the image to be processed; constructing a coefficient matrix based on the saturation value to obtain a saturation matrix; and adjusting the saturation of the image to be processed using the saturation matrix.
[0006] Among them, constructing a coefficient matrix based on the saturation value to obtain a saturation matrix includes: constructing a saturation matrix using a saturation coefficient, at least some elements of the saturation matrix are saturation coefficient / saturation coefficient adjustment values, the saturation coefficient is the ratio of the saturation value to the saturation coefficient ratio, the saturation coefficient ratio is the median of the saturation value, the saturation coefficient adjustment value is the value of adjusting the saturation coefficient using the adjustment coefficient, and the adjustment coefficient is a real number.
[0007] The sum of the elements in each row of the saturation matrix is 1.
[0008] Among them, the saturation matrix is a 3×3 matrix.
[0009] Among them, the saturation matrix is: Among them, a, b, c, d, e and f are adjustment coefficients, and coff is the saturation coefficient.
[0010] The step of adjusting the saturation of the image to be processed by using the saturation matrix includes: left-multiplying the saturation matrix by the RGB channel values of the image to be processed to obtain the RGB channel values of the saturation-adjusted image.
[0011] Among them, using the saturation matrix to adjust the saturation of the image to be processed includes: obtaining a color correction matrix of the image to be processed; multiplying the saturation matrix with the color correction matrix to obtain a color saturation adjustment matrix; multiplying the color saturation adjustment matrix by the RGB channel values of the image to be processed to obtain the RGB channel values of the saturation adjusted image.
[0012] The color saturation adjustment matrix includes a saturation left multiplication matrix or a saturation right multiplication matrix. The saturation left multiplication matrix is obtained by left multiplying the saturation matrix by the color correction matrix, and the saturation right multiplication matrix is obtained by right multiplying the saturation matrix by the color correction matrix.
[0013] Among them, the color saturation adjustment matrix preferably selects the one with the smaller element value at the target position in the saturation left multiplication matrix and the saturation right multiplication matrix; the target position is the position of the element with the largest value among the first row and first column elements, the second row and second column elements, and the third row and third column elements of the color correction matrix.
[0014] In order to solve the above technical problem, another technical solution adopted by the present invention is: to provide an image saturation adjustment device, the image saturation adjustment device includes a processor, and the processor is used to execute to implement the above image saturation adjustment method.
[0015] In order to solve the above technical problem, another technical solution adopted by the present invention is: providing a computer-readable storage medium, the computer-readable storage medium is used to store instructions / program data, and the instructions / program data can be executed to implement the above-mentioned image saturation adjustment method.
[0016] The beneficial effects of the present invention are as follows: Different from the prior art, the present invention directly acts on the RGB channel of the image by constructing a coefficient matrix to adjust the saturation of the image to be processed. The present application introduces a coefficient matrix to adjust the saturation. Since the matrix calculation amount is small, it can adapt to low-performance processing equipment. At the same time, the matrix parameters are easy to adjust, which is convenient for the device to perform calculation adjustment, improve the actual calculation speed, and make it easier to adjust the image saturation. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 is a flow chart of an image saturation adjustment method in an embodiment of the present application;
[0018] Figure 2 is a flow chart of another method for adjusting image saturation in an embodiment of the present application;
[0019] Figure 3is a response diagram of the sensor to the RGB image spectrum in an embodiment of the present application;
[0020] Figure 4 is a graph showing the response of the human eye to the RGB image spectrum in an embodiment of the present application;
[0021] Figure 5 is a flowchart of another method for adjusting image saturation in an embodiment of the present application;
[0022] Figure 6 is a structural schematic diagram of an image saturation adjustment device according to an embodiment of the present application;
[0023] Figure 7 is a schematic diagram of the structure of an image saturation adjustment device in an embodiment of the present application;
[0024] Figure 8 It is a schematic diagram of the structure of a computer-readable storage medium in an embodiment of the present application. DETAILED DESCRIPTION
[0025] In order to make the purpose, technical solution and effect of the present invention clearer and more specific, the present invention is further described in detail below with reference to the accompanying drawings and examples.
[0026] The present application provides a method for adjusting image saturation by introducing a coefficient matrix to adjust the saturation. Since the matrix calculation amount is small, it can adapt to low-performance processing devices. At the same time, the matrix parameters are easy to adjust, which facilitates calculation adjustment on the device side, improves the actual calculation speed, and makes it easier to adjust the image saturation.
[0027] See also Figure 1 , Figure 1 FIG. 1 is a flow chart of an image saturation adjustment method in an embodiment of the present application. It should be noted that if there is substantially the same result, this embodiment is not limited to Figure 1 The process sequence shown is limited. Figure 1 As shown, this embodiment includes:
[0028] S110: Acquire an image to be processed.
[0029] The image to be processed can be a static image or a video image, and the image can be obtained by using a video shot by a camera, or can be obtained locally. In one embodiment, the video shot by the camera is first obtained, and the video is subjected to frame extraction processing to obtain each frame of the video image as the image to be processed.
[0030] S130: Using the coefficient matrix to adjust the RGB channel values of the image to be processed, so as to adjust the saturation of the image to be processed, and obtain a saturation-adjusted image.
[0031] The saturation of a color refers to the vividness of the color. Adjusting the saturation of an image to be processed refers to changing the color style of the image to be processed by adjusting a series of parameters. Saturation is affected by the saturation value of each pixel in the image, and the saturation value of each pixel can be the same or different. In the present application, a coefficient matrix for adjusting the saturation of an image is constructed, and the coefficient matrix is a 3×3 matrix. The coefficient matrix is multiplied by the RGB channel statistics of the image to be processed to adjust the saturation value of each pixel of the image to be processed, and the RGB channel values of the saturation-adjusted image are obtained to obtain the saturation-adjusted image.
[0032] In this implementation, by constructing a coefficient matrix, the image RGB channel is directly acted on to adjust the saturation of the image to be processed. This application introduces a coefficient matrix for saturation adjustment. Since the matrix calculation amount is small, it can adapt to low-performance processing equipment. At the same time, the matrix parameters are easy to adjust, which is convenient for the device to perform calculations and adjustments, improves the actual calculation speed, and is more convenient for adjusting the image saturation.
[0033] In one embodiment, a coefficient matrix applicable to all images to be processed is pre-constructed, that is, a template coefficient matrix is constructed, and the template coefficient matrix is directly applied to the RGB channels of the image to be processed to adjust the saturation of any image to be processed. There can be multiple template coefficient matrices to adjust the saturation of different styles accordingly.
[0034] In another embodiment, a coefficient matrix applicable to all images to be processed is constructed in advance, that is, a template coefficient matrix is constructed, and then different adjustment parameters are set for each pixel in combination with the actual saturation adjustment target and the different saturation values of each pixel in the image to be processed to fine-tune the template coefficient matrix, and the fine-tuned template coefficient matrix is applied to the RGB channels of the image to be processed to adjust the saturation of the image to be processed.
[0035] In another embodiment, based on the actual saturation adjustment target and the different saturation values of each pixel in the image to be processed, a different coefficient matrix is set for each pixel, and the coefficient matrix is applied to the RGB channel of the image to be processed to adjust the saturation of the image to be processed. Figure 2 , Figure 2 FIG. 1 is a flow chart of another method for adjusting the image saturation in an embodiment of the present application. It should be noted that if there is substantially the same result, this embodiment is not limited to the above method. Figure 2 The process sequence shown is limited. Figure 2 As shown, this embodiment includes:
[0036] S210: Obtaining the saturation value of the image to be processed.
[0037] Saturation is affected by the saturation value of each pixel in the image. The saturation value of each pixel can be the same or different. First, the image to be processed is obtained, and then the saturation value of each pixel in the image to be processed is obtained. The subsequent saturation adjustment of the image to be processed is the adjustment of the saturation value of each pixel.
[0038] S230: constructing a coefficient matrix based on the saturation value to obtain a saturation matrix.
[0039] Get the range of saturation values of all pixels in the image to be processed, and take the median of the range as the saturation coefficient ratio. Take the ratio of the saturation value of the pixel to the saturation coefficient ratio as the saturation coefficient of the current pixel, and then select the pixel whose saturation needs to be adjusted in combination with the saturation adjustment target, and use the saturation coefficient to build a saturation matrix for the current pixel. In a specific embodiment, the saturation value range of each pixel of the image to be processed is 0-100, then take the saturation coefficient ratio as the median 50, and the calculation formula of the saturation coefficient coff is as follows:
[0040] coff = current pixel saturation value / 50.
[0041] In one embodiment, at least some elements of the saturation matrix are saturation coefficients / saturation coefficient adjustment values. The saturation coefficient adjustment value is a value obtained by adjusting the saturation coefficient using an adjustment coefficient, and the adjustment coefficient is a real number.
[0042] In another embodiment, the saturation matrix is a 3×3 matrix, wherein all elements of the saturation matrix are saturation coefficient adjustment values. The saturation coefficient adjustment value is a value obtained by adjusting the saturation coefficient using an adjustment coefficient, and the adjustment coefficient is a real number. The specifically constructed saturation matrix A is as follows:
[0043]
[0044] Among them, a, b, c, d, e and f are adjustment coefficients. The matrix satisfies that the sum of the elements in each row is 1, that is, it satisfies the following formula at the same time:
[0045] a+d*coff+b*(1-coff)+c*(1-coff)=1,
[0046] a*(1-coff)+b+e*coff+c*(1-coff)=1,
[0047] a*(1-coff)+b*(1-coff)+c+f*coff=1.
[0048] In a specific implementation, if the saturation coefficient coff is 0, the following formula must be satisfied at the same time:
[0049] a+b+c=1,
[0050] a+d=1,
[0051] b+e=1,
[0052] c+f=1.
[0053] Arranging the above formula, we can get: d+e+f=2.
[0054] Among them, the above adjustment coefficients can be set according to the required saturation adjustment target, and can be combined with existing color space knowledge to perform value assignment calculations on the above adjustment coefficients based on public knowledge, or can be performed based on actual needs, assuming that there is a linear relationship between the adjustment coefficients.
[0055] In a specific implementation, the adjustment coefficient is assigned and calculated using the relationship between the image YUV space and the RGB space. In the YUV space, the relationship between the Y component and the RGB space is as follows:
[0056] Y=0.299*R+0.587*G+0.114*B.
[0057] Then the adjustment coefficients a, b, and c are assigned values, where a = 0.299, b = 0.587, and c = 0.114. Combined with the above formula, the corresponding values of d, e, and f can be obtained, where d = 0.701, e = 0.413, and f = 0.886. Substituting the assignment results of the above adjustment coefficients into the saturation matrix A, we can get:
[0058]
[0059] In another specific implementation, it is assumed that there is a linear relationship between the adjustment coefficients a, b, and c, where a=b=c, then a=b=c=1 / 3. Correspondingly, the values of d, e, and f can be obtained, where d=e=f=2 / 3. Substituting the assignment results of the above adjustment coefficients into the saturation matrix A, it can be obtained:
[0060]
[0061] S250: adjusting the saturation of the image to be processed by using the saturation matrix to obtain a saturation-adjusted image.
[0062] The saturation matrix A is multiplied by the RGB channel statistical value of the image to be processed to adjust the saturation value of each pixel of the image to be processed, and the RGB channel value of the saturation-adjusted image is obtained to obtain the saturation-adjusted image.
[0063] The saturation matrix A is multiplied by the RGB channel value of the saturation-adjusted image to obtain the RGB channel value of the saturation-adjusted image, so as to obtain the saturation-adjusted image. The specific calculation method is as follows:
[0064]
[0065] In this implementation, a saturation matrix construction method is proposed. The saturation matrix is constructed by combining the saturation adjustment target and the saturation value of each pixel in the image to be processed, and directly acts on the image RGB channel to adjust the saturation of the image to be processed. This application introduces matrix saturation adjustment and provides a method for setting adjustment parameters. Since the matrix has a small amount of calculation, it can adapt to low-performance processing devices. At the same time, the matrix parameters are easy to adjust, which is convenient for the device to perform calculation adjustments, improve the actual calculation speed, and make it easier to adjust the image saturation.
[0066] When processing the color of a video or image, in addition to adjusting the saturation, you also need to adjust the image color. Generally, there are differences in the response of the sensor and the human eye to the spectrum, resulting in inconsistency between the color of the captured video or image and the color of the picture observed by the human eye. Please refer to Figure 3 and Figure 4 , Figure 3 is the response diagram of the sensor to the RGB image spectrum in the embodiment of the present application, Figure 4 is a graph showing the response of the human eye to the RGB image spectrum in the embodiment of the present application, wherein curve a is a blue light curve, curve b is a green light curve, and curve c is a red light curve. Figure 3 and Figure 4 It can be seen that the response curves of the two images are inconsistent. Therefore, it is usually necessary to use a color correction matrix to multiply the RGB channel statistics of the video or image to correct the difference between the sensor and the human eye's response to the spectrum, so that the video image is closer to the physical world seen by the human eye. In the implementation of the present application, the saturation matrix is used to adjust the image saturation. Therefore, the saturation matrix and the color correction matrix can be combined to adjust the saturation of the video or image at the same time.
[0067] See also Figure 5 , Figure 5 FIG. 1 is a flowchart of another method for adjusting the image saturation in an embodiment of the present application. It should be noted that if there is substantially the same result, this embodiment is not limited to the above. Figure 5 The process sequence shown is limited. Figure 5 As shown, this embodiment includes:
[0068] S510: Obtain the saturation value of the image to be processed.
[0069] First, the image to be processed is obtained, and then the saturation value of each pixel in the image to be processed is obtained. The subsequent saturation adjustment of the image to be processed is the adjustment of the saturation value of each pixel.
[0070] S530: Acquire a color correction matrix of the image to be processed, and construct a coefficient matrix based on the saturation value to obtain a saturation matrix.
[0071] The color correction matrix (CCM) of the image to be processed is obtained according to the color adjustment target of the image. The specific color correction matrix CCM obtained is as follows:
[0072]
[0073] The saturation matrix A is constructed using the above method. The specific saturation matrix A is as follows:
[0074]
[0075] S550: Multiply the saturation matrix and the color correction matrix to obtain a color saturation adjustment matrix.
[0076] In the implementation of the present application, the color correction matrix CCM and the saturation matrix A are both 3×3 matrices. In one implementation, the saturation matrix A is pre-multiplied by the color correction matrix CCM to obtain the saturation pre-multiplication matrix B, where B=A*CCM. In another implementation, the saturation matrix A is right-multiplied by the color correction matrix CCM to obtain the saturation right-multiplication matrix C, where C=CCM*A. The saturation pre-multiplication matrix B or the saturation right-multiplication matrix C is used as the color saturation adjustment matrix D, and the color saturation adjustment matrix D is as follows:
[0077]
[0078] When the color saturation adjustment matrix D is subsequently used to adjust the image, regardless of whether the saturation left multiplication matrix B or the saturation right multiplication matrix C is used, the values of the elements in the matrix may be different, but the final adjustment result is the same. However, the numerical difference will affect the noise of different channels of the final adjusted image. Therefore, in one embodiment, a color saturation adjustment matrix D is selected from the saturation left multiplication matrix B and the saturation right multiplication matrix C. The position of the element with the largest value among the elements of the first row and first column, the elements of the second row and second column, and the elements of the third row and third column of the color correction matrix CCM is taken as the target position. That is, the position of the largest element among the diagonal elements in the color correction matrix CCM is taken as the target position, and the target position is recorded as m. The diagonal elements of the color correction matrix CCM are CCM respectively. 11 , CCM 22 , CCM 33, where the first row and first column element CCM is 11 Will act on the R channel, the second row and second column element CCM 22 Will act on the G channel, the third row and third column element CCM 33 Will act on channel B. If the largest of the three elements is CCM 11 , record the target position m as 11, and the noise in the R channel of the color-corrected target image is the largest.
[0079] The color saturation adjustment matrix D preferably selects the one with the smaller element value at the target position between the saturation left multiplication matrix B and the saturation right multiplication matrix C, that is, the size of the elements of the saturation left multiplication matrix B and the saturation right multiplication matrix C at the target position m is judged. If the element of the saturation left multiplication matrix B at the target position m is smaller, the saturation left multiplication matrix B is selected as the color saturation adjustment matrix D, that is, the noise of the corresponding channel in the target image obtained using the selected color saturation adjustment matrix D is smaller.
[0080] S570: Multiply the color saturation adjustment matrix by the RGB channel values of the image to be processed to obtain the RGB channel values of the saturation adjusted image.
[0081] The color saturation matrix D is multiplied by the RGB channel statistics of the image to be processed to adjust the saturation value of each pixel of the image to be processed, and the RGB channel value of the saturation-adjusted image is obtained to obtain the saturation-adjusted image. The specific calculation is as follows:
[0082]
[0083] In this embodiment, a saturation matrix construction method is proposed, and by combining the saturation matrix with the color correction matrix, a color saturation adjustment matrix is constructed by using matrix left multiplication and right multiplication, and two construction options are provided. A secondary comparison operation is performed through the diagonal data characteristics of the color correction matrix. Without affecting the final image saturation adjustment result, the possibility of brightness noise problems caused by superposition of coefficient matrices is reduced. The color matching adjustment matrix is directly applied to the image RGB channel to achieve the adjustment of the saturation of the image to be processed. The present application introduces matrix saturation adjustment. Because the matrix has a small amount of calculation, it can adapt to low-performance processing equipment. At the same time, the matrix parameters are easy to adjust, which is convenient for the device to perform calculation adjustments, improve the actual calculation speed, and make it easier to adjust the image saturation.
[0084] See also Figure 6 , Figure 6 6 is a schematic diagram of the structure of the image saturation adjustment device according to an embodiment of the present application. In this embodiment, the image saturation adjustment device includes an acquisition module 61 and an adjustment module 62.
[0085] The acquisition module 61 is used to acquire the image to be processed; the adjustment module 62 is used to adjust the RGB channel values of the image to be processed using the coefficient matrix to adjust the saturation of the image to be processed and obtain a saturation adjusted image. The image saturation adjustment device is used to construct a coefficient matrix, which directly acts on the image RGB channel to adjust the saturation of the image to be processed. The present application introduces a coefficient matrix for saturation adjustment. Since the matrix has a small amount of calculation, it can adapt to low-performance processing equipment. At the same time, the matrix parameters are easy to adjust, which is convenient for the device to perform calculations and adjustments, improves the actual calculation speed, and is more convenient for adjusting the image saturation.
[0086] See also Figure 7 , Figure 7 Schematic diagram of the structure of the image saturation adjustment device in the embodiment of the present application. In the embodiment, the image saturation adjustment device 71 includes a processor 72.
[0087] The processor 72 may also be referred to as a CPU (Central Processing Unit). The processor 72 may be an integrated circuit chip having signal processing capabilities. The processor 72 may also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. A general-purpose processor may be a microprocessor or the processor 72 may also be any conventional processor, etc.
[0088] The image saturation adjustment device 71 may further include a memory (not shown in the figure) for storing instructions and data required for the processor 72 to operate.
[0089] The processor 72 is used to execute instructions to implement the method provided by any embodiment of the image saturation adjustment method of the present application and any non-conflicting combination.
[0090] See also Figure 8 , Figure 8It is a schematic diagram of the structure of the computer-readable storage medium in the embodiment of the present application. The computer-readable storage medium 81 of the embodiment of the present application stores instructions / program data 82, and when the instructions / program data 82 are executed, the method provided by any embodiment of the image saturation adjustment method of the present application and any non-conflicting combination is implemented. Among them, the instructions / program data 82 can form a program file and be stored in the above-mentioned storage medium 81 in the form of a software product, so that a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (processor) executes all or part of the steps of each embodiment method of the present application. The aforementioned storage medium 81 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 disk or an optical disk, or a terminal device such as a computer, a server, a mobile phone, and a tablet.
[0091] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0092] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0093] The above description is only an implementation mode of the present invention, and does not limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for adjusting image saturation, characterized in that: The method comprises: Get the image to be processed; Using the coefficient matrix to adjust the RGB channel values of the image to be processed to adjust the saturation of the image to be processed, thereby obtaining a saturation-adjusted image; The step of adjusting the RGB channel values of the image to be processed by using a coefficient matrix to adjust the saturation of the image to be processed includes: Obtaining a saturation value of the image to be processed; Constructing the coefficient matrix based on the saturation value to obtain a saturation matrix; Using the saturation matrix to adjust the saturation of the image to be processed; Wherein, constructing the coefficient matrix based on the saturation value to obtain the saturation matrix includes: A saturation matrix is constructed using saturation coefficients, wherein at least some elements of the saturation matrix are saturation coefficients / saturation coefficient adjustment values, the saturation coefficient is a ratio of the saturation value to the saturation coefficient ratio, the saturation coefficient ratio is a median of the saturation values, the saturation coefficient adjustment value is a value obtained by adjusting the saturation coefficient using the adjustment coefficient, and the adjustment coefficient is a real number.
2. The image saturation adjustment method according to claim 1, characterized in that: The sum of the elements in each row of the saturation matrix is 1.
3. The image saturation adjustment method according to claim 1, characterized in that: The saturation matrix is a 3×3 matrix.
4. The image saturation adjustment method according to claim 1, characterized in that: The saturation matrix is: ; Among them, a, b, c, d, e and f are adjustment coefficients, and coff is the saturation coefficient.
5. The image saturation adjustment method according to claim 1, characterized in that: The step of adjusting the saturation of the image to be processed by using the saturation matrix comprises: The saturation matrix is left-multiplied by the RGB channel values of the image to be processed to obtain the RGB channel values of the saturation-adjusted image.
6. The image saturation adjustment method according to claim 1, characterized in that: The step of adjusting the saturation of the image to be processed by using the saturation matrix comprises: Obtaining a color correction matrix of the image to be processed; Multiplying the saturation matrix by the color correction matrix to obtain a color saturation adjustment matrix; The color saturation adjustment matrix is left-multiplied by the RGB channel values of the image to be processed to obtain the RGB channel values of the saturation-adjusted image.
7. The image saturation adjustment method according to claim 6, characterized in that: The color saturation adjustment matrix includes a saturation left multiplication matrix or a saturation right multiplication matrix. The saturation left multiplication matrix is obtained by left multiplying the saturation matrix by the color correction matrix, and the saturation right multiplication matrix is obtained by right multiplying the saturation matrix by the color correction matrix.
8. The method for adjusting image saturation according to claim 7, characterized in that: The color saturation adjustment matrix is preferably the one with the smaller element value at the target position between the saturation left multiplication matrix and the saturation right multiplication matrix; The target position is the position of the element with the largest value among the elements of the first row and first column, the elements of the second row and second column, and the elements of the third row and third column of the color correction matrix.
9. An image saturation adjustment device, characterized in that: It includes a processor, wherein the processor is used to execute instructions to implement the image saturation adjustment method as described in any one of claims 1-8.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store instructions / program data, and the instructions / program data can be executed to implement the image saturation adjustment method as described in any one of claims 1-8.
Citation Information
Patent Citations
Image processing process for CMOS image sensor
CN101511033A
Industrial camera color adjustment method
CN110933386A
System and method for color correction for electronic printing
US20060013477A1
