Device, method and display screen for gamma correction
By using a voltage divider circuit with adjustable resistors in the gamma circuit, the output color level value of the display is directly adjusted from the lookup table and jitter technology, the existing problems of low gamma calibration accuracy and poor adjustability are solved, and the existing gamma calibration accuracy is achieved. High accuracy gamma correction.
Patent Information
- Application Number
- CN202010505472.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-05
- Publication Date
- 2024-12-13
- Estimated Expiration
- 2040-06-05
AI Technical Summary
Existing gamma calibration techniques rely on lookup tables and jitter techniques, resulting in low accuracy, poor adjustability and prone to artifacts and noise.
Using a voltage divider circuit connected in series by multiple adjustable resistors with the same resistance, the sliding contact position is set through the display control device, and the output color level value of the display screen is adjusted to achieve gamma correction without relying on the lookup table and jitter. technology.
Improve the accuracy of gamma correction, avoid the occurrence of artifacts and noise, and achieve more accurate gamma calibration.
Smart Images

Figure CN111613190B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of power electronics technology, and in particular to a device, method and display screen for gamma correction. Background Art
[0002] In the field of professional display, such as medical image display, industrial design display, photography post-production display, graphic design display, etc., the display screen needs to be gamma calibrated to achieve the ideal presentation of grayscale and color scale of medical images, designed products, photographic works, and graphic design works.
[0003] In the prior art, regarding gamma display calibration, the inherent gamma (such as 2.2) of the display screen is determined when it is designed and produced, that is, the gamma circuit based on the fixed resistor divider. Display manufacturers can store the lookup table (LUT) in the display controller, call the lookup table through the display controller, and then implement gamma calibration through dithering technology. For example, a programmable pulse generator generates a signal for measuring the jitter of a pattern, and an E / O converter generates an OC-192 frame signal for measuring the jitter of a pattern.
[0004] The accuracy of the above-mentioned gamma calibration technology depends on the dithering technology and its requirements on the number of lookup table bits, etc. However, since the dithering technology will inevitably produce artifacts or noise and its accuracy is relatively limited, the gamma correction accuracy is low and the adjustability is poor.
[0005] In view of this, there is an urgent need to provide a gamma correction device and method that can break away from the constraints of a lookup table, so as to perform gamma correction in real time according to the current output color scale value and improve the correction accuracy. Summary of the invention
[0006] In view of the problems existing in the prior art, embodiments of the present invention provide a device, method and display screen for gamma correction.
[0007] In the first aspect, an embodiment of the present invention provides a device for gamma correction, comprising: a display control device and a gamma circuit; the gamma circuit comprises a voltage divider circuit composed of a plurality of adjustable resistors of the same resistance value connected in series; two main contacts of the voltage divider circuit are respectively connected to a voltage source of the gamma circuit; a sliding contact of the adjustable resistor slides on the adjustable resistor of the voltage divider circuit to provide working power for the display screen; the display control device is communicatively connected to the gamma circuit to set the position of the sliding contact to adjust the output color scale value of the display screen to complete gamma correction.
[0008] As an option, the gamma circuit may further include a control and storage unit; the display control device is connected to the signal source generating device, and is used to determine the voltage dividing resistance value of the adjustable resistor according to the signal source and the output color scale value; the display control device and the gamma circuit are connected via I 2 C communication interface communication connection, used to transfer the voltage divider resistance value through I 2 The C communication interface writes into the control and storage unit; the gamma circuit sets the position of the sliding contact according to the voltage-dividing resistance value.
[0009] Optionally, the adjustable resistor is a programmable resistor; the control and storage unit is communicatively connected to the programmable resistor and is used to set the voltage-dividing resistance of the programmable resistor according to the voltage-dividing resistance value.
[0010] Optionally, the display control device is further used to execute a preset programming procedure to determine the voltage divider resistance value of the adjustable resistor according to the signal source and the output color scale value.
[0011] As an option, the total number of adjustable resistors with the same resistance value in the programmable resistor is 256.
[0012] Optionally, the device for gamma correction may further include a color detection device; the color detection device is used to obtain an output color scale value of the display screen and feed the output color scale value back to the display controller.
[0013] In a second aspect, an embodiment of the present invention provides a method for gamma correction, comprising: connecting a display control device to a gamma circuit located inside a display screen; the gamma circuit comprises a voltage divider circuit formed by a plurality of adjustable resistors of the same resistance value connected in series; two main contacts of the voltage divider circuit are respectively connected to a voltage source of the gamma circuit; a sliding contact of the adjustable resistor slides on the adjustable resistor of the voltage divider circuit to provide working power for the display screen; and the position of the sliding contact is set by using the display control device to adjust the output color scale value of the display screen to complete gamma correction.
[0014] As an option, the display control device is connected to the gamma circuit located inside the display screen through I 2 C communication interface communication connection;
[0015] Correspondingly, the above-mentioned display control device sets the position of the sliding contact to adjust the output color scale value of the display screen, which includes: determining the voltage divider resistance value of the adjustable resistor according to the signal source and the output color scale value, and connecting the display control device to the signal source generating device; the gamma circuit sets the position of the sliding contact according to the voltage divider resistance value to adjust the output color scale value of the display screen.
[0016] As an option, the above-mentioned determination of the voltage-divider resistance value of the adjustable resistor based on the signal source and the output color scale value may include: determining the correlation between the resistance voltage and the voltage-divider resistance value to calculate all the resistance voltage divisions of the red, green and blue channels respectively; obtaining the display color scale values of the red, green and blue channels according to the output color scale values; determining the correlation between the display color scale value and the voltage-divider resistance value according to the coefficient of each color scale value and the branch voltage; based on the correlation between the voltage-divider resistance values, determining the voltage-divider resistance value of the adjustable resistor according to the currently obtained output color scale value.
[0017] In a third aspect, an embodiment of the present invention provides a display screen, comprising a signal source generating device and a display screen; the signal source generating device is used to send a signal source to the display screen; the display screen is used to receive the signal source and display the signal source; the display screen may also include: a device for gamma correction as described in any one of the first aspects, used to adjust the display output of the display screen according to the corrected gamma value.
[0018] An embodiment of the present invention provides a device, method and display screen for gamma correction, which achieves the purpose of gamma calibration by setting an adjustable resistor and a gamma circuit to change the gamma of the display screen by adjusting the voltage divider resistor without the need for dithering technology or a traditional lookup table, thereby achieving no artifacts and noise, and realizing accurate gamma calibration. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0020] Figure 1 A schematic diagram of the structure of a device for gamma correction provided by an embodiment of the present invention;
[0021] Figure 2 A schematic flow chart of a method for gamma correction provided by an embodiment of the present invention;
[0022] Figure 3 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0023] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0024] In the process of gamma correction, the relationship between RGB value and power is not a simple linear relationship, but a power function relationship. The exponent of this function is called the Gamma value, which is generally 2.2, and this conversion process is called Gamma correction.
[0025] Gamma correction, also known as gamma nonlinearity or gamma encoding, is used to perform nonlinear operations or inverse operations on luminance or tristimulus values in films or imaging systems.
[0026] In the simplest case, gamma correction is defined by the following power law formula, which is half the form of: V out =AV in γ , where A is a constant, and the input and output values are non-negative real values. Generally speaking, in the normal case of A=1, the range of input and output values is between 0 and 1. The case where the gamma value γ<1 is sometimes called the encoding gamma value, and the process of performing this encoding operation using the above power law is also called gamma compression; in contrast, the case where the gamma value γ>1 is sometimes also called the decoding gamma value, and the process of performing this decoding operation using the above power law is also called "gamma expansion.
[0027] The reason why the display screen needs gamma correction is because the human eye's perception of brightness is not proportional to physical power, but a power function, and the exponent of this function is called the gamma value.
[0028] For example, the actual brightness of a gray color with a power of 50% is perceived by the human eye as The actual power of the 50% gray that the human eye perceives is 0.5 2.2×100%=21.76%. Therefore, the grayscale value in RGB needs to be gamma corrected to take into account the smaller storage range (0-255) and the more balanced ratio of light and dark parts, rather than directly corresponding to the power value. Therefore, the RGB value RGB color value cannot be simply added directly, but must be converted into physical light power by using the gamma value power before the next calculation.
[0029] Based on the above reasons, and the fact that the inherent gamma value of existing display screens has been determined during design and production, that is, gamma correction is performed based on a gamma circuit with a fixed resistor divider. Display manufacturers store a lookup table (LUT) in a display controller, and the display controller calls the lookup table to implement gamma calibration through dithering technology. The calibration accuracy of this calibration technology depends on the dithering technology and its requirements for the number of bits in the lookup table. The dithering technology will inevitably produce artifacts or noise, and the accuracy is relatively limited, resulting in poor accuracy and poor adaptability of the existing gamma calibration technology.
[0030] In order to effectively overcome the above-mentioned deficiencies of the prior art, an embodiment of the present invention provides a device for gamma correction, such as Figure 1 As shown, it includes but is not limited to: a display control device and a gamma circuit located inside a display screen; wherein the gamma circuit includes a voltage divider circuit formed by a plurality of adjustable resistors of the same resistance value connected in series; two main contacts of the voltage divider circuit are connected to a voltage source of the gamma circuit respectively; a sliding contact of the adjustable resistor slides on the adjustable resistor to provide working power for the display screen; the display control device is communicatively connected to the gamma circuit to set the position of the sliding contact, adjust the output color scale value of the display screen, and complete gamma correction.
[0031] The main improvement of the present invention compared with the prior art is that an adjustable resistor is added to the gamma circuit to set the access resistance of the adjustable resistor by programming or the like, thereby achieving the purpose of adjusting the working voltage of the display screen.
[0032] The specific working process can be:
[0033] When calibrating the gamma of the display screen, first set the standard gamma of the display color scale based on conventional experience (or set the gamma value before calibration as the standard gamma), and set the position of the sliding contact of the adjustable resistor on the adjustable resistor based on the standard gamma to determine the voltage divider resistance.
[0034] According to the voltage-dividing resistor, after the voltage source of the gamma circuit is turned on, gamma correction is performed, and the output color scale value of the display screen at this time is detected and obtained. If the output color scale value of the display screen is within the preset standard value range, there is no need to further calibrate the gamma circuit; if the output color scale value of the display screen does not meet the preset standard value range, the sliding contact position of the adjustable resistor is adaptively adjusted according to the deviation between the output color scale value and the preset standard value, until the output color scale value of the display screen is within the preset standard value range, thereby achieving gamma correction.
[0035] It should be noted that, during the entire operation of the display screen, the device for gamma correction provided by the embodiment of the present invention can be in a working state all the time, sampling and detecting the output color scale value of the display screen at a predetermined frequency, and actively performing gamma correction when it is obtained that the output color scale value of the display screen does not meet the preset standard value range.
[0036] The display control device is mainly used to compare the output color scale value of the display screen with the preset standard value to determine the voltage-dividing resistance value of the adjustable resistor. In the embodiment of the present invention, by connecting the display controller to the display screen, mainly communicating with the gamma circuit located in the display screen, the voltage-dividing resistance value of the adjustable resistor in the gamma circuit can be set and read.
[0037] Optionally, in the gamma circuit provided by the embodiment of the present invention, the additional adjustable resistor can be an adjustable resistor string composed of multiple adjustable resistors of the same resistance value connected in series, or can be replaced by a structure similar to a sliding resistor. The sliding contact of the adjustable resistor slides on the fixed coil of the sliding resistor, and the size of the voltage divider resistance value can be determined based on the length of the sliding distance combined with the resistivity of the fixed coil. Finally, the size of the working voltage provided to the display screen can be calculated based on the size of the voltage divider resistance value combined with the access voltage of the two wiring ports of the fixed coil.
[0038] The device for gamma correction provided by the embodiment of the present invention sets an adjustable resistor in the gamma circuit to change the gamma of the display screen by adjusting the voltage divider resistor, without the need for dithering technology or traditional lookup tables, thereby achieving the purpose of gamma calibration without artifacts and noise, thereby achieving accurate gamma calibration.
[0039] Based on the content of the above embodiment, as an optional embodiment, the gamma circuit may further include a control and storage unit; the display control device is connected to the signal source generating device, and is used to determine the voltage dividing resistance value of the adjustable resistor according to the signal source and the output color scale value; the display control device and the gamma circuit are connected via I 2 C communication interface communication connection, used to transfer the voltage divider resistance value through I 2The C communication interface writes into the control and storage unit; the gamma circuit sets the position of the sliding contact according to the voltage-dividing resistance value.
[0040] Based on the previous embodiment, the embodiment of the present invention provides a communication connection method for data exchange between a display control device and a gamma circuit.
[0041] Specifically, in the embodiment of the present invention, a control and storage unit is provided in the gamma circuit for realizing communication with the display control device via I 2 C communication interface connection.
[0042] Specifically, I 2 The pins between the C communication interface and the control and storage unit mainly include the SDA pin and the SCL pin, where SDA is a bidirectional data line and SCL is a clock line. It can be understood as a start signal: when SCL is high, SDA jumps from high to low, and data transmission begins. End signal: when SCL is high, SDA jumps from low to high, and data transmission ends.
[0043] Furthermore, in 2 The C communication interface also includes a chip select pin The pin can be used to control the switch of the gamma circuit through the high and low logic signals sent by the display control device.
[0044] Among them, I 2 C (Inter-Integrated Circuit) is a general term for internal integrated circuits, specifically a serial communication bus that uses a multi-master-slave architecture. 2 The reference design of I2C uses a 7-bit address space but reserves 16 addresses, so a bus can communicate with up to 112 nodes. 2 The I2C bus has different modes depending on the transmission rate: standard mode (100Kbit / s), low-speed mode (10Kbit / s), but the clock frequency can be allowed to drop to zero, which means that communication can be suspended. 2 The C bus can communicate with more nodes (supporting 10-bit address space) at a faster rate, including: fast mode (400Kbit / s) and high-speed mode (3.4Mbit / s). Although the maximum number of nodes is limited by the address space, it is actually limited by the total capacitance on the bus, which is generally 400pF.
[0045] In the embodiment of the present invention, I 2 C is used as the connection method between the display control device and the gamma circuit for the following reasons:
[0046] On the one hand, it can have good performance in terms of manufacturing cost and transmission speed. That is, by using two general input and output pins and software planning, the display controller as a microcontroller can realize the control of the gamma circuit in the display screen.
[0047] On the other hand, as I 2 C communication connection end, can be added or removed from the bus while the system is still operating, which is an ideal bus for the device for gamma correction of the display screen provided by the embodiment of the present invention and has hot plug requirements;
[0048] Finally, for integrated circuit design, a large part of the manufacturing cost comes from the package size and the number of pins, and smaller packages can usually reduce weight and power consumption. For the display field that focuses on thinness and lightness, it is more convenient to use I2C between the display control device and the gamma circuit. 2 C for communication, which makes it possible to produce thin and light display screens.
[0049] Based on the contents of the above embodiments, as an optional embodiment, the above adjustable resistor may be a programmable resistor; the control and storage unit is communicatively connected with the programmable resistor to set the voltage dividing resistance of the programmable resistor according to the voltage dividing resistance value.
[0050] For example, you can choose the DS3902 dual variable digital resistor, which operates over a voltage range of 2.4V to 5.5V and can be switched via I 2 C-compatible ship interface communicates with it, and the internal address setting allows its slave device address to be programmed to one of 128 possible addresses. It should be noted that the embodiment of the present invention does not specifically limit the selected programmable resistor.
[0051] The device for gamma correction provided by the embodiment of the present invention can effectively improve the accuracy and efficiency of correction by selecting a programmable resistor as an adjustable resistor to achieve the setting of the voltage divider resistance value.
[0052] Based on the content of the above embodiment, as an optional embodiment, the above display control device is also used to execute a preset programming program to determine the voltage divider resistance value of the adjustable resistor according to the signal source and the output color scale value.
[0053] Specifically, in the device for gamma correction provided by the embodiment of the present invention, a programming program can be preset in the display control device to determine the voltage-dividing resistance value for adjusting the current output color scale value to a preset standard value range according to the output color scale value of the current display screen, in combination with the parameters of the signal source and the current voltage-dividing resistance value. After calculating the voltage-dividing resistance value to be adjusted, the voltage-dividing resistance value is adjusted by I 2C communication interface is transmitted to the control and storage unit; after receiving the voltage-dividing resistance value to be adjusted, the control and storage unit sets the voltage-dividing resistance of the programmable resistor.
[0054] Furthermore, the display control device may directly generate a voltage divider resistance adjustment signal (digital signal) based on the output color scale value of the current display screen, combined with the parameters of the signal source and the current voltage divider resistance value, and use the voltage divider resistance adjustment signal to adjust the voltage divider resistance of the programmable resistor.
[0055] The device for gamma correction provided by the embodiment of the present invention utilizes a display control device to automatically generate a voltage-dividing resistor adjustment signal for adjusting a programmable resistor directly according to the output color scale value of the current display screen, and adjusts the voltage-dividing resistor of the programmable resistor, thereby realizing gamma correction for the display screen without the need for a traditional lookup table, thereby effectively improving the accuracy and response of the correction.
[0056] Based on the content of the above embodiment, as an optional embodiment, the total number of the adjustable resistors with the same resistance value in the programmable resistor is 256.
[0057] In order to improve the accuracy of the device for gamma correction provided by the embodiment of the present invention, it is required that the number of adjustment bits of the programmable resistor is as large as possible, but the manufacturing cost and the size requirement of the display screen must also be considered. Therefore, in the embodiment of the present invention, setting the number of adjustment bits of the programmable resistor to 256 is the best choice in the actual production process, taking the above factors into consideration.
[0058] Based on the contents of the above embodiments, as an option, the embodiment of the present invention provides a color detection device for gamma correction; the color detection device is used to obtain the output color scale value of the display screen and feed the output color scale value back to the display controller.
[0059] Optionally, the working principle of the color detection device provided by an embodiment of the present invention may be: first, the color signal of the display screen under test is collected by a color sensor, wherein the color sensor can be set on the vertical center line of the display screen under test and maintain an appropriate distance from the display screen under test; further, the color signal is converted into a digital signal by a signal conversion circuit, and then sent to a microprocessor for signal analysis and control processing to obtain the output color scale value of the color detection, that is, the RGB value; finally, the obtained RGB value is uploaded to the display controller.
[0060] It should be noted that the above embodiment is only used to illustrate a method for obtaining the output color scale value, which is not regarded as a specific limitation on the protection scope of the embodiment of the present invention. As an alternative, the color detection device can also be arranged inside the display screen, and the output color scale value can be determined by intercepting the color signal of the display screen.
[0061] Among them, the color detection device can also directly use an RGB color sensor. According to the principle of three primary colors, when filtering one kind of light, light of other frequencies cannot pass. Therefore, the color signal of the display screen to be tested is filtered three times in sequence to filter out the red light, blue light, and green light components, and converted into corresponding frequency signals that can be directly recognized by the processor. According to the frequency signal, the RGB value corresponding to the three primary colors can be obtained as the current output color scale value of the display screen to be tested.
[0062] An embodiment of the present invention provides a method for determining the output color scale value of a display screen under test, so as to obtain the current output color scale value of the display screen in real time, and adaptively adjust the sliding contact position of the adjustable resistor according to the deviation between the current output color scale value and the preset standard value, until the output color scale value of the display screen is within the preset standard value range, thereby realizing gamma correction.
[0063] The embodiment of the present invention provides a method for gamma correction, such as Figure 2 As shown, including but not limited to the following steps:
[0064] Step S1, the display control device is communicatively connected to the gamma circuit located inside the display screen; the gamma circuit includes a voltage divider circuit formed by a plurality of adjustable resistors of the same resistance value connected in series; two main contacts of the voltage divider circuit are connected to voltage sources of the gamma circuit respectively; the sliding contact of the adjustable resistor slides on the adjustable resistor to provide working power for the display screen;
[0065] Step S2, using the display control device to set the position of the sliding contact, adjust the output color scale value of the display screen, and complete the gamma correction.
[0066] Based on the content of the above embodiment, as an optional embodiment, the display control device described in the above step S1 is connected to the gamma circuit located inside the display screen for communication, mainly including: the display control device and the gamma circuit are connected via I 2 C communication interface communication connection;
[0067] Correspondingly, the above-mentioned step S2 of using the display control device to set the position of the sliding contact and adjust the output color scale value of the display screen mainly includes: determining the voltage divider resistance value of the adjustable resistor according to the signal source and the output color scale value, and connecting the display control device to the signal source generating device; using the gamma circuit to set the position of the sliding contact according to the voltage divider resistance value to adjust the output color scale value of the display screen.
[0068] Based on the contents of the above embodiments, as an optional embodiment, the above-mentioned determination of the voltage-dividing resistance value of the adjustable resistor according to the signal source and the output color scale value specifically includes: determining the correlation between the resistance voltage and the voltage-dividing resistance value to calculate all the resistance voltage divisions of the red, green and blue channels respectively; obtaining the display color scale values of the red, green and blue channels according to the output color scale values; determining the correlation between the display color scale value and the voltage-dividing resistance value according to the coefficients of each color scale value and the branch voltage; based on the correlation between the voltage-dividing resistance values, determining the voltage-dividing resistance value of the adjustable resistor according to the currently obtained output color scale value.
[0069] As an optional embodiment, the process of the method for gamma correction provided by the embodiment of the present invention may be:
[0070] 1. Determine that the gamma circuit includes an adjustable resistor: preferably a programmable resistor that can be adjusted by programming to achieve 2 C communication interface for programming; the adjustable resistor string is used for the gamma circuit voltage division of the display screen, and the operating voltage of the display screen is adjusted by adjusting the adjustable resistor;
[0071] 2. After obtaining the output color scale value of the display screen, if the output color scale value reaches a preset standard value range, the output color scale value of the display screen is adjusted by adjusting the output voltage of the adjustable resistor, that is, adjusting the display gamma value;
[0072] 3. Determine the voltage U1~U 256 Relationship with the voltage divider resistance value: First, given a fixed U 256 , its current I is: The branch voltages are: U1 = I × R1 + U0, U2 = I × R2 + U1......U k =I×R k +U k-1 ;
[0073] According to the above formula, calculate the voltage divided by all resistors of the three channels of red, green and blue respectively: recorded as U X1 ~U X256 , U Y1 ~U Y256 , U Z1 ~U Z256 ;
[0074] 4. Use a color measuring device to measure a set of displayed red color values X1 to X 256 , green color value Y1~Y 256 And the blue color value Z1~Z 256 ;
[0075] 5. Calculate the coefficients of each color level and branch voltage respectively: C X1 =X1 / UX1 , C X2 =X2 / U X2 ,......,C Xk =X k / U Xk ;
[0076] 6. Calculate the relationship between the displayed color scale value and the voltage divider resistance. The calculation formula is:
[0077]
[0078]
[0079]
[0080] 7. When calibrating the gamma value of the display, set the standard gamma of the display color scale value and convert the color scale value into the voltage divider resistance value;
[0081] 8. The display controller passes the voltage divider resistor value through I 2 C communication interface is used to write the gamma circuit, which adjusts the voltage-dividing resistor value to adjust the voltage at each level, and the output of the display screen is adjusted immediately, thereby achieving the purpose of calibrating the display gamma.
[0082] The parameters in the above formula are defined as:
[0083] I is the current passing through the adjustable resistor; U k is the voltage at the kth adjustable resistor; X k , Y k , Z k are the red, green and blue color scale values of the sliding contact at the kth adjustable resistor; R i is the voltage-dividing resistance value of the sliding contact at the i-th adjustable resistor; C is a constant.
[0084] The method for gamma correction provided by the embodiment of the present invention achieves the purpose of gamma calibration by setting an adjustable resistor in the gamma circuit to change the gamma of the display screen by adjusting the voltage divider resistor, without the need for dithering technology or traditional lookup tables, so as to achieve accurate gamma calibration without artifacts and noise.
[0085] An embodiment of the present invention provides a display screen, comprising a signal source generating device and a display screen; the signal source generating device is used to send a signal source to the display screen; the display screen is used to receive the signal source and display the signal source; the display screen also includes a device for gamma correction as described in any of the above embodiments, which is used to adjust the display output of the display screen according to the corrected gamma value.
[0086] Figure 3A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention, such as Figure 3 As shown, the server may include: a processor 301, a communications interface 302, a memory 303 and a communication bus 304, wherein the processor 301, the communications interface 302 and the memory 303 communicate with each other through the communication bus 304. The processor 301 may call the logic instructions in the memory 303 to execute the following method: a display control device and a gamma circuit located inside the display screen; the gamma circuit includes a voltage divider circuit composed of a plurality of adjustable resistors of the same resistance connected in series; two main contacts of the voltage divider circuit are connected to a voltage source of the gamma circuit respectively; the sliding contact of the adjustable resistor slides on the adjustable resistor to provide working power for the display screen; the display control device is in communication connection with the gamma circuit to set the position of the sliding contact, adjust the output color scale value of the display screen, and complete gamma correction.
[0087] In addition, the logic instructions in the above-mentioned memory 303 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0088] On the other hand, an embodiment of the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to execute the method for gamma correction provided by the above-mentioned embodiments, for example including: a display control device and a gamma circuit located inside a display screen; the gamma circuit includes a voltage divider circuit formed by a plurality of adjustable resistors of the same resistance value connected in series; two main contacts of the voltage divider circuit are respectively connected to a voltage source of the gamma circuit; a sliding contact of the adjustable resistor slides on the adjustable resistor to provide working power for the display screen; the display control device is communicatively connected to the gamma circuit to set the position of the sliding contact, adjust the output color scale value of the display screen, and complete gamma correction.
[0089] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0090] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0091] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A device for gamma correction, characterized in that including a display control device and a gamma circuit; The gamma circuit comprises a voltage divider circuit formed by a plurality of adjustable resistors of the same resistance value connected in series; The two main contacts of the voltage divider circuit are respectively connected to the voltage source of the gamma circuit; the sliding contact of the adjustable resistor slides on the adjustable resistor of the voltage divider circuit to provide working power for the display screen; The display control device is in communication connection with the gamma circuit and is used to set the position of the sliding contact to adjust the output color scale value of the display screen and complete the gamma correction; The display control device is connected to the gamma circuit via an I²C communication interface, and the display control device sets the position of the sliding contact to adjust the output color scale value of the display screen, including: determining the voltage-dividing resistance value of the adjustable resistor according to the signal source and the output color scale value, and the display control device is connected to the signal source generating device; using the gamma circuit to set the position of the sliding contact according to the voltage-dividing resistance value to adjust the output color scale value of the display screen; Among them, the display control device determines the voltage-dividing resistance value of the adjustable resistor according to the signal source and the output color scale value, including: determining the correlation between the resistance voltage and the voltage-dividing resistance value to calculate all the resistance voltage divisions of the red, green and blue channels respectively; obtaining the display color scale values of the red, green and blue channels according to the output color scale value; determining the correlation between the display color scale value and the voltage-dividing resistance value according to the coefficient of each color scale value and the branch voltage; based on the correlation between the voltage-dividing resistance values, determining the voltage-dividing resistance value of the adjustable resistor according to the currently obtained output color scale value.
2. The device for gamma correction according to claim 1, characterized in that: The gamma circuit also includes a control and storage unit; The display control device is connected to the signal source generating device, and is used to determine the voltage-dividing resistance value of the adjustable resistor according to the signal source and the output color scale value; The display control device is communicatively connected with the gamma circuit via an I²C communication interface, and is used to write the voltage-dividing resistance value into the control and storage unit via the I²C communication interface; The gamma circuit sets the position of the sliding contact according to the voltage-dividing resistance value.
3. The device for gamma correction according to claim 2, characterized in that: The adjustable resistor is a programmable resistor; The control and storage unit is communicatively connected with the programmable resistor and is used to set the voltage dividing resistance of the programmable resistor according to the voltage dividing resistance value.
4. The device for gamma correction according to claim 3, characterized in that: The display control device is also used to execute a preset programming procedure to determine the voltage-dividing resistance value of the adjustable resistor according to the signal source and the output color scale value.
5. The device for gamma correction according to claim 3, characterized in that: The total number of adjustable resistors with the same resistance in the programmable resistor is 256.
6. The device for gamma correction according to claim 1, characterized in that: Also includes: Color detection device; The color detection device is used to obtain the output color scale value of the display screen and feed the output color scale value back to the display controller.
7. A method for gamma correction, characterized in that include: The display control device is communicatively connected to a gamma circuit located inside a display screen; the gamma circuit comprises a voltage divider circuit formed by a plurality of adjustable resistors of the same resistance value connected in series; two main contacts of the voltage divider circuit are respectively connected to a voltage source of the gamma circuit; a sliding contact of the adjustable resistor slides on the adjustable resistor to provide working power for the display screen; The display control device is used to set the position of the sliding contact, adjust the output color scale value of the display screen, and complete gamma correction; The display control device is communicatively connected to the gamma circuit located inside the display screen, comprising: the display control device is communicatively connected to the gamma circuit via an I²C communication interface; Correspondingly, the display control device sets the position of the sliding contact and adjusts the output color scale value of the display screen, including: determining the voltage divider resistance value of the adjustable resistor according to the signal source and the output color scale value, and the display control device is connected to the signal source generating device; Using the gamma circuit to set the position of the sliding contact according to the voltage-dividing resistance value, so as to adjust the output color scale value of the display screen; The step of determining the voltage-dividing resistance value of the adjustable resistor according to the signal source and the output color scale value comprises: Determine the correlation between the resistor voltage and the voltage-dividing resistor value to calculate all the resistor voltage divisions of the red, green and blue channels respectively; Obtaining display color scale values of the red, green and blue channels according to the output color scale values; Determining the correlation between the display color scale value and the voltage divider resistance value according to the coefficient of each color scale value and the branch voltage; Based on the correlation between the voltage-dividing resistance values, the voltage-dividing resistance value of the adjustable resistor is determined according to the currently acquired output color scale value.
8. A display screen, comprising a signal source generating device and a display screen; The signal source generating device is used to send a signal source to the display screen; The display screen is used to receive the signal source and display the signal source; it is characterized by further comprising: The device for gamma correction as claimed in any one of claims 1 to 6, is used to adjust the display output of the display screen according to the corrected gamma value.
