Pixel-level color correction method, system, device and medium
By acquiring the color area and color correction matrix of the target pixel of the image, the target pixel is corrected, and the problem that the color correction cannot be corrected in the prior art is solved, thereby improving the accuracy of image correction.
Patent Information
- Application Number
- CN202211659488.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-22
- Publication Date
- 2025-08-08
- Estimated Expiration
- 2042-12-22
AI Technical Summary
The prior art cannot perform color correction on specific pixels, and the color systems have a great influence on each other, so a single color system color correction cannot be achieved.
By acquiring the target pixel in the image, determining its corresponding color area, and acquiring a color correction matrix based on the color area, the target pixel is corrected.
Color correction for specific pixels is achieved, and the accuracy of image correction is improved.
Smart Images

Figure CN115941913B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image processing technology, and in particular to a pixel-level color correction method, system, device and medium. Background Art
[0002] Currently, imaging systems typically use an Auto White Balance (AWB) algorithm for global image color correction, and a Color Correction Matrix (CCM) algorithm for local color adjustments. These correction methods suffer from the inability to correct the color of specific pixels and the significant mutual influence between color systems, making it impossible to achieve color correction for a single color system. Summary of the Invention
[0003] The technical problem to be solved by the present invention is to overcome the defect in the prior art that color correction of specific pixels cannot be performed, and to provide a pixel-level color correction method, system, device and medium.
[0004] The present invention solves the above technical problems through the following technical solutions:
[0005] The present invention provides a pixel-level color correction method, the correction method comprising:
[0006] Obtaining a target pixel in an image and determining a color region corresponding to the target pixel;
[0007] Based on the color area, obtaining a color correction matrix corresponding to the target pixel;
[0008] The target pixel is corrected based on the color correction matrix.
[0009] Preferably, the step of determining the color area corresponding to the target pixel includes:
[0010] Get the brightness information of the image;
[0011] Processing the brightness information in different levels to determine the corresponding level of the brightness information;
[0012] Based on the gear corresponding to the brightness information, the UV color space is divided into different areas to determine the color area corresponding to the target pixel.
[0013] Preferably, the step of obtaining the color correction matrix corresponding to the target pixel includes:
[0014] Obtaining the angle of the boundary axis of the color area, the rotation angle of the boundary axis, and the length of the boundary axis;
[0015] A color correction matrix corresponding to each color region is determined based on the angle of the boundary axis, the rotation angle of the boundary axis, and the length of the boundary axis.
[0016] Preferably, the calibration method further includes:
[0017] Corresponding restriction conditions are set on the boundary axes of the color area, between the angles of adjacent boundary axes, between the angles of adjacent boundary axes and the rotation angle of the boundary axes, and between the angles of adjacent boundary axes, the rotation angle of the boundary axes and the length of the boundary axes.
[0018] Preferably, the restriction conditions include:
[0019] The parameter difference of the boundary axis of the color area is not less than the parameter difference of the rotation angle corresponding to the boundary axis;
[0020] and / or, when the parameter difference of the boundary axis of the color region gradually increases, the sum of the parameter difference of the boundary axis of the color region plus the rotation angle corresponding to the boundary axis keeps increasing;
[0021] And / or, 1 / 20 of the difference between the sum of the parameter values of two adjacent axes of the color region and the rotation angle corresponding to the boundary axis is greater than the difference between the lengths of the two adjacent axes of the color region.
[0022] Preferably, the step of correcting the target pixel based on the color correction matrix includes:
[0023] A corresponding mapping transformation is performed on the UV value of the target pixel based on the color correction matrix to correct the target pixel.
[0024] The present invention also provides a pixel-level color correction system, the correction system comprising:
[0025] A color region determination module is used to obtain a target pixel in an image and determine a color region corresponding to the target pixel;
[0026] An acquisition module, configured to acquire a color correction matrix corresponding to the target pixel based on the color region;
[0027] A correction module is used to correct the target pixel based on the color correction matrix.
[0028] Preferably, the color region determination module includes:
[0029] A first acquiring unit, configured to acquire brightness information of an image;
[0030] a gear determination unit, configured to process the brightness information into different gears to determine a gear corresponding to the brightness information;
[0031] The color region determining unit is configured to divide the UV color space into different regions based on the gear corresponding to the brightness information, so as to determine the color region corresponding to the target pixel.
[0032] Preferably, the acquisition module includes:
[0033] a second acquiring unit, configured to acquire an angle of a boundary axis of the color region, a rotation angle of the boundary axis, and a length of the boundary axis;
[0034] The correction matrix determining unit is configured to determine a color correction matrix corresponding to each color region based on the angle of the boundary axis, the rotation angle of the boundary axis, and the length of the boundary axis.
[0035] Preferably, the correction system further includes:
[0036] The setting module is used to set corresponding restriction conditions on the boundary axes of the color area, between the angles of adjacent boundary axes, between the angles of adjacent boundary axes and the rotation angles of the boundary axes, and between the angles of adjacent boundary axes, the rotation angles of the boundary axes and the lengths of the boundary axes.
[0037] Preferably, the restriction conditions include:
[0038] The parameter difference of the boundary axis of the color area is not less than the parameter difference of the rotation angle corresponding to the boundary axis;
[0039] and / or, when the parameter difference of the boundary axis of the color region gradually increases, the sum of the parameter difference of the boundary axis of the color region plus the rotation angle corresponding to the boundary axis keeps increasing;
[0040] And / or, 1 / 20 of the difference between the sum of the parameter values of two adjacent axes of the color region and the rotation angle corresponding to the boundary axis is greater than the difference between the lengths of the two adjacent axes of the color region.
[0041] Preferably, the correction module is specifically used to:
[0042] A corresponding mapping transformation is performed on the UV value of the target pixel based on the color correction matrix to correct the target pixel.
[0043] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and used to run on the processor, wherein the processor implements the aforementioned pixel-level color correction method when executing the computer program.
[0044] The present invention also provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the aforementioned pixel-level color correction method when executed by a processor.
[0045] On the basis of conforming to the common sense in this field, the above-mentioned preferred conditions can be arbitrarily combined to obtain the preferred embodiments of the present invention.
[0046] The positive progress effect of the present invention is:
[0047] The present invention provides a pixel-level color correction method, system, device and medium. The pixel-level color correction method obtains a target pixel in an image and determines a color area corresponding to the target pixel; based on the color area, obtains a color correction matrix corresponding to the target pixel; based on the color correction matrix, corrects the target pixel, thereby achieving color correction of specific pixels, thereby improving the accuracy of image correction. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 Flowchart of a pixel-level color correction method according to embodiment 1 of the present invention;
[0049] Figure 2 This is a schematic diagram of UV color region division according to embodiment 1 of the invention;
[0050] Figure 3 This is a flowchart of step S101 of embodiment 1 of the invention;
[0051] Figure 4 Schematic diagram of derivation of the color correction matrix according to embodiment 1 of the invention;
[0052] Figure 5 Schematic diagram of the modules of the pixel-level color correction system according to embodiment 2 of the present invention;
[0053] Figure 6 A schematic diagram of a module for implementing the color region determination module in 2 of the present invention;
[0054] Figure 7 The present invention implements the module schematic diagram of the acquisition module in 2;
[0055] Figure 8 A schematic diagram of the structure of an electronic device implementing 3 of the present invention; DETAILED DESCRIPTION
[0056] The present invention is further described below by way of examples, but the present invention is not limited to the scope of the examples.
[0057] Example 1
[0058] like Figure 1 As shown, this embodiment discloses a pixel-level color correction method, characterized in that the correction method includes:
[0059] Step S101: Acquire a target pixel in an image and determine a color region corresponding to the target pixel;
[0060] Specifically, a target pixel of an image in a YUV format is obtained, wherein the image in the YUV format uses one brightness (Y) and two color differences (U, V) instead of the traditional RGB three primary colors to compress the image.
[0061] In this solution, the color region is the UV domain color region.
[0062] Step S102: Based on the color region, obtain the color correction matrix corresponding to the target pixel; specifically, the color correction matrix can be expressed as
[0063] Step S103: Correct the target pixel based on the color correction matrix.
[0064] This solution determines the color area corresponding to the target pixel, obtains the color correction matrix corresponding to the target pixel based on the color area, and then corrects the target pixel based on the color correction matrix, thereby achieving color correction of specific pixels and improving the accuracy of image correction.
[0065] In one practicable manner, step S101 includes:
[0066] Step S1011, obtaining brightness information of the image;
[0067] Step S1012: performing a graded process on the brightness information to determine a grade corresponding to the brightness information;
[0068] In this solution, the brightness information can be graded according to actual usage requirements.
[0069] Step S1013: Divide the UV color space into different regions based on the gear corresponding to the brightness information to determine the color region corresponding to the target pixel.
[0070] Specifically, after determining the gear corresponding to the brightness information, the UV color space can be further divided into different areas, for example, Figure 2 As shown, the UV color space is divided into four quadrants, totaling 360°, with each color region corresponding to a preset angle. The UV color space can be divided into several color regions.
[0071] This solution performs binning according to the image brightness information. Under different bins, the UV color space can be divided into different areas according to usage requirements, so as to achieve scene differentiation of the image and increase the robustness and versatility of the method.
[0072] like Figure 3 In one practicable embodiment, step S102 includes:
[0073] Step S1021, obtaining the angle of the boundary axis of the color area, the rotation angle of the boundary axis, and the length of the boundary axis;
[0074] Step S1022: Determine a color correction matrix corresponding to each color region based on the angle of the boundary axis, the rotation angle of the boundary axis, and the length of the boundary axis.
[0075] Specifically, if Figure 4 As shown, A and B are the boundary axes of the color region. The angle of the boundary axis A of the color region is α, and the angle of the boundary axis B of the color region is β. After parameter adjustment, the boundary axis A of the color region rotates to the boundary axis A' of the color region, and the corresponding rotation angle is Δα; the boundary axis B of the color region rotates to the boundary axis B' of the color region, and the corresponding rotation angle is Δβ. The length of the boundary axis A of the color region gain α , the length of the boundary axis B of the color area gain β .
[0076] If the color correction matrix is Then the elements in the color correction matrix can be expressed by the following formula: 00 =f1(α,β,Δα,Δβ,gain α ,gain β )
[0077] m 01 =f2(α,β,Δα,Δβ,gain α ,gain β )
[0078] m 10 =f3(α,β,Δα,Δβ,gain α ,gain β )
[0079] m 11 =f4(α,β,Δα,Δβ,gain α ,gain β )
[0080] This solution calculates the color correction matrix corresponding to each color area through the angle, rotation angle, and length of the color area boundary axis, ensuring the accuracy of the color correction matrix, thereby achieving color correction for specific pixels and improving the accuracy of image correction.
[0081] In one practicable manner, the calibration method further includes:
[0082] Corresponding restriction conditions are set on the boundary axes of the color area, between the angles of adjacent boundary axes, between the angles of adjacent boundary axes and the rotation angle of the boundary axes, and between the angles of adjacent boundary axes, the rotation angle of the boundary axes and the length of the boundary axes.
[0083] In this solution, the present invention sets corresponding restrictions on the angle, rotation angle, and length of the boundary axis of the color correction matrix to avoid color stratification problems caused by excessive parameter differences during use.
[0084] In one practicable manner, the restriction conditions include:
[0085] The parameter difference of the boundary axis of the color area is not less than the parameter difference of the rotation angle corresponding to the boundary axis;
[0086] Alternatively, when the parameter difference of the boundary axis of the color region gradually increases, the sum of the parameter difference of the boundary axis of the color region plus the rotation angle corresponding to the boundary axis keeps increasing;
[0087] Alternatively, 1 / 20 of a difference between the sum of the parameter values of two adjacent axes of the color region and the rotation angle corresponding to the boundary axis is greater than a difference between the lengths of the two adjacent axes of the color region.
[0088] The above three restriction conditions can be combined arbitrarily to form a new restriction condition.
[0089] In this solution, in the setting of the color area boundary axis, corresponding restrictions are set between adjacent boundary axis angles, between adjacent boundary axis angles and rotation angles, and between adjacent boundary axis angles, rotation angles and lengths, to avoid color stratification problems caused by excessive parameter differences during use.
[0090] In one practicable manner, step S103 includes:
[0091] A corresponding mapping transformation is performed on the UV value of the target pixel based on the color correction matrix to correct the target pixel.
[0092] Specifically, the corrected U is calculated using the color correction matrix and the initial UV value. ′ V′ The calculation expression is as follows:
[0093]
[0094] In this solution, each pixel in the image is corrected one by one, thereby achieving color correction of the entire image.
[0095] In this solution, the UV value of the target pixel is mapped and transformed accordingly based on the color correction matrix, thereby achieving correction of the target pixel.
[0096] Example 2
[0097] like Figure 5 As shown, this embodiment discloses a pixel-level color correction system, the correction system comprising:
[0098] Color region determination module 1, used to obtain a target pixel in an image and determine a color region corresponding to the target pixel;
[0099] Specifically, a target pixel of an image in a YUV format is obtained, wherein the image in the YUV format uses one brightness (Y) and two color differences (U, V) instead of the traditional RGB three primary colors to compress the image.
[0100] In this solution, the color region is the UV domain color region.
[0101] An acquisition module 2 is configured to acquire a color correction matrix corresponding to the target pixel based on the color region;
[0102] Specifically, the color correction matrix can be expressed as
[0103] The correction module 3 is configured to correct the target pixel based on the color correction matrix.
[0104] This solution determines the color area corresponding to the target pixel, obtains the color correction matrix corresponding to the target pixel based on the color area, and then corrects the target pixel based on the color correction matrix, thereby achieving color correction of specific pixels and improving the accuracy of image correction.
[0105] like Figure 6 As shown, in one practicable manner, the color region determination module 1 includes:
[0106] A first acquiring unit 11 is configured to acquire brightness information of an image;
[0107] a gear determination unit 12, configured to perform grade processing on the brightness information to determine a gear corresponding to the brightness information;
[0108] In this solution, the brightness information can be graded according to actual usage requirements.
[0109] The color region determining unit 13 is configured to divide the UV color space into different regions based on the level corresponding to the brightness information, so as to determine the color region corresponding to the target pixel.
[0110] Specifically, after determining the gear corresponding to the brightness information, the UV color space can be further divided into different areas, for example, Figure 2 As shown, the UV color space is divided into four quadrants, totaling 360°, with each color region corresponding to a preset angle. The UV color space can be divided into several color regions.
[0111] This solution performs binning according to the image brightness information. Under different bins, the UV color space can be divided into different areas according to usage requirements, so as to achieve scene differentiation of the image and increase the robustness and versatility of the method.
[0112] like Figure 7 As shown, in one practicable manner, the acquisition module 2 includes:
[0113] A second acquiring unit 21 is configured to acquire the angle of the boundary axis of the color region, the rotation angle of the boundary axis, and the length of the boundary axis;
[0114] The correction matrix determining unit 22 is configured to determine a color correction matrix corresponding to each color region based on the angle of the boundary axis, the rotation angle of the boundary axis, and the length of the boundary axis.
[0115] Specifically, if Figure 4 As shown, A and B are the boundary axes of the color region. The angle of the boundary axis A of the color region is α, and the angle of the boundary axis B of the color region is β. After parameter adjustment, the boundary axis A of the color region rotates to the boundary axis A' of the color region, and the corresponding rotation angle is Δα; the boundary axis B of the color region rotates to the boundary axis B' of the color region, and the corresponding rotation angle is Δβ. The length of the boundary axis A of the color region gain α , the length of the boundary axis B of the color area gain β .
[0116] If the color correction matrix is Then the elements in the color correction matrix can be expressed by the following formula: 00 =f1(α,β,Δα,Δβ,gain α ,gain β )
[0117] m 01 =f2(α,β,Δα,Δβ,gainα ,gain β )
[0118] m 10 =f3(α,β,Δα,Δβ,gain α ,gain β )
[0119] m 11 =f4(α,β,Δα,Δβ,gain α ,gain β )
[0120] This solution calculates the color correction matrix corresponding to each color area through the angle, rotation angle, and length of the color area boundary axis, ensuring the accuracy of the color correction matrix, thereby achieving color correction for specific pixels and improving the accuracy of image correction.
[0121] In one practicable manner, the correction system further includes:
[0122] The setting module 4 is used to set corresponding restriction conditions on the boundary axes of the color area, between the angles of adjacent boundary axes, between the angles of adjacent boundary axes and the rotation angles of the boundary axes, and between the angles of adjacent boundary axes, the rotation angles of the boundary axes and the lengths of the boundary axes.
[0123] In this solution, the present invention sets corresponding restrictions on the angle, rotation angle, and length of the boundary axis of the color correction matrix to avoid color stratification problems caused by excessive parameter differences during use.
[0124] In one practicable manner, the restriction conditions include:
[0125] The parameter difference of the boundary axis of the color area is not less than the parameter difference of the rotation angle corresponding to the boundary axis;
[0126] Or, when the parameter difference of the boundary axis of the color region gradually increases, the sum of the parameter difference of the boundary axis of the color region plus the rotation angle corresponding to the boundary axis keeps increasing;
[0127] Alternatively, 1 / 20 of a difference between the sum of the parameter values of two adjacent axes of the color region and the rotation angle corresponding to the boundary axis is greater than a difference between the lengths of the two adjacent axes of the color region.
[0128] The above three restriction conditions can be combined arbitrarily to form a new restriction condition.
[0129] In this solution, in the setting of the color area boundary axis, corresponding restrictions are set between adjacent boundary axis angles, between adjacent boundary axis angles and rotation angles, and between adjacent boundary axis angles, rotation angles and lengths, to avoid color stratification problems caused by excessive parameter differences during use.
[0130] In one practicable manner, the correction module 3 is specifically configured to:
[0131] A corresponding mapping transformation is performed on the UV value of the target pixel based on the color correction matrix to correct the target pixel.
[0132] Specifically, the corrected U is calculated using the color correction matrix and the initial UV value. ′ V ′ The calculation expression is as follows:
[0133]
[0134] In this solution, each pixel in the image is corrected one by one, thereby achieving color correction of the entire image.
[0135] In this solution, the UV value of the target pixel is mapped and transformed accordingly based on the color correction matrix, thereby achieving correction of the target pixel.
[0136] Example 3
[0137] Figure 8 This is a schematic diagram of the structure of an electronic device provided in Example 3 of the present invention. The electronic device includes a memory, a processor, and a computer program stored in the memory and configured to run on the processor. When the processor executes the program, the pixel-level color correction method provided in Example 1 is implemented. Figure 8 The electronic device 40 shown is only an example and should not limit the functionality and scope of use of the embodiments of the present invention.
[0138] like Figure 8 As shown, the electronic device 40 may be a general-purpose computing device, such as a server device. Components of the electronic device 40 may include, but are not limited to, the at least one processor 41, the at least one memory 42, and a bus 43 connecting different system components (including the memory 42 and the processor 41).
[0139] The bus 43 includes a data bus, an address bus, and a control bus.
[0140] The memory 42 may include a volatile memory, such as a random access memory (RAM) 421 and / or a cache memory 422 , and may further include a read-only memory (ROM) 423 .
[0141] The memory 42 may also include a program / utility 425 having a set (at least one) of program modules 424, such program modules 424 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0142] The processor 41 executes various functional applications and data processing by running computer programs stored in the memory 42 , such as the pixel-level color correction method provided in the first embodiment of the present invention.
[0143] The electronic device 40 can also communicate with one or more external devices 44 (e.g., a keyboard, pointing device, etc.). This communication can occur via an input / output (I / O) interface 45. Furthermore, the model-generating device 40 can also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 46. As shown, the network adapter 46 communicates with other modules of the model-generating device 40 via a bus 43. It should be understood that, although not shown, other hardware and / or software modules can be used in conjunction with the model-generating device 40, including but not limited to microcode, device drivers, redundant processors, external disk drive arrays, RAID (RAID) systems, tape drives, and data backup storage systems.
[0144] It should be noted that although several units / modules or sub-units / modules of the electronic device are mentioned in the detailed description above, this division is merely exemplary and not mandatory. In fact, according to embodiments of the present invention, the features and functions of two or more units / modules described above may be embodied in a single unit / module. Conversely, the features and functions of a single unit / module described above may be further divided and embodied by multiple units / modules.
[0145] Example 4
[0146] This embodiment provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, the pixel-level color correction method provided in Embodiment 1 is implemented.
[0147] The readable storage medium may include, but is not limited to, a portable disk, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory, an optical storage device, a magnetic storage device, or any suitable combination thereof.
[0148] In a possible implementation manner, the present invention can also be implemented in the form of a program product, which includes program code. When the program product is run on a terminal device, the program code is used to enable the terminal device to execute the pixel-level color correction method provided in Example 1.
[0149] The program code for executing the present invention may be written in any combination of one or more programming languages, and may be executed entirely on the user device, partially on the user device, as an independent software package, partially on the user device and partially on a remote device, or entirely on the remote device.
[0150] Although specific embodiments of the present invention have been described above, those skilled in the art will appreciate that these are merely illustrative and that the scope of the present invention is defined by the appended claims. Those skilled in the art may make various changes or modifications to these embodiments without departing from the principles and essence of the present invention, and such changes and modifications are intended to fall within the scope of the present invention.
Claims
1. A pixel-level color correction method, characterized in that: The correction method comprises: Obtaining a target pixel in an image and determining a color region corresponding to the target pixel; Based on the color area, obtaining a color correction matrix corresponding to the target pixel; Correcting the target pixel based on the color correction matrix; The step of obtaining the color correction matrix corresponding to the target pixel includes: Obtaining the angle of the boundary axis of the color area, the rotation angle of the boundary axis, and the length of the boundary axis; determining a color correction matrix corresponding to each color region based on the angle of the boundary axis, the rotation angle of the boundary axis, and the length of the boundary axis; The correction method further comprises: Corresponding restriction conditions are set on the boundary axes of the color area, between the angles of adjacent boundary axes, between the angles of adjacent boundary axes and the rotation angles of the boundary axes, and between the angles of adjacent boundary axes, the rotation angles of the boundary axes and the lengths of the boundary axes.
2. The pixel-level color correction method according to claim 1, wherein: The step of determining the color area corresponding to the target pixel includes: Get the brightness information of the image; Processing the brightness information in different levels to determine the corresponding level of the brightness information; Based on the gear corresponding to the brightness information, the UV color space is divided into different areas to determine the color area corresponding to the target pixel.
3. The pixel-level color correction method according to claim 1, wherein: The restrictions include: The parameter difference of the boundary axis of the color area is not less than the parameter difference of the rotation angle corresponding to the boundary axis; and / or, when the parameter difference of the boundary axis of the color region gradually increases, the sum of the parameter difference of the boundary axis of the color region plus the rotation angle corresponding to the boundary axis keeps increasing; And / or, 1 / 20 of the difference between the sum of the parameter values of two adjacent axes of the color region and the rotation angle corresponding to the boundary axis is greater than the difference between the lengths of the two adjacent axes of the color region.
4. The pixel-level color correction method according to claim 1, wherein: The step of correcting the target pixel based on the color correction matrix includes: A corresponding mapping transformation is performed on the UV value of the target pixel based on the color correction matrix to correct the target pixel.
5. A pixel-level color correction system, characterized in that: The correction system comprises: A color region determination module is used to obtain a target pixel in an image and determine a color region corresponding to the target pixel; An acquisition module, configured to acquire a color correction matrix corresponding to the target pixel based on the color region; a correction module, configured to correct the target pixel based on the color correction matrix; The acquisition module includes: a second acquiring unit, configured to acquire an angle of a boundary axis of the color region, a rotation angle of the boundary axis, and a length of the boundary axis; a correction matrix determining unit, configured to determine a color correction matrix corresponding to each color region based on the angle of the boundary axis, the rotation angle of the boundary axis, and the length of the boundary axis; The correction system also includes: The setting module is used to set corresponding restriction conditions on the boundary axis of the color area, between the angles of adjacent boundary axes, between the angles of adjacent boundary axes and the rotation angles of the boundary axes, and between the angles of adjacent boundary axes, the rotation angles of the boundary axes and the lengths of the boundary axes.
6. The pixel-level color correction system according to claim 5, wherein: The color region determination module includes: A first acquiring unit, configured to acquire brightness information of an image; a gear determination unit, configured to process the brightness information into different gears to determine a gear corresponding to the brightness information; The color region determining unit is configured to divide the UV color space into different regions based on the gear corresponding to the brightness information, so as to determine the color region corresponding to the target pixel.
7. The pixel-level color correction system according to claim 5, wherein: The restrictions include: The parameter difference of the boundary axis of the color area is not less than the parameter difference of the rotation angle corresponding to the boundary axis; and / or, when the parameter difference of the boundary axis of the color region gradually increases, the sum of the parameter difference of the boundary axis of the color region plus the rotation angle corresponding to the boundary axis keeps increasing; And / or, 1 / 20 of the difference between the sum of the parameter values of two adjacent axes of the color region and the rotation angle corresponding to the boundary axis is greater than the difference between the lengths of the two adjacent axes of the color region.
8. The pixel-level color correction system according to claim 5, wherein: The correction module is specifically used for: A corresponding mapping transformation is performed on the UV value of the target pixel based on the color correction matrix to correct the target pixel.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and configured to run on the processor, wherein: When the processor executes the computer program, the pixel-level color correction method according to any one of claims 1 to 4 is implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the pixel-level color correction method according to any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
Systems, methods, and apparatus for image processing, for color classification, and for skin color detection
CN101288103A
Digital image color correcting method and realizing device
CN102769759A