Image color adjustment method and device, electronic equipment and computer storage medium

By determining the coordinate range and mapping relationship of color channel parameters in a preset coordinate system, the problem of low HSL debugging color accuracy is solved, and high-precision image color debugging and color consistency between devices are achieved.

CN120707434APending Publication Date: 2025-09-26GUANGZHOU SHIYUAN ELECTRONICS CO LTD +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410351379.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-26
Publication Date
2025-09-26

AI Technical Summary

Technical Problem

When the existing technology uses the HSL method to debug image colors, the color replacement accuracy is low and high-precision image color replacement cannot be achieved. In particular, it is difficult to achieve consistency in color effects between different devices.

Method used

By obtaining the color channel parameters of the image to be debugged, determining the coordinate range and mapping relationship in the preset coordinate system, and adjusting the color channel parameters to achieve high-precision color debugging, including determining the total color level, minimum adjustment color level and coordinate range of the color component, precise positioning and adjustment are performed.

Benefits of technology

It achieves precise control and free adjustment of image color, improves the precision and consistency of color adjustment, and ensures consistent color effects between different devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120707434A_ABST
    Figure CN120707434A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of image processing, and discloses an image color adjustment method and device, electronic equipment and a computer storage medium, and the method comprises the steps: obtaining color channel parameters of pixel points in a to-be-debugged image, the color channel parameters comprising the current color gradation of a plurality of color components of the pixel points in the to-be-debugged image in the current color space; determining a coordinate range of each color component in a preset coordinate system according to the target color depth; based on a mapping relationship between the coordinate range and a total color gradation corresponding to the color component, determining a position coordinate corresponding to a current color gradation of a color channel parameter of the to-be-debugged image in the coordinate range; and adjusting the color channel parameters on the position coordinates to obtain a target debugging image. According to the method and the device, accurate control and free debugging of the image color are realized, and the color debugging precision can be concrete, so that when the image color is debugged, the high-precision color gradation can be adjusted through the coordinates, and the fineness of image color debugging is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to an image color adjustment method, device, electronic device and computer storage medium. Background Art

[0002] Each pixel in an image is composed of RGB (RED, GREEN, BLUE). Currently, image color tuning is typically performed using HSL (Hue, Saturation, Luma). HSL and RGB are two color spaces. HSL is composed of hue, saturation, and brightness, and each pixel is composed of HSL components. Color tuning is achieved by tuning these three components. However, when using HSL to replace RGB colors, the color replacement accuracy is low, making it impossible to achieve high-precision image color replacement.

[0003] For example, there are two devices A and B, and their color display effects are completely inconsistent. Among them, B is a comparison device, and the color effect of A needs to be adjusted to be consistent with B. Color replacement through HSL alone cannot cover all color levels of RGB (0-255). Currently, when debugging image colors through HSL, the three components are usually divided into multiple segments for debugging. For example, the chroma (Hue) of all colors is divided into 32 segments, and each segment contains approximately 255 / 32=7.97. If the color levels within these 8 need to be differentiated, it is difficult to do so; and if it is divided into 255 segments, it will increase the debugging difficulty and development cost. Therefore, when color calibrating images, it is currently impossible to achieve a completely consistent color replacement of two pictures. Summary of the Invention

[0004] The embodiments of the present application provide an image color adjustment method, device, electronic device and computer storage medium, which can solve the current technical problem of low image color replacement accuracy.

[0005] The present invention provides an image color calibration method, including:

[0006] Obtaining color channel parameters of a pixel in the image to be debugged, wherein the color channel parameters include current color levels of multiple color components of the pixel in the image to be debugged in the current color space;

[0007] Determining a coordinate range of each color component in a preset coordinate system according to a target color depth corresponding to the image to be debugged;

[0008] Based on the mapping relationship between the coordinate range and the total color levels corresponding to the color components, determining the position coordinates corresponding to the current color levels of the color channel parameters of the image to be debugged in the coordinate range;

[0009] The color channel parameters are adjusted at the position coordinates to obtain a target debugging image corresponding to the image to be debugged.

[0010] Furthermore, the above-mentioned determining the coordinate range of each color component in a preset coordinate system according to the target color depth corresponding to the image to be debugged includes:

[0011] Determining the total color scale corresponding to the color component according to the target color depth corresponding to the image to be debugged;

[0012] Dividing the total color scale according to the minimum adjustment color scale to obtain the target color adjustment accuracy;

[0013] The target color adjustment precision is mapped to a preset coordinate system to obtain the coordinate range of the color component in the coordinate system.

[0014] Furthermore, the above-mentioned determining the position coordinates corresponding to the current color level of the color channel parameter of the image to be debugged in the coordinate range based on the mapping relationship between the coordinate range and the total color level corresponding to the color component includes:

[0015] Selecting a target color component to be debugged from the color components, and determining color components other than the target color component from the color components as candidate color components;

[0016] Determining, based on a mapping relationship between the coordinate range and the total color levels corresponding to the color components, that the current color level of the candidate color component is at a first coordinate point in the coordinate range, and that the current color level of the target color component is at a second coordinate point in the coordinate range;

[0017] The position coordinates corresponding to the current color level of the color channel parameter in the coordinate range are determined through the first coordinate point and the second coordinate point.

[0018] Furthermore, there are multiple candidate color components.

[0019] The step of determining, based on a mapping relationship between the coordinate range and the total color scale corresponding to the color component, the color scale of the candidate color component at a first coordinate point in the coordinate range and the color scale of the target color component at a second coordinate point in the coordinate range includes:

[0020] Mapping the current color levels of the plurality of candidate color components according to the mapping relationship to obtain a plurality of coordinate values, and determining the first coordinate point from the plurality of coordinate values;

[0021] Direction information of the target color component in the coordinate system is obtained, and the current color scale of the target color component is mapped according to the direction information and the mapping relationship to obtain the second coordinate point.

[0022] Furthermore, the above-mentioned adjusting the color channel parameters at the position coordinates to obtain the target debugging image corresponding to the image to be debugged includes:

[0023] Determining the pixel point to be debugged corresponding to the color channel parameter in the image to be debugged according to the first coordinate point and the second coordinate point in the position coordinate;

[0024] The color scale of the pixel to be debugged is adjusted at the first coordinate point to obtain a target debugging image corresponding to the image to be debugged.

[0025] Furthermore, the above-mentioned adjusting the color channel parameters at the position coordinates to obtain the target debugging image corresponding to the image to be debugged also includes:

[0026] Obtaining the debugging amplitude corresponding to the image to be debugged;

[0027] The color channel parameters are adjusted at the position coordinates according to the debugging amplitude to obtain a target debugging image corresponding to the image to be debugged.

[0028] Furthermore, the above-mentioned obtaining of the debugging amplitude corresponding to the image to be debugged includes:

[0029] Positioning the color channel parameters in a multidimensional color model corresponding to the current color space to obtain spatial coordinates of the color channel parameters;

[0030] The debugging amplitude corresponding to the image to be debugged is determined according to the spatial coordinates and the target debugging color.

[0031] Accordingly, an embodiment of the present application provides an image color calibration device, comprising:

[0032] An identification module is used to obtain color channel parameters of pixels in the image to be debugged, wherein the color channel parameters include current color levels of multiple color components of the pixels in the image to be debugged in the current color space;

[0033] A first confirmation module is configured to determine a coordinate range of each color component in a preset coordinate system according to a target color depth corresponding to the image to be debugged;

[0034] A second confirmation module is configured to determine the position coordinates corresponding to the current color level of the color channel parameter of the image to be debugged in the coordinate range based on a mapping relationship between the coordinate range and the total color level corresponding to the color component;

[0035] The adjustment module is used to adjust the color channel parameters at the position coordinates to obtain a target debugging image corresponding to the image to be debugged.

[0036] In addition, an embodiment of the present application also provides an electronic device, including a processor and a memory, wherein the memory stores a computer program, and the processor is used to run the computer program in the memory to implement the image color adjustment method provided in the embodiment of the present application.

[0037] In addition, an embodiment of the present application further provides a computer storage medium, wherein the computer storage medium stores a computer program, and the computer program is suitable for loading by a processor to execute any one of the image color adjustment methods provided in the embodiment of the present application.

[0038] In addition, an embodiment of the present application further provides a computer program product, including a computer program, which, when executed by a processor, implements any one of the image color adjustment methods provided in the embodiments of the present application.

[0039] In an embodiment of the present application, color channel parameters of a pixel in an image to be debugged are obtained, where the color channel parameters include the current color levels of multiple color components of the pixel in the image to be debugged in the current color space. Based on the target color depth corresponding to the image to be debugged, the coordinate range of each color component in a preset coordinate system is determined, thereby achieving accurate representation of the target color depth through the coordinate range. Furthermore, the debugging accuracy of the image color can be freely adjusted by adjusting the coordinate range. Then, based on the mapping relationship between the coordinate range and the total color levels corresponding to the color components, the position coordinates corresponding to the current color levels of the color channel parameters of the image to be debugged in the coordinate range are determined, thereby achieving precise positioning of the color channel parameters in the coordinate range. Finally, the color channel parameters are adjusted at the position coordinates to obtain the target debugging image corresponding to the image to be debugged. Thus, precise control and free debugging of the image color are ultimately achieved. Furthermore, the mapping between the coordinate range and the target color depth can visualize the color debugging accuracy, so that when debugging the image color, high-precision color levels can also be adjusted through the coordinates, further improving the precision of the image color debugging. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0041] Figure 1This is a flowchart of the image color calibration method provided by this application;

[0042] Figure 2 This is an RGB debugging table with a resolution of 9x9x9 provided in an embodiment of the present application;

[0043] Figure 3 Schematic diagram of the color level corresponding to the blue component provided in an embodiment of the present application increasing by 100;

[0044] Figure 4 Schematic diagram of a color scale corresponding to a blue component reduced by 100 according to an embodiment of the present application;

[0045] Figure 5 Schematic diagram of a color scale corresponding to a blue component reduced by 1024 according to an embodiment of the present application;

[0046] Figure 6 This is an RGB debugging table with a resolution of 3x3x3 provided in an embodiment of the present application;

[0047] Figure 7 This is an RGB debugging table with a resolution of 17x17x17 provided in an embodiment of the present application;

[0048] Figure 8 It is the 3DRGB model provided in the embodiment of the present application;

[0049] Figure 9 is a structural diagram of an image color adjustment device provided in an embodiment of the present application;

[0050] Figure 10 It is a structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0051] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without making creative efforts are within the scope of protection of this application.

[0052] The present invention provides an image color calibration method, device, electronic device, and computer storage medium. The image color calibration device can be integrated into an electronic device, which can be a server, a terminal, or other device.

[0053] Among them, the server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, network acceleration services (Content Delivery Network, CDN), as well as big data and artificial intelligence platforms.

[0054] The terminal may be a smartphone, tablet computer, laptop computer, desktop computer, smart speaker, smart watch, intelligent interactive flat panel (IFP), etc., but is not limited thereto. The terminal and the server may be directly or indirectly connected via wired or wireless communication, and this application does not impose any restrictions thereon.

[0055] In addition, the term "a plurality of" in the embodiments of the present application refers to two or more than two. The terms "first" and "second" in the embodiments of the present application are used to distinguish descriptions and should not be understood to imply relative importance.

[0056] Currently, image color tuning is typically performed using HSL (Hue, Saturation, Luma). HSL and RGB are two color spaces. HSL is composed of hue, saturation, and brightness, and each pixel is composed of HSL components. Color tuning is achieved by tuning these three components. However, when using HSL to replace RGB colors, the color replacement accuracy is low, making it impossible to achieve high-precision image color replacement.

[0057] For example, there are two devices A and B, and their color display effects are completely inconsistent. Among them, B is a comparison device, and the color effect of A needs to be adjusted to be consistent with B. Color replacement through HSL alone cannot cover all color levels of RGB (0-255). Currently, when debugging image colors through HSL, the three components are usually divided into multiple segments for debugging. For example, the chroma (Hue) of all colors is divided into 32 segments, and each segment contains approximately 255 / 32=7.97 color levels. If differentiation is required within these 8 color levels, it is difficult to do so; and if it is divided into 255 segments, it will increase the debugging difficulty and development cost. Therefore, when color calibrating images, it is currently impossible to achieve a completely consistent color replacement of two pictures.

[0058] Based on this, the present application obtains color channel parameters of pixels in the image to be debugged, where the color channel parameters include the current color levels of multiple color components of the pixels in the image to be debugged in the current color space; determines the coordinate range of each color component in a preset coordinate system based on the target color depth corresponding to the image to be debugged, thereby achieving accurate representation of the target color depth through the coordinate range, and further enables the debugging accuracy of the image color to be freely adjusted by adjusting the coordinate range; then, based on the mapping relationship between the coordinate range and the total color level corresponding to the color component, determines the position coordinates corresponding to the current color level of the color channel parameters of the image to be debugged in the coordinate range, thereby achieving accurate positioning of the color channel parameters in the coordinate range; finally, adjusts the color channel parameters at the position coordinates to obtain the target debugging image corresponding to the image to be debugged, thereby ultimately achieving precise control and free debugging of the image color, and through the mapping of the coordinate range and the target color depth, the color debugging accuracy can be visualized, so that when debugging the image color, high-precision color levels can also be adjusted through coordinates, further improving the precision of image color debugging.

[0059] It should be noted that the order of description of the following embodiments is not intended to limit the preferred order of the embodiments.

[0060] See also Figure 1 , Figure 1 FIG. 1 is a flow chart of an image color calibration method provided in an embodiment of the present application. The image color calibration method may include:

[0061] S101: Acquire color channel parameters of a pixel in an image to be debugged, where the color channel parameters include current color levels of multiple color components of the pixel in the image to be debugged in a current color space.

[0062] In the present embodiment, the image to be debugged is an image in the current color space, such as an image in the RGB color space. In order to make the image have the same color display effect on different devices, the image to be debugged can be a pre-generated test image or an image that needs to be adjusted. The color channel parameters of the pixels in the image to be debugged can be the color channel parameters of a certain pixel in the image to be debugged, or the color channel parameters of all pixels in a certain image area, or the color channel parameters of all pixels in the entire image to be debugged. The color channel parameters include the current color scales of multiple color components of the pixels of the image to be debugged in the current color space. In the image to be debugged, each pixel has corresponding color channel parameters, and the current color scales of multiple color components of the color channel parameters corresponding to each pixel in the current color space can be different. If the color channel parameter is a parameter for a pixel, the current color level corresponding to each color component in the color channel parameter is the component value of the pixel; if the color channel parameter is a parameter for an image region, the current color level corresponding to each color component in the color channel parameter is the component value of the color component corresponding to the pixel in the image region; if the color channel parameter is a parameter for the image to be debugged, the current color level corresponding to each color component in the color channel parameter is the component value of the color component corresponding to the pixel in the image to be debugged. It should be noted that the component value of the color component corresponding to the pixel in the image region or the image to be debugged can be the average of the component values ​​of the color components corresponding to all pixels in the image region or the image to be debugged, or it can be a component value that can be used to refer to a portion of the pixels in the image region or the image to be debugged. For example, RGB(255,255,x) can refer to all pixels in the image region or the image to be debugged whose R component value is 255, G component value is 255, and B component value is x, where x is used to indicate an arbitrary component value. For example, pixels such as RGB(255,255,1) and RGB(255,255,2) can be represented by RGB(255,255,x). When the current color level corresponding to each color component in the input color channel parameters is (255,255,x), all pixels represented by the current color level can be adjusted.

[0063] Here, a color component refers to a color component in the current color space. A color channel parameter includes multiple color components, such as the red component, green component, and blue component in the RGB color space. The color channel parameter is obtained based on the multiple color components and their corresponding current color levels. For example, in the RGB color space, the color channel parameter can be RGB(255,0,128), where 255 is the current color level corresponding to the red component, 0 is the current color level corresponding to the green component, and 128 is the current color level corresponding to the blue component.

[0064] S102: Determine a coordinate range of each color component in a preset coordinate system according to a target color depth corresponding to the image to be debugged.

[0065] In this embodiment, the target display device is the device that displays the target image to be debugged. In a specific implementation scenario, the color effect of the image to be debugged needs to be adjusted so that the color effect of the image to be debugged on the target display device is consistent with the color effect of the image to be debugged on the current display device. The target color depth is the color depth of the image to be debugged displayed on the target display device. This target color depth reflects the information content of the signal output by the image to be debugged on the target display device. The maximum value of this target color depth is determined by the color range that the target display device can distinguish, and the specific value can be determined by the color accuracy required by the image to be debugged on the target display device. For example, if the target display device supports a 16-bit bit depth, it can be determined that the maximum value of the target color depth on this target display device can be 16 bits. The image to be debugged is displayed on the current display device, and by color debugging the image to be debugged, an image that matches the image display effect of the target display device can be obtained. The target display device is the device that displays the target debugged image. The unit of this target color depth is bits, such as 8 bits, 10 bits, and 16 bits. Based on this target color depth, the coordinate range of each color component in a preset coordinate system can be determined. The coordinate ranges of the color components in the preset coordinate system are the same, but the starting coordinates and ending coordinates of the coordinate ranges corresponding to different color components are different in the coordinate system.

[0066] S103: Determine the position coordinates corresponding to the current color level of the color channel parameter of the image to be debugged in the coordinate range based on the mapping relationship between the coordinate range and the total color level corresponding to the color component.

[0067] In this embodiment, the total color level is the total color level of the color component. The total color level corresponding to the color component can be determined according to the target color depth, and the total color levels corresponding to different color components are the same. For example, when the target color depth is 8 bits, the total color level corresponding to each color component is 256, that is, each color component corresponds to 256 brightness levels. For example, when the red color component is 255, it means that the brightness level of red is 255. According to the mapping relationship between the coordinate range and the total color level, the coordinates corresponding to the current color level of each color component in the coordinate range can be determined, and the position coordinates corresponding to the color channel parameters including the color component can be determined through the coordinates. Among them, the mapping relationship can be the ratio of the coordinate range to the total color level.

[0068] S104: Adjust the color channel parameters at the position coordinates to obtain a target debugging image corresponding to the image to be debugged.

[0069] In this embodiment, the target debugging image is an image after debugging the image to be debugged, and the color channel parameters are adjusted at the position coordinates to obtain the target debugging image after debugging the image to be debugged.

[0070] Take the coordinate system in the table as an example, Figure 2 As shown, Figure 2 The RGB debugging table has a resolution of 9x9x9. In one embodiment, the color channel parameters in the image to be debugged can be adjusted through the RGB debugging table. Figure 2 In the RGB debugging table, the coordinate ranges of each color component are from column B to column J of the first row, column B to column J of the fifth row, and rows 6 to 14 of column A. The coordinate range of each color component is 9.

[0071] For example, a color picture is currently being played, and the RGB composition is (256, 256, 128). It is necessary to increase the blue component through debugging. The blue component is the target color component, and the current color level of the blue component is 128. In order to avoid adjusting the pixel points whose color level of the red component R is 256, the color level of the green component G is 256, and the color level of the blue component is not 128, such as adjusting the pixel points of RGB (256, 256, 64) and RGB (256, 256, 128). In the specific adjustment process, it is necessary to lock the position of the blue component with a current color level of 128, so that the blue component 128 can be adjusted at the locked position of the pixel point (256, 256, 128) without adjusting other pixels. By Figure 2 It can be seen that the coordinate of the blue component is C1. The blue component is locked at the C1 position, so that when adjusting the blue component, the blue component of 128 can be adjusted at the locked position coordinate. If it is necessary to adjust all pixels with a color level of 256 for the R color component and a color level of 256 for the G color component, then the position coordinate does not need to be locked. In the RGB, the red component and the green component other than the blue component are the candidate color components. Figure 2 From the coordinates of the red and green components, we can find that the coordinate corresponding to the candidate color component is D8. Thus, the position coordinates of RGB (256, 256, 128) in this coordinate system are confirmed. This position coordinate includes C1 and D8.

[0072] The blue component is increased or decreased in the range of 0 to 1024. When the blue component needs to be increased by 100, the C1 position corresponding to the current color level 128 of the blue component is locked, and then the value at D8 is adjusted to 100. Figure 3 As shown, Figure 3The diagram shows the blue component increasing the color level by 100. When the blue component needs to be reduced by 100, the C1 position where the current color level 128 of the blue component is located is locked, and then the value at D8 is adjusted to -100. Figure 4 As shown, Figure 4 The following is a diagram showing the color level corresponding to the blue component reduced by 100. However, the current color level cannot be adjusted to a negative number. For example, if the current color level is 128 and it is reduced by 1024, it can only be reduced by 128 at most. When the color level is reduced to 0, the adjustment stops. Figure 5 As shown, Figure 5 The following diagram shows a decrease of 1024 in the blue component's color level. When the blue component increases by 100, the adjusted parameters are directly applied to the software, and the original RGB value (256, 256, 128) changes to (256, 256, 228). The image effect shows an increase in the blue component, thus achieving the desired display effect.

[0073] This embodiment obtains color channel parameters of pixels in the image to be debugged, where the color channel parameters include the current color levels of multiple color components of the pixel in the image to be debugged in the current color space. Based on the target color depth corresponding to the image to be debugged, the coordinate range of each color component in a preset coordinate system is determined, thereby achieving accurate representation of the target color depth through the coordinate range. Furthermore, the image color debugging accuracy can be freely adjusted by adjusting the coordinate range. Then, based on the mapping relationship between the coordinate range and the total color levels corresponding to the color components, the position coordinates corresponding to the current color levels of the color channel parameters of the image to be debugged within the coordinate range are determined, achieving precise positioning of the color channel parameters within the coordinate range. Finally, the color channel parameters are adjusted at the position coordinates to obtain the target debugging image corresponding to the image to be debugged. This ultimately achieves precise control and free debugging of the image color. The mapping between the coordinate range and the target color depth can visualize the color debugging accuracy, allowing high-precision color levels to be adjusted through coordinates during image color debugging, further improving the precision of image color debugging.

[0074] In some embodiments of the present application, determining the coordinate range of each color component in a preset coordinate system according to the target color depth corresponding to the image to be debugged includes:

[0075] Determining the total color scale corresponding to the color component according to the target color depth corresponding to the image to be debugged;

[0076] Dividing the total color scale according to the minimum adjustment color scale to obtain the target color adjustment accuracy;

[0077] The target color adjustment precision is mapped to a preset coordinate system to obtain the coordinate range of the color component in the coordinate system.

[0078] In this embodiment, the total color scale corresponding to the target color depth is calculated. For example, if the total color scale corresponding to a 10-bit signal is 1024, then the total color scale corresponding to each color component is also 1024. The minimum adjustment scale is a pre-set minimum adjustment unit. For an image with a total color scale of 1024, this minimum adjustment scale can be set to 64, or other preset values ​​such as 8, 16, or 32, although this embodiment is not limited thereto. The minimum adjustment scale can be determined by the coarseness or fineness of the image signal adjustment. If high-precision adjustment is required, the minimum adjustment scale value is smaller; if coarse-precision adjustment is required, the minimum adjustment scale value is larger. Subsequently, the target color adjustment accuracy corresponding to the color component can be calculated based on the total color scale corresponding to the target color depth and the minimum adjustment scale. From the above example, the target color adjustment accuracy can be calculated as 1024 / 64 = 17. This target color adjustment accuracy is mapped to a preset coordinate system to obtain the coordinate range of each color component in the coordinate system. For example, when the target color adjustment precision is 17, the target color adjustment precision is mapped to the RGB table, and the coordinate range corresponding to each color component is obtained. For example, the coordinate range of the green component is 6 to 22, a total of 17 coordinate values; the coordinate range of the red component is B to R, also a total of 17 coordinate values; the blue component also corresponds to 17 coordinate values. In this way, a coordinate system with different coordinate resolutions is obtained. The target color adjustment precision is 17, and the corresponding coordinate resolution is 17x17x17; for the target color adjustment precision is 9, the corresponding coordinate resolution is 9x9x9. As the minimum adjustment color level changes, the coordinate resolution of the coordinate system will also change; the smaller the value of the minimum adjustment color level, the higher the coordinate resolution of the coordinate system, and the higher the color adjustment accuracy of the image to be debugged.

[0079] Through different target color depths, you can select coordinate systems corresponding to different coordinate resolutions to map color levels and coordinates. Among them, when the coordinate system is set in a table, the coordinate resolution is the resolution of the table. Tables with different resolutions can be reduced and enlarged by interpolation to adjust the resolution and then adjust the adjustment accuracy of the color components. For example, by enlarging a table with a resolution of 9x9x9 through interpolation, the resolution of the table can be adjusted to 17x17x17. Compared to 9x9x9, the coordinates divided by 17x17x17 can make more fine adjustments to the color levels of each color component. Figure 6 and Figure 7 As shown, Figure 6 For the RGB debugging table with a resolution of 3x3x3, Figure 7This is an RGB debugging table with a resolution of 17x17x17.

[0080] In addition, since the color depth of the image to be debugged on the current display device may be different from the target color depth, for example, the color depth of the image to be debugged on the current display device may be 8 bits, while the target color depth is 10 bits. When color debugging the image to be debugged, the 8-bit image can be converted to 10 bits for processing, and then the color adjustment is performed at the corresponding 10-bit resolution. This ensures the accuracy of color debugging.

[0081] This embodiment determines the total color level corresponding to the color component through the target color depth, and then divides the total color level through the minimum adjustment color level to obtain the target color adjustment accuracy. Finally, the target color adjustment accuracy is mapped to a preset coordinate system to obtain a coordinate range, so that the target color adjustment accuracy can be accurately characterized through the coordinate range, and further different target color adjustment accuracies can be freely adjusted through different coordinate ranges. While accurately positioning the color components through the coordinates, the speed of color debugging can be further improved, and a rapid response of color debugging can be achieved.

[0082] In some embodiments of the present application, determining the position coordinates corresponding to the current color level of the color channel parameter of the image to be debugged within the coordinate range based on the mapping relationship between the coordinate range and the total color level corresponding to the color component includes:

[0083] Selecting a target color component to be debugged from the color components, and determining color components other than the target color component from the color components as candidate color components;

[0084] Determining, based on a mapping relationship between the coordinate range and the total color levels corresponding to the color components, that the current color level of the candidate color component is at a first coordinate point in the coordinate range, and that the current color level of the target color component is at a second coordinate point in the coordinate range;

[0085] The position coordinates corresponding to the current color level of the color channel parameter in the coordinate range are determined through the first coordinate point and the second coordinate point.

[0086] In this embodiment, the target color component is the color component that needs to be adjusted among the multiple color components included in the color channel parameters. The target color component is determined by the target debugging color corresponding to the image to be debugged, wherein the target debugging color is the adjusted color. By adjusting the color corresponding to the color channel parameters to the target debugging color, different color effects of the image to be debugged can be achieved. The color component that needs to be debugged in the color channel parameters is determined based on the target debugging color. There can be multiple color components that need to be debugged, and each time, one color component is selected from the multiple color components that need to be debugged as the target color component. Then, the color components in the color channel parameters other than the target color component are determined as candidate color components.

[0087] The mapping relationship is the relationship between the coordinate range and the total color level corresponding to the color component. The total color level is the total color level value of each color component. For example, for an image with a bit depth of 10 bits, the total color level value of the image is 2 10 = 1024, and the total color scale corresponding to different color components is the same. For example, when the total color scale is 1024 and the coordinate range is from B to J, with 9 levels, the mapping relationship between the coordinate range and the total color scale is 1:128, that is, one coordinate unit corresponds to one color scale of 128. Based on this mapping relationship, the current color scales corresponding to the candidate color components and the target color component are mapped to obtain the first coordinate point and the second coordinate point. The position coordinate corresponding to the color channel parameter is composed of the first coordinate point and the second coordinate point.

[0088] This embodiment selects the target color component and the candidate color component from the color components, so that the selected target color component can be adjusted separately, further improving the fineness of the adjustment of each color component. Afterwards, the coordinate points corresponding to the current color level of each color component are determined according to the mapping relationship, thereby achieving precise positioning of the color channel parameters in the coordinate system, so that the color channel parameters can be accurately adjusted through the determined position coordinates.

[0089] In some embodiments of the present application, there are multiple candidate color components, and determining, based on a mapping relationship between the coordinate range and the total color scale corresponding to the color component, the color scale of the candidate color component at a first coordinate point in the coordinate range and the color scale of the target color component at a second coordinate point in the coordinate range includes:

[0090] Mapping the current color levels of the plurality of candidate color components according to the mapping relationship to obtain a plurality of coordinate values, and determining the first coordinate point from the plurality of coordinate values;

[0091] Direction information of the target color component in the coordinate system is obtained, and the current color scale of the target color component is mapped according to the direction information and the mapping relationship to obtain the second coordinate point.

[0092] In this embodiment, the current color scale of each candidate color component is mapped according to a mapping relationship to obtain the coordinate values ​​corresponding to each candidate color component. Multiple candidate color components correspond to multiple coordinate values, and a first coordinate point is determined from these multiple coordinate values. Specifically, the coordinate axis direction of each candidate color component in the coordinate system is obtained. Different candidate color components have different coordinate axis directions in the coordinate system. Based on the coordinate axis directions, a target coordinate value is selected from the coordinate values ​​corresponding to each candidate color component. The target coordinate values ​​corresponding to the candidate color components in different coordinate axis directions constitute the first coordinate point.

[0093] The coordinate system can be set in a table, and the columns and rows of the table respectively indicate the first coordinate axis direction and the second coordinate axis direction in the coordinate system, so that the coordinates in the table can quickly respond to the color adjustment. Figure 2 As shown, Figure 2 is an RGB debugging table with a resolution of 9x9x9. The RGB of the image to be debugged is (256, 256, 128), where the blue component is the target color component, and the red and green components are candidate color components. The current color level of the candidate color components is 256. In this RGB debugging table, the coordinate value of the red component can be determined to be (D, 8) and the coordinate value of the green component can be determined to be (A, 8). Figure 2 As can be seen, the coordinate axis direction of the red component is the row direction. Therefore, the non-row (i.e., column) coordinate value D is selected from the red component coordinate value (D, 8) as the target coordinate value. The coordinate axis direction of the green component is the column direction. Therefore, the non-column (i.e., row) coordinate value 8 is selected from the green component coordinate value (A, 8) as the target coordinate value. The target coordinate values ​​corresponding to the red and green components respectively constitute the first coordinate point (D, 8).

[0094] The direction information of the target color component in the coordinate system is the pre-set direction information. For example, Figure 2The blue component in the middle is the target color component, and the direction information of the blue component is the first row, that is, the coordinate value of the target color component in the direction of the second coordinate axis in the coordinate system is 1. According to the direction information and the mapping relationship, the current color level of the target color component is mapped to obtain the second coordinate point. Specifically, when the total color level is [0,1024], the coordinate range is B to J, 9 levels, then the mapping relationship between the coordinate range and the total color level is 1:128, that is, one coordinate unit corresponds to a color level of 128. According to the mapping relationship, the current color level of the target color component is mapped, and the coordinate value corresponding to the coordinate value of 128 in the direction of the first coordinate axis of the target color component is obtained, that is, Figure 2 Thus, according to the coordinate values ​​in the direction of the first coordinate axis and the coordinate values ​​in the direction of the second coordinate axis, the second coordinate point corresponding to the current color level of the target color component is obtained as (C, 1).

[0095] This embodiment maps the current color level of the candidate color component and the current color level of the target color component respectively through a mapping relationship to obtain a first coordinate point and a second coordinate point, so that the color channel parameters can be accurately adjusted through the first coordinate point and the second coordinate point.

[0096] In some embodiments of the present application, the step of adjusting the color channel parameters at the position coordinates to obtain a target debugging image corresponding to the image to be debugged includes:

[0097] Determining the pixel point to be debugged corresponding to the color channel parameter in the image to be debugged according to the first coordinate point and the second coordinate point in the position coordinate;

[0098] The color scale of the pixel to be debugged is adjusted at the first coordinate point to obtain a target debugging image corresponding to the image to be debugged.

[0099] In this embodiment, the position coordinates include a first coordinate point and a second coordinate point. Among them, the first coordinate point is a coordinate point determined according to the current color level of the candidate color component. Therefore, according to the first coordinate point, the candidate pixel point in the image to be debugged that is the same color component as the candidate color component and whose color level is consistent with the current color level of the candidate color component can be located. For example, if the target color component selected from RGB (128, 64, 192) is 192, then the color components corresponding to 128 and 64 are the candidate color components, that is, the red component and the green component are the candidate color components. The pixel point with a red component of 128 and a green component of 64 in the image to be debugged is the candidate pixel point that is consistent with the candidate color component, and the RGB of the candidate pixel point is (128, 64, x), where x is an arbitrary value. In the example Figure 7In the coordinate system, the coordinates of the red component are (D, 5), the coordinates of the green component are (A, 7), and the first coordinate point is (D, 7). By obtaining all the pixel points corresponding to the first coordinate point, the candidate pixel points consistent with the candidate color component in the image to be debugged can be obtained.

[0100] The second coordinate point is the coordinate point corresponding to the current color level of the target color component. Therefore, according to the second coordinate point, the pixel point in the image to be debugged that is the same color component as the target color component and whose color level is consistent with the current color level of the target color component can be controlled. Therefore, after obtaining the candidate pixel point, according to the second coordinate point, the pixel point whose color level of the target color component is consistent with the current color level of the target color component can be obtained from the candidate pixel point. This pixel point is the pixel point to be debugged corresponding to the current color channel parameter. The color level of the pixel point to be debugged is adjusted at the first coordinate point to obtain the target debugging image corresponding to the image to be debugged.

[0101] Specifically, there may be multiple color components that need to be adjusted in the color channel parameters. For example, when RGB (255, 0, 0) is adjusted to (255, 128, 128), it can be determined that the color channel parameters include two color components that need to be adjusted, namely the green component and the blue component. When there are at least two color components that need to be adjusted in the color channel parameters, according to a preset selection order, the target color component is selected from the color components that need to be adjusted in turn, and the color components other than the target color component are determined as candidate color components. When the current target color component is adjusted, it is determined whether there are any remaining color components that need to be adjusted in the multiple color components. If so, the process returns to the step of selecting the target color component to be debugged from the color components, and determining the color components other than the target color component in the color components as candidate color components, until all color components that need to be adjusted in the color channel parameters are adjusted.

[0102] This embodiment determines the pixel point to be debugged corresponding to the color channel parameter through the position coordinates, thereby achieving accurate acquisition of the pixel point to be debugged, and then adjusts the color level of the pixel point to be debugged at the first coordinate point, thereby achieving accurate control of the color level of each color component in the pixel point to be debugged, further improving the color debugging accuracy.

[0103] In some embodiments of the present application, adjusting the color channel parameters at the above-mentioned position coordinates to obtain a target debugging image corresponding to the image to be debugged further includes:

[0104] Obtaining the debugging amplitude corresponding to the image to be debugged;

[0105] The color channel parameters are adjusted at the position coordinates according to the debugging amplitude to obtain a target debugging image corresponding to the image to be debugged.

[0106] In this embodiment, the adjustment amplitude is the adjustment amplitude of each color component in the color channel parameter. By performing gain or attenuation according to the adjustment amplitude based on the current color level corresponding to each color component, the color corresponding to the color channel parameter can be adjusted to the target adjustment color, so that the color effect of the image to be adjusted becomes the effect of the target adjustment color. Therefore, when the adjustment amplitude corresponding to the image to be adjusted is obtained, the color channel parameters are adjusted at the position coordinates according to the adjustment amplitude, and the target adjustment image corresponding to the image to be adjusted is obtained. Specifically, when adjusting the color channel parameters at the position coordinates according to the adjustment amplitude, the process can be carried out as described above, determining the pixel to be adjusted corresponding to the color channel parameter in the image to be adjusted according to the position coordinates, and then adjusting the color level of the pixel to be adjusted according to the adjustment amplitude at the first coordinate point.

[0107] This embodiment adjusts the color channel parameters at the position coordinates through the debugging amplitude to obtain a target debugging image corresponding to the image to be debugged, thereby achieving precise adjustment of the color channel parameters and ensuring consistency of the image effects before and after adjustment.

[0108] In some embodiments of the present application, the step of obtaining the debugging amplitude corresponding to the image to be debugged includes:

[0109] Positioning the color channel parameters in a multidimensional color model corresponding to the current color space to obtain spatial coordinates of the color channel parameters;

[0110] The adjustment range of the color channel parameter is determined according to the spatial coordinates and the target adjustment color.

[0111] In this embodiment, the multidimensional color model is a pre-built spatial color model corresponding to the current color space. For example, if the current color space is an RGB color space, the multidimensional color model corresponding to the RGB color space can be a 3DRGB model. The multidimensional color model includes each color and its corresponding spatial coordinates, where the spatial coordinates are used to indicate the color scale of each color.

[0112] like Figure 8 As shown, Figure 8The 3DRGB model is a 3DRGB model in which eight vertices represent the extreme colors of the RGB color space, and the values ​​of each edge range correspond to the range of the total color scale, that is, [0, 255]. The other points in the model represent colors that are mixed with varying degrees of red, green, and blue, and the R, G, and B values ​​of each point can be freely adjusted. Specifically, in this 3DRGB model, (0, 0, 0) corresponds to pure black, (255, 0, 0) corresponds to pure red, (0, 255, 0) corresponds to pure green, (0, 0, 255) corresponds to pure blue, (255, 255, 0) corresponds to pure yellow, (255, 0, 255) corresponds to magenta, (0, 255, 255) corresponds to pure cyan, and (255, 255, 255) is the maximum point in the model and corresponds to pure white.

[0113] In this multidimensional color model, the color channel parameters are located to obtain the spatial coordinates corresponding to the color channel parameters. The spatial coordinates corresponding to the target debugging color are then determined in the multidimensional color model. Based on the spatial coordinates corresponding to the color channel parameters and the spatial coordinates corresponding to the target debugging color, the debugging amplitude for adjusting the color corresponding to the color channel parameters to the target debugging color is determined. This debugging amplitude is the debugging amplitude corresponding to the image to be debugged.

[0114] For example, if you need to adjust a red point to an orange point, resulting in an orange effect on the image being adjusted, you need to reduce the level of the red component in the image being adjusted and increase the levels of the blue and green components. In a multidimensional color model, the adjustment amplitude for each color component can be determined based on the difference between the spatial coordinates corresponding to orange and red. Given that the RGB values ​​for red are (255, 0, 0) and those for orange are (239, 133, 16), the calculated adjustment amplitude is (R-16, G+133, B+16).

[0115] This embodiment can accurately determine the debugging amplitude corresponding to the image to be debugged through the spatial coordinates corresponding to the color channel parameters in the multidimensional color model and the target debugging color, so that each color in the current color space can be visualized through the multidimensional color model, and the debugging amplitude corresponding to the image to be debugged can be accurately and quickly obtained.

[0116] To facilitate better implementation of the image color calibration method provided in the embodiments of the present application, the embodiments of the present application also provide a device based on the aforementioned image color calibration method. The meanings of the terms herein are the same as those in the aforementioned image color calibration method. For specific implementation details, please refer to the description in the method embodiment.

[0117] For example, Figure 9 As shown, the image color adjustment device may include: an identification module 901, a first confirmation module 902, a second confirmation module 903 and an adjustment module 904.

[0118] Identification module 901, used to obtain color channel parameters of pixels in the image to be debugged, wherein the color channel parameters include current color levels of multiple color components of the pixels in the image to be debugged in the current color space;

[0119] A first confirmation module 902 is configured to determine a coordinate range of each color component in a preset coordinate system according to a target color depth corresponding to the image to be debugged;

[0120] The second confirmation module 903 is configured to determine the position coordinates corresponding to the current color level of the color channel parameter of the image to be debugged in the coordinate range based on the mapping relationship between the coordinate range and the total color level corresponding to the color component;

[0121] The adjustment module 904 is configured to adjust the color channel parameters at the position coordinates to obtain a target debugging image corresponding to the image to be debugged.

[0122] In one embodiment of the present application, the first confirmation module 902 includes:

[0123] A first confirmation unit is used to determine the total color scale corresponding to the color component according to the target color depth corresponding to the image to be debugged;

[0124] a division unit, configured to divide the total color level according to the minimum adjustment color level to obtain a target color adjustment accuracy;

[0125] The first mapping unit is configured to map the target color adjustment precision to a preset coordinate system to obtain a coordinate range of the color component in the coordinate system.

[0126] In one embodiment of the present application, the second confirmation module 903 includes:

[0127] a selection unit, configured to select a target color component to be debugged from the color components, and determine color components other than the target color component among the color components as candidate color components;

[0128] a coordinate confirmation unit, configured to determine, based on a mapping relationship between the coordinate range and the total color levels corresponding to the color components, whether the current color level of the candidate color component is at a first coordinate point within the coordinate range and whether the current color level of the target color component is at a second coordinate point within the coordinate range;

[0129] The second confirmation unit is configured to determine the position coordinates corresponding to the current color level of the color channel parameter in the coordinate range through the first coordinate point and the second coordinate point.

[0130] In one embodiment of the present application, the coordinate confirmation unit includes:

[0131] a second mapping unit, configured to map the current color levels of the plurality of candidate color components according to the mapping relationship to obtain a plurality of coordinate values, and determine the first coordinate point from the plurality of coordinate values;

[0132] The third mapping unit is used to obtain direction information of the target color component in the coordinate system, and map the current color level of the target color component according to the direction information and the mapping relationship to obtain the second coordinate point.

[0133] In one embodiment of the present application, the adjustment module 904 includes:

[0134] a third confirmation unit, configured to determine, based on the first coordinate point and the second coordinate point in the position coordinates, a pixel point to be debugged corresponding to the color channel parameter in the image to be debugged;

[0135] The adjusting unit is used to adjust the color scale of the pixel to be debugged at the first coordinate point to obtain a target debugging image corresponding to the image to be debugged.

[0136] In one embodiment of the present application, the adjustment unit further includes:

[0137] An acquiring unit, configured to acquire a debugging amplitude corresponding to the image to be debugged;

[0138] The adjusting subunit is configured to adjust the color channel parameters at the position coordinates according to the debugging amplitude to obtain a target debugging image corresponding to the image to be debugged.

[0139] In one embodiment of the present application, the acquisition unit includes:

[0140] a positioning unit, configured to locate the color channel parameters in a multidimensional color model corresponding to the current color space to obtain spatial coordinates of the color channel parameters;

[0141] The target confirmation unit is used to determine the debugging amplitude corresponding to the image to be debugged according to the space coordinates and the target debugging color.

[0142] The image color adjustment device proposed in this application realizes precise control and free adjustment of image color, and through the mapping of coordinate range and target color depth, the color adjustment accuracy can be visualized, so that when adjusting the image color, high-precision color levels can also be adjusted through coordinates, further improving the fineness of image color adjustment.

[0143] During specific implementation, the above modules can be implemented as independent entities, or they can be arbitrarily combined and implemented as the same or several entities. The specific implementation methods and corresponding beneficial effects of the above modules can be found in the previous method embodiments and will not be repeated here.

[0144] The embodiment of the present application also provides an electronic device, which may be a server or a terminal, etc. Figure 10 , which shows a schematic diagram of the structure of the electronic device involved in the embodiment of the present application, specifically:

[0145] The electronic device may include one or more processing core processors 601, one or more computer storage media memories 602, a power supply 603, an input unit 604 and other components. Those skilled in the art will understand that Figure 10 The electronic device structure shown in the figure does not constitute a limitation of the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange components differently.

[0146] Processor 601 is the control center of the electronic device. It connects all parts of the electronic device using various interfaces and circuits. It executes computer programs and / or modules stored in memory 602 and accesses data stored in memory 602 to perform various functions of the electronic device and process data. Optionally, processor 601 may include one or more processing cores. Preferably, processor 601 may integrate an application processor and a modem processor. The application processor primarily handles the operating system, user interface, and application programs, while the modem processor primarily handles wireless communications. It is understood that the modem processor may not be integrated into processor 601.

[0147] The memory 602 can be used to store computer programs and modules. The processor 601 executes various functional applications and data processing by running the computer programs and modules stored in the memory 602. The memory 602 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, a computer program required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 602 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage device. Accordingly, the memory 602 may also include a memory controller to provide the processor 601 with access to the memory 602.

[0148] The electronic device also includes a power supply 603 for supplying power to various components. Preferably, the power supply 603 can be logically connected to the processor 601 via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption. The power supply 603 can also include one or more DC or AC power supplies, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and other arbitrary components.

[0149] The electronic device may further include an input unit 604, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.

[0150] Although not shown, the electronic device may further include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 601 in the electronic device will load the executable files corresponding to the processes of one or more computer programs into the memory 602 according to the following instructions, and the processor 601 will run the computer programs stored in the memory 602 to implement various functions, such as:

[0151] Obtaining color channel parameters of a pixel in the image to be debugged, wherein the color channel parameters include current color levels of multiple color components of the pixel in the image to be debugged in the current color space;

[0152] Determining a coordinate range of each color component in a preset coordinate system according to a target color depth corresponding to the image to be debugged;

[0153] Based on the mapping relationship between the coordinate range and the total color levels corresponding to the color components, determining the position coordinates corresponding to the current color levels of the color channel parameters of the image to be debugged in the coordinate range;

[0154] The color channel parameters are adjusted at the position coordinates to obtain a target debugging image corresponding to the image to be debugged.

[0155] The electronic device proposed in the embodiment of the present application realizes precise control and free adjustment of image color, and through the mapping of coordinate range and target color depth, the color adjustment accuracy can be visualized, so that when adjusting the image color, high-precision color levels can also be adjusted through coordinates, further improving the fineness of image color adjustment.

[0156] The specific implementation methods and corresponding beneficial effects of the above operations can be found in the detailed description of the image color adjustment method above, which will not be elaborated here.

[0157] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be accomplished by a computer program, or by controlling related hardware through a computer program. The computer program may be stored in a computer storage medium and loaded and executed by a processor.

[0158] To this end, an embodiment of the present application provides a computer storage medium storing a computer program that can be loaded by a processor to execute the steps of any of the image color calibration methods provided in the embodiments of the present application. For example, the computer program can execute the following steps:

[0159] Obtaining color channel parameters of a pixel in the image to be debugged, wherein the color channel parameters include current color levels of multiple color components of the pixel in the image to be debugged in the current color space;

[0160] Determining a coordinate range of each color component in a preset coordinate system according to a target color depth corresponding to the image to be debugged;

[0161] Based on the mapping relationship between the coordinate range and the total color levels corresponding to the color components, determining the position coordinates corresponding to the current color levels of the color channel parameters of the image to be debugged in the coordinate range;

[0162] The color channel parameters are adjusted at the position coordinates to obtain a target debugging image corresponding to the image to be debugged.

[0163] The computer storage medium proposed in the embodiment of the present application realizes precise control and free adjustment of image colors, and through the mapping of coordinate range and target color depth, the color adjustment accuracy can be visualized, so that when adjusting the image color, high-precision color levels can also be adjusted through coordinates, further improving the fineness of image color adjustment.

[0164] The specific implementation methods and corresponding beneficial effects of the above operations can be found in the previous embodiments and will not be described in detail here.

[0165] The computer storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0166] Since the computer program stored in the computer storage medium can execute the steps of any image color adjustment method provided in the embodiments of the present application, the beneficial effects that can be achieved by any image color adjustment method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0167] According to one aspect of the present application, a computer program product or computer program is provided. The computer program product or computer program includes computer instructions stored in a computer storage medium. A processor of a computer device reads the computer instructions from the computer storage medium and executes the computer instructions, causing the computer device to perform the above-described image color calibration method.

[0168] The above is a detailed introduction to an image color adjustment method, device, electronic device and computer storage medium provided in the embodiments of the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for those skilled in the art, based on the ideas of the present application, there may be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A method for image color calibration, characterized in that: include: Obtaining color channel parameters of a pixel in the image to be debugged, wherein the color channel parameters include current color levels of multiple color components of the pixel in the image to be debugged in the current color space; Determining a coordinate range of each color component in a preset coordinate system according to a target color depth corresponding to the image to be debugged; Based on the mapping relationship between the coordinate range and the total color levels corresponding to the color components, determining the position coordinates corresponding to the current color levels of the color channel parameters of the image to be debugged in the coordinate range; The color channel parameters are adjusted at the position coordinates to obtain a target debugging image corresponding to the image to be debugged.

2. The image color calibration method according to claim 1, wherein: The step of determining the coordinate range of each color component in a preset coordinate system according to the target color depth corresponding to the image to be debugged includes: Determining the total color scale corresponding to the color component according to the target color depth corresponding to the image to be debugged; Dividing the total color scale according to the minimum adjustment color scale to obtain the target color adjustment accuracy; The target color adjustment precision is mapped to a preset coordinate system to obtain the coordinate range of the color component in the coordinate system.

3. The image color calibration method according to claim 1, wherein: The determining, based on the mapping relationship between the coordinate range and the total color levels corresponding to the color components, the position coordinates corresponding to the current color levels of the color channel parameters of the image to be debugged in the coordinate range includes: Selecting a target color component to be debugged from the color components, and determining color components other than the target color component from the color components as candidate color components; Determining, based on a mapping relationship between the coordinate range and the total color levels corresponding to the color components, that the current color level of the candidate color component is at a first coordinate point in the coordinate range, and that the current color level of the target color component is at a second coordinate point in the coordinate range; The position coordinates corresponding to the current color level of the color channel parameter in the coordinate range are determined through the first coordinate point and the second coordinate point.

4. The image color calibration method according to claim 3, wherein: There are multiple candidate color components; The step of determining, based on a mapping relationship between the coordinate range and the total color scale corresponding to the color component, the color scale of the candidate color component at a first coordinate point in the coordinate range and the color scale of the target color component at a second coordinate point in the coordinate range includes: Mapping the current color levels of the plurality of candidate color components according to the mapping relationship to obtain a plurality of coordinate values, and determining the first coordinate point from the plurality of coordinate values; Direction information of the target color component in the coordinate system is obtained, and the current color scale of the target color component is mapped according to the direction information and the mapping relationship to obtain the second coordinate point.

5. The image color calibration method according to claim 3, wherein: The step of adjusting the color channel parameters at the position coordinates to obtain a target debugging image corresponding to the image to be debugged includes: Determining the pixel point to be debugged corresponding to the color channel parameter in the image to be debugged according to the first coordinate point and the second coordinate point in the position coordinate; The color scale of the pixel to be debugged is adjusted at the first coordinate point to obtain a target debugging image corresponding to the image to be debugged.

6. The image color calibration method according to claim 1, wherein: The adjusting the color channel parameters at the position coordinates to obtain a target debugging image corresponding to the image to be debugged further includes: Obtaining the debugging amplitude corresponding to the image to be debugged; The color channel parameters are adjusted at the position coordinates according to the debugging amplitude to obtain a target debugging image corresponding to the image to be debugged.

7. The image color calibration method according to claim 6, characterized in that: The obtaining of the debugging amplitude corresponding to the image to be debugged includes: Positioning the color channel parameters in a multidimensional color model corresponding to the current color space to obtain spatial coordinates of the color channel parameters; The debugging amplitude corresponding to the image to be debugged is determined according to the spatial coordinates and the target debugging color.

8. An image color calibration device, characterized in that: include: An identification module is used to obtain color channel parameters of pixels in the image to be debugged, wherein the color channel parameters include current color levels of multiple color components of the pixels in the image to be debugged in the current color space; A first confirmation module is configured to determine a coordinate range of each color component in a preset coordinate system according to a target color depth corresponding to the image to be debugged; A second confirmation module is configured to determine the position coordinates corresponding to the current color level of the color channel parameter of the image to be debugged in the coordinate range based on a mapping relationship between the coordinate range and the total color level corresponding to the color component; The adjustment module is used to adjust the color channel parameters at the position coordinates to obtain a target debugging image corresponding to the image to be debugged.

9. An electronic device, characterized in that: The system comprises a processor and a memory, wherein the memory stores a computer program, and the processor is configured to run the computer program in the memory to execute the image color calibration method according to any one of claims 1 to 7.

10. A computer storage medium, characterized in that The computer storage medium stores a computer program, and the computer program is suitable for being loaded by a processor to execute the image color adjustment method according to any one of claims 1 to 7.

Citation Information

Cited By

  • Self-adaptive high-color-gradation linear color mapping method and system for depth map and medium

    CN121280538A