Display processing method and device, electronic equipment, storage medium and program product

By storing the correction coefficients of the values ​​of some color components and expanding them through interpolation calculation, the problems of large memory demand and high cost in the prior art are solved, and more efficient image gamma correction is achieved.

CN119450023APending Publication Date: 2025-02-14HEFEI MACROSILICON TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411612868.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-12
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

In the prior art, when performing gamma correction for images or videos, a large number of Gamma coefficients are required to store, resulting in high memory requirements and high cost.

Method used

The correction coefficients that store some values ​​in the color component value range are used to obtain more correction coefficients corresponding to the color component value through interpolation calculation, thereby performing gamma correction of the image.

Benefits of technology

Effectively reduce the number of correction coefficients required to be stored, reduce the memory size and memory cost requirements, and improve computing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119450023A_ABST
    Figure CN119450023A_ABST
Patent Text Reader

Abstract

The invention provides a display processing method and device, electronic equipment, a storage medium and a program product, and the method comprises the steps: obtaining a color value of each pixel of a to-be-processed image, the color value comprising component values of a plurality of color components; determining a target correction coefficient corresponding to the component value of each color component according to the component values of the plurality of color components and a pre-stored mapping relationship between color components and correction coefficients, the stored mapping relationship corresponding to a part of values in a value range of the color components; correcting the color value of each pixel according to a target correction coefficient corresponding to the component value of each color component; and the corrected to-be-processed image is displayed, so that all color components are corrected by storing part of the correction coefficients, the size of a memory needing to be stored is reduced, and the cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a display processing method, device, electronic device, storage medium and program product. Background Art

[0002] Gamma correction is a display processing technology for images or videos. It can correct the color value of each pixel of the image to be compatible with different display devices, so that the visual effects of the image or video on different display devices are as consistent as possible. In related technologies, the gamma coefficient corresponding to each color component is usually pre-stored in the memory, and then the color of the image is corrected according to the gamma coefficient corresponding to each color component. The data accuracy of the color gamut of different display devices is different. The higher the data accuracy, the larger the value range of the color component, and the more gamma coefficients need to be stored, which makes the required memory larger, and the requirements for the size and cost of the memory are also higher. Summary of the invention

[0003] The present disclosure provides a display processing method, device, electronic device, storage medium and program product.

[0004] In a first aspect, the present disclosure provides a display processing method, the display processing method comprising:

[0005] Acquire a color value of each pixel of the image to be processed, wherein the color value includes component values ​​of multiple color components;

[0006] Determining a target correction coefficient corresponding to the component value of each color component according to the component values ​​of the multiple color components and a pre-stored mapping relationship between the color components and the correction coefficients, wherein the stored mapping relationship corresponds to a portion of values ​​in a value range of the color component;

[0007] Correcting the color value of each pixel according to the target correction coefficient corresponding to the component value of each color component;

[0008] Display the corrected image to be processed.

[0009] In a second aspect, the present disclosure provides a display processing device, the display processing device comprising:

[0010] An acquisition module, used for acquiring a color value of each pixel of the image to be processed, wherein the color value includes component values ​​of multiple color components;

[0011] A determination module, configured to determine a target correction coefficient corresponding to the component value of each color component according to the component values ​​of the plurality of color components and a pre-stored mapping relationship between the color components and the correction coefficients, wherein the stored mapping relationship corresponds to a portion of values ​​in a value range of the color component;

[0012] A correction module, used for correcting the color value of each pixel according to the target correction coefficient corresponding to the component value of each color component;

[0013] The display module is used to display the corrected image to be processed.

[0014] In a third aspect, the present disclosure provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores one or more computer programs executable by the at least one processor, and one or more of the computer programs are executed by the at least one processor so that the at least one processor can perform the above-mentioned display processing method.

[0015] In a fourth aspect, the present disclosure provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the above-mentioned display processing method when executed by a processor.

[0016] In a fifth aspect, the present disclosure provides a computer program product, including a computer-readable code, or a non-volatile computer-readable storage medium carrying a computer-readable code. When the computer-readable code runs in a processor of an electronic device, the processor in the electronic device executes the above-mentioned display processing method.

[0017] The display processing method provided by the embodiment of the present disclosure adopts correction coefficients for partial values ​​in the value range of the stored color components. Then, in the display processing process of the image to be processed, the correction coefficients corresponding to more color component values ​​can be expanded based on the stored correction coefficients for partial values, so that the target correction coefficient of the color component of each pixel of the image to be processed can be obtained. According to the target correction coefficient of each color component, the image to be processed is corrected to display the corrected image to be processed. In this way, it is only necessary to store the correction coefficients for partial values ​​of the color components to realize the correction of all color component values, which effectively reduces the number of correction coefficients that need to be stored, thereby reducing the required memory size, reducing the requirements for the size and area of ​​the memory, and reducing the cost.

[0018] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The accompanying drawings are used to provide a further understanding of the present disclosure and constitute a part of the specification. Together with the embodiments of the present disclosure, they are used to explain the present disclosure and do not constitute a limitation of the present disclosure. The above and other features and advantages will become more apparent to those skilled in the art by describing detailed example embodiments with reference to the accompanying drawings, in which:

[0020] Figure 1 A flow chart of a display processing method provided by an embodiment of the present disclosure;

[0021] Figure 2 A schematic diagram of the architecture design of a display processing method in an embodiment of the present disclosure;

[0022] Figure 3 A block diagram of a display processing device provided by an embodiment of the present disclosure;

[0023] Figure 4 A block diagram of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0024] In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the exemplary embodiments of the present disclosure are described below in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, those of ordinary skill in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0025] In the absence of conflict, the various embodiments of the present disclosure and the various features therein may be combined with each other.

[0026] As used herein, the term "and / or" includes any and all combinations of one or more of the associated listed items.

[0027] The terms used herein are only used to describe specific embodiments and are not intended to limit the present disclosure. As used herein, the singular forms "a" and "the" are also intended to include plural forms, unless the context clearly indicates otherwise. It will also be understood that when the terms "including" and / or "made of" are used in this specification, the presence of the features, wholes, steps, operations, elements and / or components is specified, but the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups thereof is not excluded. "Connected" or "connected" and similar words are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect.

[0028] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by those of ordinary skill in the art. It will also be understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant art and the present disclosure, and will not be interpreted as having an idealized or overly formal meaning unless explicitly defined as such herein.

[0029] In the technical solution disclosed in this disclosure, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals. The use of user data in this technical solution complies with relevant national laws and regulations (for example, the "Information Security Technology Personal Information Security Specification", etc.). For example: corresponding prescribed measures are taken for personal information access control; prescribed restrictions are imposed on the display of personal information; the purpose of using personal information does not exceed the scope of direct or reasonable association; when using personal information, clear identity orientation is eliminated to avoid precise positioning of specific individuals.

[0030] To facilitate understanding of the embodiments of the present disclosure, several concepts are briefly introduced below:

[0031] Gamma correction: It is a display processing technology for images or videos, which is mainly used to compensate for the nonlinear characteristics of display devices so that the visual effects of images or videos are consistent when displayed on different display devices. Gamma correction methods usually use gamma coefficients for correction. Gamma coefficients can be used to describe the relationship between the input pixel value and the output pixel value of an image. The pixel value represents the color or brightness of the pixel in the image.

[0032] Color and color components: There can be many color modes for images, such as RGB mode, grayscale mode, bitmap mode, etc. For different color modes, the value of each pixel in the image can be represented by multiple color components in the color mode. For example, for an image in RGB mode, the color of the pixel can include three color components: R, G, and B. The value range of each color component is usually [0, 255]. For example, a pixel value of (255, 0, 0) represents pure red.

[0033] The gamma correction method in the related art usually pre-stores the gamma coefficient corresponding to each color component of the color value in a memory. For example, for RGB images or videos, three static random access memories (SRAMs) are usually used to store the gamma coefficients of the three color components R, G, and B, respectively. Each R, G, and B value corresponds to a gamma coefficient, and then for the image or video frame in the video, the R, G, and B gamma coefficients are obtained from the memory, and the R, G, and B of each pixel of the image are corrected, and the corrected image or video frame is output.

[0034] The data accuracy of the color gamut of different display devices is different. The higher the data accuracy, the larger the value range of the color component. For example, the color depth of the display device indicates the number of colors that each pixel can display. The higher the color depth, the larger the value range of each color component, and the smoother and more delicate the color transition of the display. For example, when the color depth of the display is 10 bits, the value range of each color component is 0 to 1023. Each color component corresponds to a gamma coefficient, and more gamma coefficients need to be stored. The larger the memory required, the higher the requirements for memory size and cost.

[0035] In the disclosed embodiment, correction coefficients of some values ​​in the value range of the color component are stored. For example, the correction coefficients may be the gamma coefficients. Then, in the display processing of the image to be processed, correction coefficients corresponding to more color component values ​​can be obtained through interpolation calculation based on the correction coefficients of the stored partial values. That is, the image to be processed can be corrected according to the correction coefficients of the color components of each pixel of the image to be processed to display the corrected image to be processed. In this way, correction of all color component values ​​can be achieved by storing correction coefficients of a small number of color component values, which effectively reduces the number of correction coefficients that need to be stored, thereby reducing the required memory size, reducing the requirements for the size and area of ​​the memory, and reducing the cost.

[0036] It should be noted that the display processing method and device in the embodiments of the present disclosure can be executed by electronic devices such as terminal devices or servers. The terminal device can be a user equipment (UE), a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant (PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, etc. The server can be an independent physical server, a server cluster composed of multiple physical servers, or a cloud server capable of cloud computing. The method can be implemented by a processor calling a computer-readable program instruction stored in a memory.

[0037] Figure 1 A flowchart of a display processing method provided by an embodiment of the present disclosure. Figure 1 , the method comprising:

[0038] Step S101: obtaining the color value of each pixel of the image to be processed, where the color value includes component values ​​of multiple color components.

[0039] The embodiments of the present disclosure can be applicable to image or video scenarios. The image to be processed can be a single image or a video frame in the video to be processed. For example, when an image or video is displayed on a monitor, the image is corrected based on the display processing method in the embodiments of the present disclosure, or each video frame image of the video is corrected separately, and then displayed on the monitor after correction, thereby improving the display effect.

[0040] Among them, the color value of each pixel of the image to be processed can be represented by multiple color components. For example, the color of each pixel in the RGB color mode is a mixture of three color components: red (Red, R), green (Green, G), and blue (Blue, B) with different intensities.

[0041] Step S102: Determine the target correction coefficient corresponding to the component value of each color component according to the component values ​​of multiple color components and the pre-stored mapping relationship between color components and correction coefficients, wherein the stored mapping relationship corresponds to part of the values ​​in the value range of the color component.

[0042] In the embodiments of the present disclosure, different displays have different color parameters and may have different Gamma coefficients. The Gamma coefficient of the display can be pre-calibrated or analyzed and stored for use in actual correction of image display. The memory can use SRAM, which is not limited by the present disclosure. When storing, the present disclosure also provides possible embodiments.

[0043] Exemplarily, in the disclosed embodiment, each color component corresponds to at least one memory, and each memory stores a mapping relationship between the corresponding color component and the correction coefficient; the mapping relationship stored in each memory includes a mapping relationship between multiple first values ​​and the correction coefficient, and the first value is a value at every preset interval number in the value range of the corresponding color component.

[0044] For example, for the R color component, each color component is represented by 10 bits, and its value range is [0, 1023]. The preset number of intervals is 4, so the value of a color component is taken every 4, and the correction coefficient corresponding to the value is stored in the memory.

[0045] In this way, the correction coefficients of partial values ​​of each color component are stored in different memories, which can reduce the area of ​​a single memory. Only part of the mapping relationship needs to be stored, which reduces the storage amount and can further reduce the area and cost of a single memory.

[0046] Exemplarily, each color component corresponds to a first memory and a second memory; the first memory is used to store the mapping relationship between the n*Tth value in the value range of the corresponding color component and the correction coefficient, and the second memory is used to store the mapping relationship between the (n+1)*Tth value in the value range of the corresponding color component and the correction coefficient, where T is a positive integer greater than 2, and n is an odd number greater than 1.

[0047] Among them, T can represent the selected preset interval number, which can be set according to actual needs, and n is an odd number greater than 1. During actual storage, a T value can be fixedly set, and n can be a plurality of consecutive odd numbers.

[0048] See also Figure 2 As shown, it is a schematic diagram of the architecture design of the display processing method in the embodiment of the present disclosure. Figure 2 As shown, taking the color components including R, G and B as an example, two SRAMs are used to store the correction coefficients of the color components respectively, then a total of 6 SRAMs are used, and the two SRAMs corresponding to each color component respectively store the correction coefficients of some color components. Taking the color component R as an example, T is 4, n is a plurality of consecutive odd numbers starting from 1, then from the multiple values ​​in the value range of R, the correction coefficients of the 1*4th values ​​are stored in the first memory, the correction coefficients of the (1+1)*4th values ​​are stored in the second memory, the correction coefficients of the 3*4th values ​​are stored in the first memory, the correction coefficients of the (3+1)*4th values ​​are stored in the second memory, and so on. In this way, taking T as 4 as an example, the memory size originally required can be reduced by 3 / 4, thereby reducing the size and area of ​​the SRAM used.

[0049] In the disclosed embodiment, only part of the correction coefficients corresponding to the color components need to be stored in the memory, which reduces the required memory size, and each color component uses two memories to store correction coefficients of adjacent interval sizes in sequence, which can facilitate subsequent interpolation calculations for the expansion of the correction coefficients and can more quickly retrieve two correction coefficients adjacent to the value of a color component, thereby improving calculation efficiency.

[0050] Furthermore, in the embodiment of the present disclosure, the correction coefficients of all the values ​​of the color components can be determined based on the correction coefficients of some of the values ​​of the color components stored in advance, that is, the target correction coefficient of the color component of each pixel of the image to be processed can be obtained.

[0051] Step S103: Correcting the color value of each pixel according to the target correction coefficient corresponding to the component value of each color component.

[0052] For example, for a component value Vin of any color component, the target correction coefficient is r, and the output value after correction is Vout, Vout=(Vin)^r.

[0053] Step S104: displaying the corrected image to be processed.

[0054] In the embodiment of the present disclosure, each color component is corrected by the target correction coefficient to obtain the corrected color component, for example, Figure 2 As shown, R is corrected to R', G is corrected to G', and B is corrected to B'. According to R', G' and B', the corrected color value of the pixel can be obtained, so that the corrected image to be processed can be displayed on the display, that is, the corrected color corresponding to each pixel of the image to be processed can be displayed, thereby improving the display effect. The correction of each pixel and each color component of each pixel can be performed in parallel, which is not limited in the embodiments of the present disclosure.

[0055] The display processing method according to the embodiment of the present disclosure is described below.

[0056] As mentioned above, for the above step S102, the present disclosure also provides a possible implementation method.

[0057] In a possible embodiment, a target correction coefficient corresponding to the component value of each color component is determined based on the component values ​​of multiple color components and a pre-stored mapping relationship between color components and correction coefficients, including: retrieving the correction coefficients corresponding to the component values ​​of multiple color components based on a pre-stored mapping relationship between color components and correction coefficients; when the correction coefficients corresponding to the component values ​​are retrieved, using the retrieved correction coefficients as the target correction coefficients for the corresponding component values.

[0058] For example, Figure 2 As shown, for any pixel point, taking the pixel color value including R, G, and B color components as an example, a search is performed in the first memory and the second memory according to the value of R. For example, if the value of R is 8, and 8 corresponding correction coefficients are stored in the second memory, the target correction coefficient of the R component value can be directly obtained from the second memory.

[0059] In a possible embodiment, determining a target correction coefficient corresponding to the component value of each color component according to the component values ​​of the multiple color components and a pre-stored mapping relationship between the color components and the correction coefficients includes:

[0060] According to the pre-stored mapping relationship between color components and correction coefficients, the correction coefficients corresponding to the component values ​​of multiple color components are retrieved; when the correction coefficients corresponding to the component values ​​are not retrieved, two adjacent values ​​of the component values ​​among the values ​​of the color components corresponding to the stored mapping relationship are determined according to the mapping relationship, and the correction coefficients of the two adjacent values ​​are obtained; according to the correction coefficients of the two adjacent values ​​of the component values, the target correction coefficients corresponding to the component values ​​are determined.

[0061] In the disclosed embodiment, since only the correction coefficients of some values ​​of the color component need to be stored in the memory, there may be a situation where the correction coefficients cannot be directly retrieved from the memory. In this case, the correction coefficients can be obtained by retrieving the corresponding two adjacent correction coefficients and calculating. Specifically, linear interpolation calculation can be performed based on the correction coefficients of the two adjacent values ​​of the component value and the component value to determine the target correction coefficient corresponding to the component value.

[0062] For example, Figure 2 As shown, taking the R color component as an example, the first memory of R is used to store the mapping relationship between the n*Tth value in the value range of R and the correction coefficient, and the second memory is used to store the mapping relationship between the (n+1)*Tth value in the value range of R and the correction coefficient. The component value of R of a pixel is a, and a is a value between n*T and (n+1)*T. Then, the two values ​​n*T and (n+1)*T adjacent to a on the left and right can be determined from the first memory and the second memory respectively, and the correction coefficient b1 corresponding to n*T and the correction coefficient b2 corresponding to (n+1)*T can be determined, and then the target correction coefficient corresponding to a can be determined through linear interpolation calculation, for example, the target correction coefficient = b1+(b2-b1) / T*(an*T).

[0063] In the disclosed embodiment, the correction coefficients of the color components can be stored in a memory through the MCU or software. When displaying an image, the component values ​​of the color components of each pixel of the image are used as indexes to retrieve from the memory to determine the target correction coefficient of each color component, and then the color of each pixel is corrected and the corrected image is displayed. This achieves the effect of obtaining more correction coefficients by storing a small amount of correction coefficients, thereby effectively reducing the required memory size.

[0064] It can be understood that the above-mentioned various method embodiments mentioned in the present disclosure can be combined with each other to form a combined embodiment without violating the principle logic. Due to space limitations, the present disclosure will not repeat them. It can be understood by those skilled in the art that in the above-mentioned method of the specific implementation method, the specific execution order of each step should be determined according to its function and possible internal logic.

[0065] In addition, the present disclosure also provides a display processing device, an electronic device, a computer-readable storage medium and a program product, all of which can be used to implement any display processing method provided by the present disclosure. The corresponding technical solutions and descriptions are referred to the corresponding records in the method part and will not be repeated here.

[0066] Figure 3 A block diagram of a display processing device provided in an embodiment of the present disclosure.

[0067] Reference Figure 3 , an embodiment of the present disclosure provides a display processing device, the display processing device comprising:

[0068] An acquisition module 31 is used to acquire a color value of each pixel of the image to be processed, wherein the color value includes component values ​​of multiple color components;

[0069] A determination module 32, configured to determine a target correction coefficient corresponding to the component value of each color component according to the component values ​​of the plurality of color components and a pre-stored mapping relationship between the color components and the correction coefficients, wherein the stored mapping relationship corresponds to a portion of values ​​in a value range of the color component;

[0070] A correction module 33, configured to correct the color value of each pixel according to a target correction coefficient corresponding to the component value of each color component;

[0071] The display module 34 is used to display the corrected image to be processed.

[0072] In a possible embodiment, each color component corresponds to at least one memory, and each memory stores a mapping relationship between the corresponding color component and the correction coefficient;

[0073] The mapping relationship stored in each memory includes a mapping relationship between a plurality of first values ​​and correction coefficients, wherein the first values ​​are values ​​at preset intervals in a value range of a corresponding color component.

[0074] In a possible embodiment, each color component corresponds to a first memory and a second memory;

[0075] The first memory is used to store the mapping relationship between the n*Tth value in the value range of the corresponding color component and the correction coefficient, and the second memory is used to store the mapping relationship between the (n+1)*Tth value in the value range of the corresponding color component and the correction coefficient, where T is a positive integer greater than 2 and n is an odd number greater than 1.

[0076] In a possible embodiment, when determining the target correction coefficient corresponding to the component value of each color component according to the component values ​​of the multiple color components and the pre-stored mapping relationship between the color components and the correction coefficients, the correction module 33 is used to:

[0077] Retrieving the correction coefficients corresponding to the component values ​​of the plurality of color components according to a pre-stored mapping relationship between the color components and the correction coefficients;

[0078] When the correction coefficient corresponding to the component value is retrieved, the retrieved correction coefficient is used as the target correction coefficient of the corresponding component value.

[0079] In a possible embodiment, when determining the target correction coefficient corresponding to the component value of each color component according to the component values ​​of the multiple color components and the pre-stored mapping relationship between the color components and the correction coefficients, the correction module 33 is used to:

[0080] Retrieving the correction coefficients corresponding to the component values ​​of the plurality of color components according to a pre-stored mapping relationship between the color components and the correction coefficients;

[0081] In the case where the correction coefficient corresponding to the component value is not retrieved, determining two adjacent values ​​of the component value in the values ​​of the color component corresponding to the stored mapping relationship according to the mapping relationship, and obtaining the correction coefficients of the two adjacent values;

[0082] According to the correction coefficients of two adjacent values ​​of the component value, a target correction coefficient corresponding to the component value is determined.

[0083] In a possible embodiment, when determining the target correction coefficient corresponding to the component value based on the correction coefficient of two adjacent values ​​of the component value, the correction module 33 is used to: perform linear interpolation calculation based on the correction coefficient of the two adjacent values ​​of the component value and the component value to determine the target correction coefficient corresponding to the component value.

[0084] Each module in the above display processing device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0085] Figure 4 A block diagram of an electronic device provided in an embodiment of the present disclosure.

[0086] Reference Figure 4An embodiment of the present disclosure provides an electronic device, which includes: at least one processor 401; at least one memory 402, and one or more I / O interfaces 403, connected between the processor 401 and the memory 402; wherein the memory 402 stores one or more computer programs that can be executed by the at least one processor 401, and the one or more computer programs are executed by the at least one processor 401 so that the at least one processor 401 can execute the above-mentioned display processing method.

[0087] Each module in the above electronic device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0088] The present disclosure also provides a computer-readable storage medium on which a computer program is stored, wherein the computer program implements the above-mentioned display processing method when executed by a processor. The computer-readable storage medium may be a volatile or non-volatile computer-readable storage medium.

[0089] The embodiment of the present disclosure also provides a computer program product, including a computer-readable code, or a non-volatile computer-readable storage medium carrying the computer-readable code. When the computer-readable code runs in a processor of an electronic device, the processor in the electronic device executes the above-mentioned display processing method.

[0090] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In a hardware implementation, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or may be implemented as hardware, or may be implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable storage medium, which may include a computer storage medium (or a non-transitory medium) and a communication medium (or a temporary medium).

[0091] As is known to those of ordinary skill in the art, the term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable program instructions, data structures, program modules or other data). Computer storage media include, but are not limited to, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), static random access memory (SRAM), flash memory or other memory technology, portable compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer. In addition, it is known to those of ordinary skill in the art that communication media typically contain computer-readable program instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transmission mechanism, and may include any information delivery medium.

[0092] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.

[0093] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be customized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present disclosure.

[0094] The computer program product described herein may be implemented in hardware, software, or a combination thereof. In one optional embodiment, the computer program product is embodied as a computer storage medium, and in another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (SDK), etc.

[0095] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.

[0096] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0097] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0098] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of the module, program segment or instruction includes one or more executable instructions for realizing the specified logical function. In some alternative implementations, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or action, or can be implemented with a combination of special hardware and computer instructions.

[0099] Example embodiments have been disclosed herein, and although specific terms are employed, they are used and should be interpreted only in a general illustrative sense and not for limiting purposes. In some instances, it will be apparent to those skilled in the art that, unless otherwise expressly noted, features, characteristics, and / or elements described in conjunction with a particular embodiment may be used alone or in combination with features, characteristics, and / or elements described in conjunction with other embodiments. Therefore, those skilled in the art will appreciate that various changes in form and detail may be made without departing from the scope of the present disclosure as set forth in the appended claims.

Claims

1. A display processing method, characterized in that: include: Acquire a color value of each pixel of the image to be processed, wherein the color value includes component values ​​of multiple color components; Determining a target correction coefficient corresponding to the component value of each color component according to the component values ​​of the multiple color components and a pre-stored mapping relationship between the color components and the correction coefficients, wherein the stored mapping relationship corresponds to a portion of values ​​in a value range of the color component; Correcting the color value of each pixel according to the target correction coefficient corresponding to the component value of each color component; Display the corrected image to be processed.

2. The display processing method according to claim 1, characterized in that: Each color component corresponds to at least one memory, and each memory stores a mapping relationship between a corresponding color component and a correction coefficient; The mapping relationship stored in each memory includes a mapping relationship between a plurality of first values ​​and correction coefficients, wherein the first values ​​are values ​​at preset intervals in a value range of a corresponding color component.

3. The display processing method according to claim 1, characterized in that: Each color component corresponds to a first memory and a second memory; The first memory is used to store the mapping relationship between the n*Tth value in the value range of the corresponding color component and the correction coefficient, and the second memory is used to store the mapping relationship between the (n+1)*Tth value in the value range of the corresponding color component and the correction coefficient, where T is a positive integer greater than 2 and n is an odd number greater than 1.

4. The display processing method according to any one of claims 1 to 3, characterized in that: The determining, according to the component values ​​of the plurality of color components and the pre-stored mapping relationship between the color components and the correction coefficients, a target correction coefficient corresponding to the component value of each color component includes: Retrieving the correction coefficients corresponding to the component values ​​of the plurality of color components according to a pre-stored mapping relationship between the color components and the correction coefficients; When the correction coefficient corresponding to the component value is retrieved, the retrieved correction coefficient is used as the target correction coefficient of the corresponding component value.

5. The display processing method according to any one of claims 1 to 3, characterized in that: The determining, according to the component values ​​of the plurality of color components and the pre-stored mapping relationship between the color components and the correction coefficients, a target correction coefficient corresponding to the component value of each color component includes: Retrieving the correction coefficients corresponding to the component values ​​of the plurality of color components according to a pre-stored mapping relationship between the color components and the correction coefficients; In the case where the correction coefficient corresponding to the component value is not retrieved, determining two adjacent values ​​of the component value in the values ​​of the color component corresponding to the stored mapping relationship according to the mapping relationship, and obtaining the correction coefficients of the two adjacent values; According to the correction coefficients of two adjacent values ​​of the component value, a target correction coefficient corresponding to the component value is determined.

6. The display processing method according to claim 5, characterized in that: The determining, according to the correction coefficients of two adjacent values ​​of the component value, a target correction coefficient corresponding to the component value comprises: A linear interpolation calculation is performed based on correction coefficients of two adjacent values ​​of the component value and the component value to determine a target correction coefficient corresponding to the component value.

7. A display processing device, characterized in that: include: An acquisition module, used for acquiring a color value of each pixel of the image to be processed, wherein the color value includes component values ​​of multiple color components; A determination module, configured to determine a target correction coefficient corresponding to the component value of each color component according to the component values ​​of the plurality of color components and a pre-stored mapping relationship between the color components and the correction coefficients, wherein the stored mapping relationship corresponds to a portion of values ​​in a value range of the color component; A correction module, used for correcting the color value of each pixel according to the target correction coefficient corresponding to the component value of each color component; The display module is used to display the corrected image to be processed.

8. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores one or more computer programs executable by the at least one processor, and the one or more computer programs are executed by the at least one processor to enable the at least one processor to perform the display processing method according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the computer program implements the display processing method according to any one of claims 1 to 6.

10. A computer program product, characterized in that The device comprises a computer-readable code or a non-volatile computer-readable storage medium carrying the computer-readable code. When the computer-readable code runs in a processor of an electronic device, the processor in the electronic device executes the display processing method as described in any one of claims 1 to 6.