Dynamic contrast quantization method, device, equipment and readable storage medium
By obtaining the N-order brightness value sequence in the image and calculating the dynamic gamma value, and drawing the dynamic gamma line chart, the problem of insufficient quantification of dynamic contrast in the existing technology is solved, the precise quantization and adjustment of contrast is achieved, and the brightness adjustment is improved efficiency and consistency.
Patent Information
- Application Number
- CN202010748244.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-29
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2040-07-29
AI Technical Summary
The prior art lacks a method of quantifying dynamic contrast, which leads to the adjustment of dynamic image brightness based on human eye judgment, with artificial errors and time-consuming, and the brightness change cannot be adjusted numerical.
By obtaining the N-order brightness value sequence in the image, calculating the dynamic gamma value, drawing a dynamic gamma line chart, realizing contrast quantization, and adjusting the brightness by adjusting the gamma value to ensure that the brightness changes are smooth and even under different background signal amplitudes.
The quantization and adjustment of dynamic contrast is realized, which reduces artificial errors, improves debugging efficiency, ensures smoothness of brightness changes, and avoids flickering.
Smart Images

Figure CN114067616B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image processing, and in particular to a dynamic contrast quantization method, device, equipment and a readable storage medium. Background Art
[0002] For brightness adjustment of dynamic images in displays, researchers usually use human eyes to observe and judge whether the brightness of the debugged prototype is consistent with that of the reference prototype. If not, they manually adjust the dynamic contrast parameters to adjust the brightness of the debugged prototype to the same as that of the reference prototype. This method of judging by the human eye has errors caused by human factors, and the debugging process is time-consuming. Currently, there is a lack of a method to quantify the dynamic contrast so as to adjust the brightness changes of dynamic images by adjusting the numerical value. Summary of the invention
[0003] The main purpose of the present invention is to propose a dynamic contrast quantization method, device, equipment and computer-readable storage medium, aiming to provide a dynamic contrast quantization method.
[0004] Get the N-order brightness value sequence of the test area in the current background image;
[0005] Calculating the dynamic gamma value corresponding to each order of brightness value in the N-order brightness value sequence to obtain an N-order dynamic gamma value sequence;
[0006] Based on the N-order dynamic gamma value sequence, a dynamic gamma line graph of the test area is drawn to achieve dynamic contrast quantification of the test area.
[0007] Optionally, the step of obtaining an N-order brightness value sequence of a test area in the current background image includes:
[0008] Get the N-order signal amplitude sequence of the test area in the current background image;
[0009] The brightness value of the test area at each order of signal amplitude in the N-order signal amplitude sequence is detected to obtain an N-order brightness value sequence.
[0010] Optionally, before the step of obtaining the N-order signal amplitude sequence of the test area in the current background image, the step further includes:
[0011] Get the maximum signal amplitude Y of the test area max ;
[0012] Set the value Y max / (N+1),2*Y max / (N+1)……N*Y max / (N+1) is determined as the N-order signal amplitude sequence.
[0013] Optionally, in the step of calculating the dynamic gamma value corresponding to each order of brightness value in the N-order brightness value sequence to obtain the N-order dynamic gamma value sequence, the formula for calculating the dynamic gamma value is:
[0014] Among them, L mn is the brightness value of the nth order, L max is the maximum brightness value of the test area.
[0015] Optionally, the step of drawing the dynamic gamma line graph of the test area based on the N-order dynamic gamma value sequence includes:
[0016] Based on the N-order dynamic gamma value sequence, a dynamic gamma line graph of the test area is drawn with the order variable n as the horizontal axis and the dynamic gamma value as the vertical axis.
[0017] Optionally, after the step of drawing a dynamic gamma line graph of the test area based on the N-order dynamic gamma value sequence to achieve dynamic contrast quantification of the test area, the method further includes:
[0018] Taking the preset horizontal straight line in the dynamic gamma line graph as a reference, maintaining the changing trend of the gamma line in the dynamic gamma line graph, adjusting the dynamic gamma values corresponding to the inflection points on the dynamic gamma line, until the absolute value of the difference between the dynamic gamma values corresponding to a preset number of inflection points and the vertical axis values corresponding to the preset horizontal straight line is less than or equal to a preset threshold value, so as to achieve the debugging of the dynamic contrast.
[0019] Optionally, after the step of drawing a dynamic gamma line graph of the test area based on the N-order dynamic gamma value sequence to achieve dynamic contrast quantification of the test area, the method further includes:
[0020] Obtain a reference broken line of the test area, and display the reference broken line on the dynamic gamma broken line graph;.
[0021] In addition, to achieve the above object, the present invention further provides a dynamic contrast quantization device, the dynamic contrast quantization device comprising:
[0022] An acquisition module is used to acquire an N-order brightness value sequence of a test area in a current background image;
[0023] A calculation module, used for calculating the dynamic gamma value corresponding to each order of brightness value in the N-order brightness value sequence, to obtain an N-order dynamic gamma value sequence;
[0024] A drawing module is used to draw a dynamic gamma line graph of the test area based on the N-order dynamic gamma value sequence to achieve dynamic contrast quantification of the test area.
[0025] In addition, to achieve the above-mentioned purpose, the present invention also provides a dynamic contrast quantization device, which includes a memory, a processor, and a dynamic contrast quantization program stored in the memory and executable on the processor, and the dynamic contrast quantization program implements the steps of the dynamic contrast quantization method described above when executed by the processor.
[0026] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, on which the dynamic contrast quantization program is stored, and when the dynamic contrast quantization program is executed by a processor, the steps of the dynamic contrast quantization method as described above are implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 A schematic diagram of the hardware structure of a device for implementing each embodiment of the present invention;
[0028] Figure 2 It is a schematic diagram of the flow chart of the first embodiment of the dynamic contrast quantization method of the present invention;
[0029] Figure 3 It is a line graph of brightness change of the test area under different background signal amplitudes of the present invention;
[0030] Figure 4 It is a dynamic gamma line graph of the test area under different background signal amplitudes of the present invention;
[0031] Figure 5 It is a schematic diagram of adjusting the dynamic gamma curve according to the present invention;
[0032] Figure 6 It is a schematic diagram of adjusting the dynamic gamma curve according to the present invention.
[0033] The purpose, features and advantages of the present invention will be described with reference to the accompanying drawings in conjunction with the embodiments. DETAILED DESCRIPTION
[0034] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0035] The present invention provides a dynamic contrast quantization device, referring to Figure 1 , Figure 1 It is a structural diagram of the hardware operating environment involved in the embodiment of the present invention.
[0036] It should be noted that Figure 1The dynamic contrast quantization device of the embodiment of the present invention can be a PC (Personal Computer), a portable computer, a server and other devices.
[0037] like Figure 1 As shown, the dynamic contrast quantization device may include: a processor 1001, such as a CPU, a memory 1005, a user interface 1003, a network interface 1004, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the user interface 1003 may optionally include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may optionally be a storage device independent of the aforementioned processor 1001.
[0038] Optionally, the dynamic contrast quantization device may further include an RF (Radio Frequency) circuit, a sensor, a WiFi module, and the like.
[0039] Those skilled in the art will understand that Figure 1 The structure of the dynamic contrast quantization device shown in the figure does not constitute a limitation of the dynamic contrast quantization device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0040] like Figure 1 As shown, the memory 1005 as a computer storage readable storage medium may include an operating system, a network communication module, a user interface module and a dynamic contrast quantization program. The operating system is a program for managing and controlling the hardware and software resources of the dynamic contrast quantization device, and supports the operation of the dynamic contrast quantization program and other software or programs.
[0041] Figure 1 The dynamic contrast quantization method device shown can be used to provide a dynamic contrast quantization method. The user interface 1003 is mainly used to detect or output various information, such as input signal amplitude and output dynamic gamma value; the network interface 1004 is mainly used to interact with the background server for communication; the processor 1001 can be used to call the dynamic contrast quantization program stored in the memory 1005 and perform the following operations:
[0042] Get the N-order brightness value sequence of the test area in the current background image;
[0043] Calculating the dynamic gamma value corresponding to each order of brightness value in the N-order brightness value sequence to obtain an N-order dynamic gamma value sequence;
[0044] Based on the N-order dynamic gamma value sequence, a dynamic gamma line graph of the test area is drawn to achieve dynamic contrast quantification of the test area.
[0045] Furthermore, the step of obtaining an N-order brightness value sequence of the test area in the current background image includes:
[0046] Get the N-order signal amplitude sequence of the test area in the current background image;
[0047] The brightness value of the test area at each order of signal amplitude in the N-order signal amplitude sequence is detected to obtain an N-order brightness value sequence.
[0048] Furthermore, the step of obtaining the N-order signal amplitude sequence of the test area in the current background image includes:
[0049] Get the maximum signal amplitude Y of the test area max ;
[0050] The sequence consisting of the values Ymax / (N+1), 2*Ymax / (N+1)...N*Ymax / (N+1) is determined as an N-order signal amplitude sequence.
[0051] Further, in the step of calculating the dynamic gamma value corresponding to each order of brightness value in the N-order brightness value sequence to obtain the N-order dynamic gamma value sequence, the formula for calculating the dynamic gamma value is:
[0052] Among them, L mn is the brightness value of the nth order, L max is the maximum brightness value of the test area.
[0053] Furthermore, the step of drawing a dynamic gamma line graph of the test area based on the N-order dynamic gamma value sequence includes:
[0054] Based on the N-order dynamic gamma value sequence, a dynamic gamma line graph of the test area is drawn with the order variable n as the horizontal axis and the dynamic gamma value as the vertical axis.
[0055] Further, after the step of drawing the dynamic gamma line graph of the test area based on the N-order dynamic gamma value sequence to implement dynamic contrast quantization of the test area, the processor 1001 may be used to call the dynamic contrast quantization program stored in the memory 1005, and perform the following operations:
[0056] Taking the preset horizontal straight line in the dynamic gamma line graph as a reference, maintaining the changing trend of the gamma line in the dynamic gamma line graph, adjusting the dynamic gamma values corresponding to the inflection points on the dynamic gamma line, until the absolute value of the difference between the dynamic gamma values corresponding to a preset number of inflection points and the vertical axis values corresponding to the preset horizontal straight line is less than or equal to a preset threshold value, so as to achieve the debugging of the dynamic contrast.
[0057] Further, after the step of drawing the dynamic gamma line graph of the test area based on the N-order dynamic gamma value sequence to implement dynamic contrast quantization of the test area, the processor 1001 may be used to call the dynamic contrast quantization program stored in the memory 1005, and perform the following operations:
[0058] Obtaining a reference broken line of the test area, and displaying the reference broken line on the dynamic gamma broken line graph;
[0059] The dynamic gamma fold line in the dynamic gamma fold line graph is adjusted until the dynamic gamma fold line coincides with the reference fold line, so as to achieve the adjustment of the dynamic contrast.
[0060] The present invention obtains an N-order brightness value sequence of the test area in the current background image, calculates the dynamic gamma value corresponding to each order brightness value in the N-order brightness value sequence, obtains an N-order dynamic gamma value sequence, and draws a dynamic gamma line graph of the test area based on the N-order dynamic gamma value sequence, thereby realizing the quantification of the dynamic contrast of the test area. Furthermore, researchers can fine-tune the dynamic contrast of the test area by adjusting the dynamic gamma value in the obtained dynamic gamma line graph, so that under different background signal amplitudes, the brightness change of the test area when it is at the same signal amplitude can be smooth and uniform, and no flickering phenomenon will occur.
[0061] The specific implementation of the mobile terminal of the present invention is basically the same as the embodiments of the following dynamic contrast quantization method, and will not be described in detail here.
[0062] Based on the above structure, various embodiments of the dynamic contrast quantization method of the present invention are proposed.
[0063] The invention provides a dynamic contrast quantization method.
[0064] Reference Figure 2 , Figure 2 FIG. 4 is a schematic diagram of a first embodiment of a dynamic contrast quantization method according to the present invention.
[0065] In this embodiment, an embodiment of a dynamic contrast quantization method is provided. It should be noted that although a logical order is shown in the flow chart, in some cases, the steps shown or described may be performed in an order different from that shown here.
[0066] In this embodiment, the dynamic contrast quantization method includes:
[0067] Step S10, obtaining an N-order brightness value sequence of a test area in the current background image;
[0068] The dynamic contrast ratio is the ratio of the brightness of the black screen to the brightness of the white screen, which can represent the gradient from the black screen to the white screen. The larger the ratio, the more gradients there are from the black screen to the white screen, and thus the richer the color expression. In this embodiment, the dynamic gamma value corresponding to the screens of different brightness is used to represent the dynamic contrast ratio.
[0069] The current background image is the background image displayed by the currently debugged prototype. The background image is divided into dark scene, bright scene and normal scene. If the debugged prototype displays a background signal with an amplitude of X max If the debugged prototype displays a background image with a background signal amplitude of 0, the current background image is a dark scene. If the debugged prototype displays a background image with a background signal amplitude of X, the current background image is a bright scene. max / 2, X max / 3, X max / 4, then the current background image is a normal scene, the test area is located at the center or other positions of the current background image, the size and shape of the test area are determined by the probe of the brightness meter, and in theory the test area should be as small as possible to facilitate accurate measurement of the brightness of the test area and obtain true results. The N-order brightness value sequence includes N brightness values, each of which is obtained by keeping the background signal amplitude of the current background image unchanged and measuring the brightness of the test area under different signal amplitudes.
[0070] First, by adjusting the background signal amplitude, obtain the background image that needs to be adjusted, that is, the current background image, keep the background signal amplitude of the current background image unchanged, and adjust the signal amplitude of the test area in the current background image to obtain the N-order brightness value sequence of the test area. It can be understood that the test area has an N-order brightness value sequence under each background image. Generally, obtain the N-order brightness value sequence under dark scenes, bright scenes and ordinary scenes respectively, refer to Figure 3 , get the background signal amplitude as 0 and the background signal amplitude as X max / 2 and the background signal amplitude is X maxThree N-order brightness value sequences, where N = 10. It should be noted that by adjusting the background signal amplitude and obtaining N-order brightness values in multiple common scenes, it is helpful to accurately quantify the dynamic contrast, but it is not advisable to select too many common scenes to prevent increasing the workload of dynamic contrast debugging in the test area.
[0071] Step S20, calculating the dynamic gamma value corresponding to each order of brightness value in the N-order brightness value sequence to obtain an N-order dynamic gamma value sequence;
[0072] Calculating the dynamic gamma value is a means of quantifying the dynamic contrast. The reason why the dynamic gamma value is used to quantify the dynamic contrast is that the dynamic gamma value can reflect the subtle impact of the dynamic contrast on the screen display, and further adjust the dynamic gamma value to achieve fine-tuning of the screen display. After obtaining the N-order brightness value sequence of the test area in the current background image, calculate the dynamic gamma value corresponding to each brightness value in the N-order brightness value sequence to obtain the N-order dynamic gamma value sequence of the test area in the current background image.
[0073] Furthermore, the formula for calculating the dynamic gamma value in step S20 is:
[0074] Among them, L mn is the brightness value of the nth order, L max is the maximum brightness value of the test area.
[0075] Keep the background signal amplitude of the current background image unchanged, adjust the signal amplitude of the test area to the maximum, and detect the brightness of the test area at the maximum signal amplitude to obtain the maximum brightness value L max , gamma_mn and L mn m means the background signal amplitude of the current background image is m*X max / M(0≤m≤M), m and M as well as n and N are all positive integers. According to the above formula, the dynamic gamma value corresponding to each brightness value of the current background image can be calculated.
[0076] From the analysis formula, we can know that when keeping n unchanged, changing the background signal amplitude means changing the value of m. mn / L max It can represent the dynamic contrast ratio when the test area is at the same signal amplitude under different background signal amplitudes. According to the properties of the logarithmic function, it can be deduced that when gamma_mn is changed, L can be changed to a smaller extent. mn / L max That is to say, the dynamic contrast of the debugged prototype can be fine-tuned by adjusting the dynamic gamma value.
[0077] Step S30, drawing a dynamic gamma line graph of the test area based on the N-order dynamic gamma value sequence to achieve dynamic contrast quantification of the test area.
[0078] After obtaining the N-order dynamic gamma value sequence of the background image under different background signal amplitudes, a broken line of the N-order dynamic gamma value sequence of the test area in each background image is drawn to obtain a dynamic gamma broken line graph, thereby realizing the quantification of dynamic contrast.
[0079] Further, step S30 includes:
[0080] Step a: based on the N-order dynamic gamma value sequence, with the order variable n as the horizontal axis and the dynamic gamma value as the vertical axis, draw a dynamic gamma line graph of the test area.
[0081] The value range of the order variable n is [0, N]. With the order variable n as the horizontal axis and the dynamic gamma value as the vertical axis, the dynamic gamma line corresponding to the N-order dynamic gamma value sequence of the test area in different background images is drawn to obtain a dynamic gamma line graph. Figure 4 , respectively draw the background signal amplitude as 0, X max / 2 and X max The dynamic gamma broken line corresponding to the N-order dynamic gamma value sequence of the test area under the background image is obtained to obtain a dynamic gamma broken line graph.
[0082] This embodiment obtains an N-order brightness value sequence of the test area in the current background image, calculates the dynamic gamma value corresponding to each brightness value in the N-order brightness value sequence, obtains an N-order dynamic gamma value sequence, and draws a dynamic gamma line graph of the test area based on the N-order dynamic gamma value sequence, thereby realizing the quantification of the dynamic contrast of the test area. Furthermore, researchers can fine-tune the dynamic contrast of the test area by adjusting the dynamic gamma value in the obtained dynamic gamma line graph, so that under different background signal amplitudes, the brightness change of the test area when it is at the same signal amplitude can be smooth and uniform, and no flickering phenomenon will occur.
[0083] Furthermore, a second embodiment of the dynamic contrast quantization method of the present invention is proposed. The second embodiment of the dynamic contrast quantization method is different from the first embodiment of the dynamic contrast quantization method in that step S10 further includes:
[0084] Step b, obtaining an N-order signal amplitude sequence of the test area in the current background image;
[0085] Step c: detecting the brightness value of the test area at each order of signal amplitude in the N-order signal amplitude sequence to obtain an N-order brightness value sequence.
[0086] By adjusting the background signal amplitude, multiple background images can be obtained, and the N-order signal amplitude of the test area in each background image can be obtained. Based on the current background image, the brightness value of the test area under each order of signal amplitude in the N-order signal amplitude sequence is detected to obtain the N-order brightness value sequence of the test area in the current background image, and the brightness value of the test area under each order of signal amplitude in each current background image is detected to obtain multiple N-order brightness value sequences.
[0087] Further, step a comprises:
[0088] Step a1, obtaining the maximum signal amplitude value Y of the test area max ;
[0089] Step a2: Set the value Y max / (N+1),2*Y max / (N+1)……N*Y max / (N+1) is determined as the N-order signal amplitude sequence.
[0090] Maximum signal amplitude Y max It can be preset by researchers to obtain the maximum signal amplitude Y in the test area max , equally divided Y max , Y max Divide into N+1 equal parts, take the signal amplitude as Y max / (N+1),2*Y max / (N+1)……N*Y max / (N+1) constitutes an N-order signal amplitude sequence. It can be understood that the larger the value of N, the more dynamic gamma values are obtained, and the more precise the dynamic contrast quantization is, which helps to better analyze the brightness change trend of the test area. It should be noted that in actual operation, it is not advisable to set the N value too large to prevent increasing the workload of dynamic contrast debugging in the test area and reducing debugging efficiency. Generally, it is sufficient to set N=10. In this embodiment, the signal amplitude of the test area is set in equal parts, and the method of not setting the signal amplitude in equal parts also falls within the protection scope of this embodiment.
[0091] This embodiment obtains an N-order signal amplitude sequence of the test area in the current background image, detects the brightness value of the test area at each order of signal amplitude in the N-order signal amplitude sequence, and obtains an N-order brightness value sequence. By setting N, fine quantification and detailed analysis of the dynamic contrast of the test area can be achieved, and further fine adjustment of the dynamic contrast of the test area can be achieved.
[0092] Furthermore, a third embodiment of the dynamic contrast quantization method of the present invention is proposed. The third embodiment of the dynamic contrast quantization method is different from the first embodiment and the second embodiment of the dynamic contrast quantization method in that after step S30, the method further includes:
[0093] Step d, taking the preset horizontal straight line in the dynamic gamma line graph as a reference, maintaining the changing trend of the gamma line in the dynamic gamma line graph, adjusting the dynamic gamma values corresponding to the inflection points on the dynamic gamma line, until the absolute value of the difference between the dynamic gamma values corresponding to a preset number of inflection points and the vertical axis values corresponding to the preset horizontal straight line is less than or equal to a preset threshold value, so as to achieve the debugging of the dynamic contrast.
[0094] After obtaining the dynamic gamma line graph, in addition to analyzing the dynamic contrast of the test area with the help of the dynamic gamma line graph, the researchers can also trigger debugging instructions to adjust the broken line in the dynamic gamma graph to debug the dynamic contrast of the test area. The researchers trigger the debugging instructions by inputting the standard gamma value. After receiving the debugging instructions, they extract the standard gamma value corresponding to the debugging instructions. According to the standard gamma value, the straight line corresponding to the dynamic gamma value is displayed in the obtained dynamic gamma line graph, that is, the preset horizontal straight line. Taking the preset horizontal straight line as the benchmark, and maintaining the trend of the gamma line in the dynamic gamma line graph with the variable n as the premise, adjust the vertical axis value corresponding to the inflection point on the dynamic gamma line, that is, the dynamic gamma value. It should be noted that the adjustment of the dynamic gamma value of the inflection point on the dynamic gamma line is a synchronous adjustment, refer to Figure 5 , Figure 5 A schematic diagram of the result of adjusting the dynamic gamma value in the dynamic gamma line chart based on a preset horizontal straight line is provided. Figure 5 The dynamic gamma values of the inflection points on the middle dynamic gamma fold line are 2.70, 2.57, 2.34, 2.23, 2.16, 2.02, 1.98, 1.86, 1.90, and 1.94 respectively. The standard gamma value is set to 2.2. When adjusting the above dynamic gamma values, the dynamic gamma values with a larger absolute value of the difference from the standard gamma value are adjusted more greatly. The adjusted results can be 2.50, 2.38, 2.3, 2.21, 2.18, 2.1, 2.05, 2.00, 2.02, and 2.04. Figure 5 The solid line in is the dynamic gamma curve before adjustment. Figure 5 The dotted line in the figure is the adjusted dynamic gamma line. When the inflection points on the dynamic gamma line are adjusted until the absolute value of the difference between the dynamic gamma value and the dynamic contrast parameter is less than or equal to the preset threshold, the dynamic gamma value is stopped from being adjusted, thus achieving the debugging of the dynamic contrast. For example, if the preset threshold is 0.16 and the preset number is 6, Figure 5 The absolute value of the difference between the dynamic gamma value and the dynamic contrast parameter of 8 inflection points is less than or equal to 0.16, so stop adjusting the dynamic gamma curve.
[0095] The present embodiment provides a method for debugging dynamic contrast, which uses a preset horizontal straight line in a dynamic gamma line graph as a reference, maintains the changing trend of the gamma line in a dynamic coding line graph, and adjusts the dynamic gamma values corresponding to the inflection points on the dynamic gamma line until the absolute value of the difference between the dynamic gamma values corresponding to a preset number of inflection points and the vertical axis values corresponding to the preset horizontal straight line is less than or equal to a preset threshold value, thereby achieving debugging of the dynamic contrast on the basis of its quantification, using the preset horizontal straight line as a reference, preventing blind debugging of the dynamic contrast, and improving the accuracy of debugging.
[0096] Furthermore, a fourth embodiment of the dynamic contrast quantization method of the present invention is proposed. The fourth embodiment of the dynamic contrast quantization method is different from the first embodiment, the second embodiment and the third embodiment of the dynamic contrast quantization method in that after step S30, the following steps are further included:
[0097] Step e, obtaining a reference broken line of the test area, and displaying the reference broken line on the dynamic gamma broken line graph;
[0098] Step f, adjusting the dynamic gamma line in the dynamic gamma line graph until the dynamic gamma line coincides with the reference line to achieve the adjustment of the dynamic contrast.
[0099] This embodiment proposes another method for adjusting the dynamic contrast of the sample being adjusted.
[0100] The premise of obtaining the reference broken line is to obtain the reference gamma value. The calculation method of the reference gamma value is the same as the calculation method of the dynamic gamma value. The difference is that the hardware object calculated by this calculation method in the first embodiment is the debugged prototype, while the hardware object calculated by this calculation method in this embodiment is the reference prototype. The method for obtaining the reference broken line is: adjust the background signal amplitude of the reference prototype to obtain multiple reference background images, and based on each reference background image, adjust the signal amplitude of the reference area in the reference background image to obtain an N-order reference value sequence of the reference area (the reference value is the brightness value of the reference area under different signal amplitudes), calculate the reference gamma value corresponding to each order of the reference value in the N-order reference value sequence, and obtain an N-order reference gamma value sequence. Based on the N-order reference gamma value sequence, draw a reference gamma broken line graph of the reference area to obtain the reference broken line. After obtaining the reference broken line, display the reference broken line in the obtained dynamic gamma broken line graph, and refer to it. Figure 6 , Figure 6 This is a schematic diagram of a scenario for adjusting the dynamic gamma curve in this embodiment. Figure 6 The dotted line in is the reference line.
[0101] This embodiment adjusts the dynamic gamma curve by adjusting the dynamic contrast parameters of the current background image until the dynamic gamma curve coincides with the reference curve. It should be noted that the dynamic gamma curve may not completely coincide with the reference curve, but approximate coincidence can also avoid blind adjustment of the dynamic contrast to ensure that the debugged prototype outputs a picture with distinct color levels.
[0102] This embodiment obtains a reference line of the test area and displays the reference line in a dynamic gamma line graph, and adjusts the dynamic contrast parameter to adjust the dynamic gamma line in the dynamic gamma line graph until the dynamic gamma line coincides with the reference line, thereby greatly improving the debugging efficiency of the dynamic contrast, and excellent image quality can be debugged without human observation.
[0103] In addition, an embodiment of the present invention further provides a dynamic contrast quantization method and device, wherein the dynamic contrast quantization device comprises:
[0104] An acquisition module is used to acquire an N-order brightness value sequence of a test area in a current background image;
[0105] A calculation module, used for calculating the dynamic gamma value corresponding to each order of brightness value in the N-order brightness value sequence, to obtain an N-order dynamic gamma value sequence;
[0106] A drawing module is used to draw a dynamic gamma line graph of the test area based on the N-order dynamic gamma value sequence to achieve dynamic contrast quantification of the test area.
[0107] The acquisition module is also used to acquire an N-order signal amplitude sequence of the test area in the current background image;
[0108] Furthermore, the acquisition module further includes:
[0109] The detection unit is used to detect the brightness value of the test area at each order of signal amplitude in the N-order signal amplitude sequence to obtain an N-order brightness value sequence.
[0110] The acquisition module is also used to acquire the maximum signal amplitude Y of the test area max ;
[0111] Furthermore, the acquisition module further includes:
[0112] Determine the unit used to convert the value Y max / (N+1),2*Y max / (N+1)……N*Y max / (N+1) is determined as the N-order signal amplitude sequence.
[0113] Furthermore, the drawing module is also used to draw a dynamic gamma line graph of the test area based on the N-order dynamic gamma value sequence, with the order variable n as the horizontal axis and the dynamic gamma value as the vertical axis.
[0114] Furthermore, the dynamic contrast quantization device further comprises:
[0115] An adjustment module is used to maintain the change trend of the gamma line in the dynamic gamma line graph based on the preset horizontal straight line in the dynamic gamma line graph, and adjust the dynamic gamma values corresponding to the inflection points on the dynamic gamma line until the absolute value of the difference between the dynamic gamma values corresponding to a preset number of inflection points and the vertical axis values corresponding to the preset horizontal straight line is less than or equal to a preset threshold value, so as to achieve the debugging of the dynamic contrast.
[0116] Furthermore, the acquisition module is also used to acquire a reference polyline of the test area;
[0117] The dynamic contrast quantization device also includes:
[0118] A display module is further used to display the reference broken line on the dynamic gamma broken line graph;
[0119] The adjustment module is further used to adjust the dynamic gamma line in the dynamic gamma line graph until the dynamic gamma line coincides with the reference line, so as to achieve the adjustment of the dynamic contrast.
[0120] The implementation of the dynamic contrast quantization method and device of the present invention is basically the same as the above-mentioned embodiments of the dynamic contrast quantization method, and will not be described in detail here.
[0121] In addition, an embodiment of the present invention further provides a computer-readable storage medium, on which a dynamic contrast quantization program is stored. When the dynamic contrast quantization program is executed by a processor, each step of the dynamic contrast quantization method described above is implemented.
[0122] It should be noted that the computer-readable storage medium may be provided in the dynamic contrast quantization device.
[0123] The specific implementation of the computer-readable storage medium of the present invention is substantially the same as the above-mentioned embodiments of dynamic contrast quantization, and will not be described in detail herein.
[0124] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
[0125] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0126] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0127] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A dynamic contrast quantization method, characterized in that: The dynamic contrast quantization method comprises the following steps: Get the N-order brightness value sequence of the test area in the current background image; The step of obtaining an N-order brightness value sequence of the test area in the current background image comprises: Get the N-order signal amplitude sequence of the test area in the current background image; Detecting the brightness value of the test area at each order of signal amplitude in the N-order signal amplitude sequence to obtain an N-order brightness value sequence; Obtaining the maximum signal amplitude value Ymax of the test area; The sequence consisting of the values Ymax / (N+1), 2*Ymax / (N+1)…N*Ymax / (N+1) is determined as an N-order signal amplitude sequence; Wherein, the N-order brightness value sequence includes N brightness values, each of which is obtained by keeping the background signal amplitude of the current background image unchanged and measuring the brightness of the test area under different signal amplitudes; Calculating the dynamic gamma value corresponding to each order of brightness value in the N-order brightness value sequence to obtain an N-order dynamic gamma value sequence; By adjusting the dynamic gamma value, the dynamic contrast of the debugged prototype is fine-tuned; Based on the N-order dynamic gamma value sequence, with the order variable n as the horizontal axis and the dynamic gamma value as the vertical axis, a dynamic gamma line graph of the test area is drawn to achieve dynamic contrast quantification of the test area; Input a standard gamma value to trigger a debugging instruction, and when the debugging instruction is received, extract the standard gamma value corresponding to the debugging instruction, and display a preset horizontal straight line in the dynamic gamma line chart according to the standard gamma value; Taking the preset horizontal straight line in the dynamic gamma line graph as a reference, maintain the changing trend of the gamma line in the dynamic gamma line graph, and synchronously adjust the dynamic gamma values corresponding to the inflection points on the dynamic gamma line until the absolute value of the difference between the dynamic gamma values corresponding to a preset number of inflection points and the vertical axis values corresponding to the preset horizontal straight line is less than or equal to a preset threshold value, so as to achieve the debugging of the dynamic contrast.
2. The dynamic contrast quantization method according to claim 1, characterized in that: In the step of calculating the dynamic gamma value corresponding to each order of brightness value in the N-order brightness value sequence to obtain the N-order dynamic gamma value sequence, the formula for calculating the dynamic gamma value is: Wherein, Lmn is the brightness value of the nth order, and Lmax is the maximum brightness value of the test area.
3. The dynamic contrast quantization method according to claim 1, characterized in that: After the step of drawing a dynamic gamma line graph of the test area based on the N-order dynamic gamma value sequence to achieve dynamic contrast quantification of the test area, the method further includes: Obtaining a reference broken line of the test area, and displaying the reference broken line on the dynamic gamma broken line graph; The dynamic gamma fold line in the dynamic gamma fold line graph is adjusted until the dynamic gamma fold line coincides with the reference fold line, so as to achieve the adjustment of the dynamic contrast.
4. A dynamic contrast quantization device, characterized in that: The dynamic contrast quantization device comprises: An acquisition module is used to acquire an N-order brightness value sequence of a test area in a current background image; The step of obtaining an N-order brightness value sequence of the test area in the current background image comprises: Get the N-order signal amplitude sequence of the test area in the current background image; Detecting the brightness value of the test area at each order of signal amplitude in the N-order signal amplitude sequence to obtain an N-order brightness value sequence; Obtaining the maximum signal amplitude value Ymax of the test area; The sequence consisting of the values Ymax / (N+1), 2*Ymax / (N+1)…N*Ymax / (N+1) is determined as an N-order signal amplitude sequence; Wherein, the N-order brightness value sequence includes N brightness values, each of which is obtained by keeping the background signal amplitude of the current background image unchanged and measuring the brightness of the test area under different signal amplitudes; A calculation module, used for calculating the dynamic gamma value corresponding to each order of brightness value in the N-order brightness value sequence, to obtain an N-order dynamic gamma value sequence; By adjusting the dynamic gamma value, the dynamic contrast of the debugged prototype is fine-tuned; A drawing module, for drawing a dynamic gamma line graph of the test area based on the N-order dynamic gamma value sequence, with the order variable n as the horizontal axis and the dynamic gamma value as the vertical axis, so as to achieve dynamic contrast quantification of the test area; Input a standard gamma value to trigger a debugging instruction, and when the debugging instruction is received, extract the standard gamma value corresponding to the debugging instruction, and display a preset horizontal straight line in the dynamic gamma line chart according to the standard gamma value; Taking the preset horizontal straight line in the dynamic gamma line graph as a reference, maintain the changing trend of the gamma line in the dynamic gamma line graph, and synchronously adjust the dynamic gamma values corresponding to the inflection points on the dynamic gamma line until the absolute value of the difference between the dynamic gamma values corresponding to a preset number of inflection points and the vertical axis values corresponding to the preset horizontal straight line is less than or equal to a preset threshold value, so as to achieve the debugging of the dynamic contrast.
5. A dynamic contrast quantization device, characterized in that: The dynamic contrast quantization device includes a memory, a processor, and a dynamic contrast quantization program stored in the memory and executable on the processor. When the dynamic contrast quantization program is executed by the processor, the steps of the dynamic contrast quantization method according to any one of claims 1 to 3 are implemented.
6. A readable storage medium, characterized in that: The readable storage medium stores a dynamic contrast quantization program, and when the dynamic contrast quantization program is executed by a processor, the steps of the dynamic contrast quantization method according to any one of claims 1 to 3 are implemented.
