Initial pixel value generation method and device, equipment and medium
By obtaining the appropriate initial pixel value through iterative calculation and average value processing in the multi-layer liquid crystal tensor light field display technology, the multiple iterative calculation problems caused by random initial pixel values in the prior art are solved, and the display screen is improved Real-time.
Patent Information
- Application Number
- CN202310694168.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-12
- Publication Date
- 2024-12-13
- Estimated Expiration
- 2043-06-12
AI Technical Summary
In the multi-layer liquid crystal tensor light field display technology, since the initial pixel value is a random value, the light field decomposition algorithm requires multiple iterative calculations, resulting in poor real-time performance of the object displayed on the display screen.
By obtaining the starting pixel value of each feature point on each layer of the LCD screen, the light field decomposition algorithm is used to iterate and calculate the number of iterations. If the number of iterations is greater than the threshold, the average value of the iteration results is calculated as the new start. The pixel value is obtained until the number of iterations is not greater than the threshold value, and the appropriate initial pixel value is obtained.
The number of iterations of light field decomposition is reduced, the amount of calculation is reduced, and the real-time performance of the display object is improved.
Smart Images

Figure CN119132252A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of electronics, and in particular to a method, device, equipment and medium for generating an initial pixel value. Background Art
[0002] The multi-layer liquid crystal tensor light field display technology uses the characteristics of multi-screen display objects, and iteratively calculates the initial pixel value based on the pixel value of the object through the light field decomposition algorithm to determine the pixel value that each layer of the liquid crystal screen should display.
[0003] At present, in the light field decomposition algorithm, since the initial pixel value is a random value, it takes multiple iterative calculations to reach a better pixel value that each layer of the liquid crystal display screen should display. Due to the huge amount of calculation, the real-time performance of the display screen in displaying objects is poor. Summary of the invention
[0004] The present application provides a method, device, equipment and medium for generating an initial pixel value, which reduces the number of iterations of light field decomposition and the amount of calculation by calculating a suitable initial pixel value, thereby improving the real-time performance of displaying objects on a display screen.
[0005] On the one hand, the present application provides a method for generating an initial pixel value, comprising:
[0006] Obtaining a starting pixel value for this processing, wherein the starting pixel value includes a display pixel value corresponding to each feature point on the first object on each layer of the liquid crystal display screen;
[0007] According to the pixel value rendered at each feature point on the first object and the starting pixel value in this processing, the light field decomposition algorithm is used to perform iterative calculations at multiple set display positions to obtain multiple iterative results in this processing, and the number of iterations corresponding to each iterative result in this processing is recorded;
[0008] If among the multiple iterative results of this processing, the number of iterations corresponding to any iterative result is greater than the preset threshold, then the average value of the multiple iterative results of this processing is calculated to obtain the target pixel value of this processing, and the target pixel value of this processing is used as the starting pixel value of the next processing, and the step of obtaining the starting pixel value of this processing is executed until the number of iterations corresponding to the multiple iterative results of the current processing is not greater than the threshold, then the starting pixel value of the current processing is used as the initial pixel value.
[0009] On the other hand, the present application provides an initial pixel value generating device, comprising:
[0010] An acquisition module, used to acquire a starting pixel value for this processing, wherein the starting pixel value includes a display pixel value corresponding to each feature point on the first object on each layer of the liquid crystal display screen;
[0011] a calculation module, configured to perform iterative calculations using a light field decomposition algorithm at multiple set display positions according to the pixel value rendered at each feature point on the first object and the starting pixel value of the current processing, to obtain multiple iterative results of the current processing, and to record the number of iterations corresponding to each iterative result of the current processing;
[0012] A processing module is used to calculate the average value of multiple iterative results under this processing if the number of iterations corresponding to any iterative result under this processing is greater than a preset threshold, obtain the target pixel value of this processing, and use the target pixel value of this processing as the starting pixel value of the next processing, and execute the step of obtaining the starting pixel value under this processing until the number of iterations corresponding to the multiple iterative results under the current processing is not greater than the threshold, then use the starting pixel value under the current processing as the initial pixel value.
[0013] In yet another aspect, the present application provides an electronic device, comprising: a processor, and a memory communicatively connected to the processor;
[0014] The memory stores computer-executable instructions;
[0015] The processor executes the computer-executable instructions stored in the memory to implement the method as described in any of the preceding items.
[0016] On the other hand, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the method as described in any of the preceding items.
[0017] The initial pixel value generation method, device, equipment and medium provided by the present application first obtain the starting pixel value under this processing, and the starting pixel value includes the display pixel value corresponding to each feature point on the first object on each layer of the liquid crystal display screen; then, according to the pixel value rendered by each feature point on the first object and the starting pixel value under this processing, the light field decomposition algorithm is used to perform iterative calculations at multiple set display positions to obtain multiple iterative results under this processing, and the number of iterations corresponding to each iterative result under this processing is recorded; if the number of iterations corresponding to any of the multiple iterative results under this processing is greater than a preset threshold, the average value of the multiple iterative results under this processing is calculated to obtain the target pixel value of this processing, and the target pixel value of this processing is used as the starting pixel value of the next processing, and the step of obtaining the starting pixel value under this processing is performed until the number of iterations corresponding to the multiple iterative results under the current processing is not greater than the threshold, and the starting pixel value under the current processing is used as the initial pixel value. Based on the method provided by the present application, the number of iterations of the light field decomposition can be reduced by calculating a suitable initial pixel value, and the amount of calculation can be reduced, thereby improving the real-time performance of displaying objects on the display screen. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0019] Figure 1 This is a schematic diagram of an application scenario for this application example;
[0020] Figure 2 A schematic diagram of a flow chart of a method for generating an initial pixel value provided in Embodiment 1 of the present application;
[0021] Figure 3 A schematic diagram of a flow chart of another method for generating initial pixel values provided in the first embodiment of the present application;
[0022] Figure 4 A schematic diagram of a flow chart of another method for generating an initial pixel value provided in the first embodiment of the present application;
[0023] Figure 5 A schematic diagram of a flow chart of another method for generating an initial pixel value provided in the first embodiment of the present application;
[0024] Figure 6 A schematic diagram of a flow chart of another method for generating an initial pixel value provided in the first embodiment of the present application;
[0025] Figure 7 A schematic diagram of a flow chart of another method for generating an initial pixel value provided in the first embodiment of the present application;
[0026] Figure 8 A schematic diagram of a flow chart of another method for generating an initial pixel value provided in the first embodiment of the present application;
[0027] Fig. 9 A schematic diagram of the structure of an initial pixel value generating device provided in Embodiment 2 of the present application;
[0028] Fig.10 A schematic diagram of the structure of another device for generating initial pixel values provided in Embodiment 2 of the present application;
[0029] Fig.11 A schematic diagram of the working process of an initial pixel value generation system provided in Embodiment 3 of the present application;
[0030] Fig.12 A schematic diagram of a process for calculating an initial pixel value provided in Embodiment 3 of the present application;
[0031] Fig.13 This is a schematic diagram of the structure of an electronic device provided in Example 4 of the present application.
[0032] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0033] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0034] Figure 1 This is a schematic diagram of the application scenario of the present application example. There is an initial pixel value at each feature point that constitutes the object. The initial pixel value corresponding to each feature point can be iteratively decomposed through light field decomposition to obtain the pixel value displayed on each layer of the multi-layer liquid crystal display. In the current light field decomposition algorithm, since the initial pixel value is a random value, it is necessary to go through multiple iterative calculations to achieve a better pixel value that should be displayed on each layer of the liquid crystal display. Due to the huge amount of calculation, the real-time performance of the display screen in displaying objects is poor. The present application calculates a suitable initial pixel value, reduces the number of iterations of light field decomposition, and reduces the amount of calculation, thereby improving the real-time performance of the display screen in displaying objects.
[0035] It should be noted that the brief description of terms in this application is only for the convenience of understanding the embodiments described below, and is not intended to limit the embodiments of this application. Unless otherwise specified, these terms should be understood according to their common and usual meanings.
[0036] The technical solutions of the present application and the technical solutions of the present application are described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. In the description of the present application, unless otherwise clearly specified and limited, each term should be understood in a broad sense in the art. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0037] Embodiment 1
[0038] Figure 2 A schematic diagram of a flow chart of a method for generating an initial pixel value provided in the first embodiment of the present application is shown in FIG. Figure 2 As shown, the method includes:
[0039] Step 201, obtaining a starting pixel value for this processing, wherein the starting pixel value includes a display pixel value corresponding to each feature point on the first object on each layer of the liquid crystal display screen;
[0040] Step 202: according to the pixel value rendered at each feature point on the first object and the starting pixel value in this process, the light field decomposition algorithm is used to perform iterative calculations at multiple set display positions to obtain multiple iterative results in this process, and the number of iterations corresponding to each iterative result in this process is recorded;
[0041] Step 203: If, among the multiple iterative results of this processing, the number of iterations corresponding to any iterative result is greater than a preset threshold, the average value of the multiple iterative results of this processing is calculated to obtain the target pixel value of this processing, and the target pixel value of this processing is used as the starting pixel value of the next processing, and the step of obtaining the starting pixel value of this processing is executed until the number of iterations corresponding to the multiple iterative results of the current processing is not greater than the threshold, and the starting pixel value of the current processing is used as the initial pixel value.
[0042] The executor of this embodiment is an initial pixel value generating device, which can be implemented by a computer program, such as application software, etc.; or, it can also be implemented as a medium storing relevant computer programs, such as a USB flash drive, a cloud disk, etc.; or, it can also be implemented by a physical device integrated or installed with relevant computer programs, such as a chip, etc.
[0043] In combination with the scene example, taking the first object as an example, each feature point constituting the first object has a corresponding starting pixel value, and the starting pixel value corresponding to each feature point is used to calculate the initial pixel value corresponding to the feature point. The initial pixel value corresponding to each feature point on the first object is an array composed of multiple numbers, and the number of numbers in the array is 3 times the number of liquid crystal screens. For example, if the display screen is a 3-layer liquid crystal screen, the starting pixel value is an array composed of 9 numbers, and the 9 numbers in the array are arranged according to the first rule. Specifically, since the pixel value displays color information, and the color information is composed of the three primary colors of red, green, and blue, the array of the starting pixel value includes the channel values corresponding to the red, green, and blue primary colors constituting the pixel values corresponding to each layer of the liquid crystal screen. The first rule may be that in the array of the starting pixel value, the first three numbers are the channel values corresponding to the red, green, and blue primary colors constituting the pixel values corresponding to the first layer of the liquid crystal screen; the middle three numbers are the channel values corresponding to the red, green, and blue primary colors corresponding to the pixel values corresponding to the second layer of the liquid crystal screen; and the last three numbers are the channel values corresponding to the red, green, and blue primary colors corresponding to the pixel values corresponding to the third layer of the liquid crystal screen. For example, if the starting pixel value of a feature point A on the first object is (a1, a2, a3, a4, a5, a6, a7, a8, a9), then a1 is the value corresponding to the red channel on the first layer of the liquid crystal display screen, a2 is the value corresponding to the green channel on the first layer of the liquid crystal display screen, and a3 is the value corresponding to the blue channel on the first layer of the liquid crystal display screen; a4 is the value corresponding to the red channel on the second layer of the liquid crystal display screen, a5 is the value corresponding to the green channel on the second layer of the liquid crystal display screen, and a6 is the value corresponding to the blue channel on the second layer of the liquid crystal display screen; a7 is the value corresponding to the red channel on the third layer of the liquid crystal display screen, a8 is the value corresponding to the green channel on the third layer of the liquid crystal display screen, and a9 is the value corresponding to the blue channel on the third layer of the liquid crystal display screen.
[0044] When the display screen is located at different positions, light field decomposition is performed on the starting pixel values corresponding to the feature points on the first object, and the iterative results obtained by the light field decomposition will be different due to different positions. The iterative results include the pixel values displayed by each feature point on the first object on each liquid crystal display screen. Before light field decomposition performs light field decomposition on the starting pixel values, pixel rendering is first performed on each feature point on the first object to obtain the standard pixel value corresponding to each feature point. The purpose of light field decomposition is to iteratively calculate the starting pixel value with reference to the rendered pixel value of the feature point, so that the pixel value of the iterative result is close to the rendered pixel value. Therefore, when the display screen is located at different positions, the number of iterations obtained by light field decomposition is inconsistent, and it is necessary to record the number of iterations corresponding to the display screen at different positions. A maximum iteration threshold of light field decomposition is set, and a representative display screen position is determined in space. If the number of iterations corresponding to each display screen position is not greater than the maximum iteration threshold, a starting pixel value corresponding to each feature point of the first object is determined as an initial pixel value corresponding to each feature point. If the number of iterations corresponding to any display screen position exceeds the maximum iteration threshold, an average value of iteration results corresponding to the display screen at all display screen positions is calculated, and the average value is used as a new starting pixel value. The starting pixel value is obtained again and the light field decomposition operation is performed at different display screen positions until the number of iterations corresponding to all display screen positions of the display screen is less than the iteration threshold. Then the starting pixel value of the light field decomposition is used as the initial pixel value corresponding to the feature point on the first object.
[0045] In this example, the starting pixel value of this process is first obtained, and the starting pixel value includes the display pixel value corresponding to each feature point on the first object on each layer of the liquid crystal display screen; then, according to the pixel value rendered by each feature point on the first object and the starting pixel value of this process, the light field decomposition algorithm is used to perform iterative calculations at multiple set display positions to obtain multiple iterative results of this process, and the number of iterations corresponding to each iterative result of this process is recorded; if the number of iterations corresponding to any of the multiple iterative results of this process is greater than a preset threshold, the average value of the multiple iterative results of this process is calculated to obtain the target pixel value of this process, and the target pixel value of this process is used as the starting pixel value of the next process, and the step of obtaining the starting pixel value of this process is performed until the number of iterations corresponding to the multiple iterative results of the current process is not greater than the threshold, and the starting pixel value of the current process is used as the initial pixel value. Based on the method provided in this example, the number of iterations of light field decomposition can be reduced by calculating a suitable initial pixel value, and the amount of calculation can be reduced, thereby improving the real-time performance of displaying objects on the display screen.
[0046] Optional, Figure 3 A schematic diagram of a flow chart of another method for generating an initial pixel value provided in the first embodiment of the present application is shown in FIG. Figure 3 As shown, in step 201, obtaining the starting pixel value of this processing includes:
[0047] Step 301: If this is the first processing, then set the starting pixel value of this processing to a random value;
[0048] Step 302: If the current processing is not the first processing, the target pixel value of the last processing is used as the starting pixel value of the current processing.
[0049] Combined with the scene example, based on the above, in the process of calculating the initial pixel value corresponding to each feature point on the first object, it is necessary to repeat the light field decomposition based on the current starting pixel value at each display screen position to obtain the iterative result of each display screen position, until the number of iterations corresponding to each display screen position is less than the iteration threshold position, otherwise the average value corresponding to the iterative result of each display screen position is calculated to obtain the target pixel value of this processing, and the target pixel value of this processing is used as the starting pixel value of the next processing. Therefore, the starting pixel value of the current processing can be the target pixel value corresponding to the last processing. Therefore, if the current processing is the first processing, that is, there is no target pixel value corresponding to the last processing, the starting pixel value of the current processing can be set to a random value. In addition, if the current processing is not the first processing, the starting pixel value of the current processing is the target pixel value of the last processing. This example reasonably determines the starting pixel value of the current processing based on whether the current processing is the first processing.
[0050] Optional, Figure 4 A flowchart of another method for generating an initial pixel value provided in the first embodiment of the present application is shown as follows: Figure 4 As shown, the step 202 includes:
[0051] Step 401: for each display position, based on a light constraint method, calculate the pixel points corresponding to each feature point on the first object on each layer of the liquid crystal display screen when the display is located at the display position;
[0052] Step 402: determining the spatial coordinates of the pixel points corresponding to each feature point on each layer of the liquid crystal display screen when the display is located at the display position based on the position of the display screen, the screen size, the resolution of each layer of the liquid crystal display screen and the relative distance between each layer of the liquid crystal display screen;
[0053] Step 403, based on the rendered pixel value of each feature point on the first object and the starting pixel value of this processing, as well as the spatial coordinates of the pixel points corresponding to each feature point on the first object on each layer of the liquid crystal display screen when the display is at the display position, an iterative calculation is performed using a light field decomposition algorithm to obtain the iterative result when the display is at the display position.
[0054] In combination with the scene example, when calculating the corresponding iterative results at each display position through the light field decomposition algorithm, the pixel points corresponding to each feature point on the first object on each layer of the liquid crystal display screen at the current display position are determined according to the light constraint method at each display position, and each feature point on the first object and the corresponding pixel point on each layer of the liquid crystal display screen are located on a straight line. Then, the spatial coordinates of the pixel points corresponding to each feature point on the first object on each layer of the liquid crystal display screen are determined according to the current display screen position, the size and resolution of each layer of the liquid crystal display screen and the relative distance between each layer of the liquid crystal display screen. Figure 5 As shown, Figure 5 A schematic diagram for determining the pixel points corresponding to the feature points of the first object, taking a feature point A on the first object as an example, the corresponding pixels of the feature point A on each layer of the liquid crystal display are A1, A2 and A3 respectively, and then the spatial coordinates of A1, A2 and A3 are determined according to the current display screen position, the size and resolution of each layer of the liquid crystal display and the relative distance between each layer of the liquid crystal display. There is a rendered pixel value on each feature point on the first object. According to the rendered pixel value on the feature point and the starting pixel value corresponding to this processing, and then according to the spatial coordinates of the pixel points corresponding to the feature point on each layer of the liquid crystal display, the iterative result can be obtained by using light field decomposition, that is, the display pixel value of each feature point on the first object on each layer of the liquid crystal display. For example, Figure 5 As shown, taking feature point A as an example, based on the rendered pixel value of feature point A and the starting pixel value corresponding to feature point A, as well as the spatial coordinates of A1, A2 and A3, the display pixel values corresponding to feature point A at points A1, A2 and A3 are obtained respectively.
[0055] Optional, Figure 6 A flowchart of another method for generating an initial pixel value provided in the first embodiment of the present application is shown as follows: Figure 6 As shown, the method also includes:
[0056] Step 601, setting an iteration error value;
[0057] The step 403 includes:
[0058] Step 602: according to the rendered pixel value of each feature point on the first object and the starting pixel value of this processing, and the spatial coordinates of the pixel points corresponding to each feature point on each layer of the liquid crystal display screen when the display is located at the display position, an iterative calculation is performed using a light field decomposition algorithm until the difference between the displayed pixel value of each feature point on each layer of the liquid crystal display screen obtained by the current iteration and the rendered pixel value of the feature point is not greater than a preset error value;
[0059] Step 603: Use the display pixel value of each feature point currently iterated on each layer of the liquid crystal display screen as the iteration result at the display position.
[0060] In combination with the scene example, according to the pixel value rendered on the feature point and the starting pixel value corresponding to this processing, and then according to the spatial coordinates of the pixel point corresponding to the feature point on each layer of the liquid crystal display screen, before obtaining the iteration result by using light field decomposition, the error value between the iteration result and the rendered pixel value can be set first. The purpose of the light field decomposition is to make the iteration result close to the rendered pixel value, but based on the display of the current technology, the iteration result obtained cannot be completely consistent with the rendered pixel value. After the error value is set, according to the pixel value rendered on each feature point of the first object, the starting pixel value corresponding to each feature point in this processing, and the spatial coordinates of the pixel point corresponding to each feature point on each layer of the liquid crystal display screen at each display position, the light field decomposition is used for calculation. When the difference between the calculated iteration result and the pixel value rendered on each feature point is not greater than the error value, the iteration will be stopped, and the display pixel value of each feature point on each layer of the liquid crystal display screen obtained at this time at each display screen position will be used as the iteration result at each display screen position. This example determines the condition for stopping the iterative calculation of light field decomposition by setting the error value between the iterative result and the pixel value rendered on the feature point, so that the obtained iterative result is close to the pixel value rendered on the feature point, which can ensure the display effect of the display screen.
[0061] Optionally, the iteration result includes display pixel values corresponding to each layer of liquid crystal display screen; Figure 7 A flowchart of another method for generating an initial pixel value provided in the first embodiment of the present application is shown as follows: Figure 7 As shown, in step 203, the calculation of the average value of multiple iteration results in this process to obtain the target pixel value of this process includes:
[0062] Step 701: for each layer of liquid crystal display screen, average the display pixel values corresponding to the liquid crystal display screen in the multiple iteration results to obtain the average calculation result corresponding to each layer of liquid crystal display screen;
[0063] Step 702: sort and combine the average calculation results corresponding to each layer of the liquid crystal display screen according to the arrangement order of the display pixel values corresponding to each layer of the liquid crystal display screen in the iteration result to obtain the target pixel value of this processing, wherein the target pixel value includes the average calculation result corresponding to each layer of the liquid crystal display screen.
[0064] In combination with the scene example, if the number of iterations corresponding to any display screen position exceeds the iteration threshold, the average value of the iteration results obtained at each display screen position is calculated. When calculating the average value of the iteration results obtained at each display screen position, the average value of the iteration results of each layer of display screens can be calculated for the iteration results corresponding to each layer of display screens, and then the average value of the iteration results of each layer of display screens calculated is combined into the average value of the iteration results obtained by the feature point on the first object at each display screen position, that is, the target pixel value of this processing. Figure 5 As shown, for a feature point A on a first object, when calculating the average value of the iteration results corresponding to each layer of display screen at each display screen position of the feature point A, for the first layer of liquid crystal display screen, at each position, the display pixel value corresponding to the feature point A on the first layer of liquid crystal display screen includes: a red channel value, a green channel value, and a blue channel value. At each position, the red channel value in the pixel value displayed on the first layer of liquid crystal display screen of the feature point A is averaged to obtain the red channel average value in the pixel value displayed on the first layer of liquid crystal display screen. Similarly, this method can be used to obtain the green channel average value and the blue channel average value in the pixel value displayed on the first layer of liquid crystal display screen of the feature point A, so as to obtain the iteration result of the feature point A on the first layer of liquid crystal display screen. This method can be used to obtain the iteration results of the feature point A on the second layer of liquid crystal display screen and the iteration results of the third layer of liquid crystal display screen, and the iteration results of the feature point A on the first layer of liquid crystal display screen, the iteration results of the second layer of liquid crystal display screen and the iteration results of the third layer of liquid crystal display screen are arranged to obtain the target pixel value of the feature point A in this time, and this method is used to obtain the target pixel values of other feature points on the first object in this time, and together with the target pixel value of the feature point A in this time, the target pixel value of each feature point on the first object in this time is formed, and it is used as the starting pixel value for the next processing. This example calculates the iteration results of each feature point on the first object in each layer of liquid crystal display screen, thereby obtaining the target pixel value of each feature point on the first object in this time.
[0065] Optional, Figure 8 A flowchart of another method for generating an initial pixel value provided in the first embodiment of the present application is shown as follows: Figure 8 As shown, the method also includes:
[0066] Step 801, obtaining the rendered pixel value corresponding to each feature point on the object to be displayed, and obtaining the spatial coordinates of the pixel points corresponding to each feature point on the object to be displayed on each layer of the liquid crystal display screen at the current display position;
[0067] Step 802: Based on the rendered pixel value corresponding to each feature point on the object to be displayed and the spatial coordinates of the corresponding pixel point on each layer of the liquid crystal display screen, the initial pixel value is iteratively calculated by light field decomposition to obtain the display pixel value of each feature point on the object to be displayed on each layer of the liquid crystal display screen at the current display position;
[0068] Step 803: Display corresponding display pixel values at corresponding pixel points on each layer of the liquid crystal display screen.
[0069] Combined with the scene example, after the initial pixel value is obtained, and the first object will be displayed on a multi-layer liquid crystal display at this time, the first object is used as the object to be displayed. At this time, the pixel value of each feature point rendered on the object to be displayed is obtained, and the display position of the multi-layer display at this time is determined. Based on the display position at this time, the pixel point corresponding to the object to be displayed on each layer of the liquid crystal display screen and the spatial coordinates corresponding to the pixel point are determined. Based on the rendered pixel value corresponding to each feature point on the object to be displayed and the spatial coordinates of the pixel point corresponding to each layer of the liquid crystal display screen, the initial pixel value is subjected to light field decomposition to obtain an iterative result, and the iterative result is the display pixel value corresponding to the pixel point corresponding to each feature point on the object to be displayed on each layer of the liquid crystal display screen. Finally, for each feature point on the object to be displayed, the corresponding display pixel value is displayed at the corresponding pixel point on each layer of the liquid crystal display screen, thereby completing the display of the entire object to be displayed.
[0070] In this embodiment, the starting pixel value of this process is first obtained, and the starting pixel value includes the display pixel value corresponding to each feature point on the first object on each layer of the liquid crystal display screen; then, according to the pixel value rendered by each feature point on the first object and the starting pixel value of this process, the light field decomposition algorithm is used to perform iterative calculations at multiple set display positions to obtain multiple iterative results of this process, and the number of iterations corresponding to each iterative result of this process is recorded; if the number of iterations corresponding to any of the multiple iterative results of this process is greater than a preset threshold, the average value of the multiple iterative results of this process is calculated to obtain the target pixel value of this process, and the target pixel value of this process is used as the starting pixel value of the next process, and the step of obtaining the starting pixel value of this process is performed until the number of iterations corresponding to the multiple iterative results of the current process is not greater than the threshold, and the starting pixel value of the current process is used as the initial pixel value. Based on the method provided in this embodiment, the number of iterations of the light field decomposition can be reduced by calculating a suitable initial pixel value, and the amount of calculation can be reduced, thereby improving the real-time performance of displaying objects on the display screen.
[0071] Embodiment 2
[0072] Fig. 9 A schematic diagram of the structure of an initial pixel value generating device provided in the second embodiment of the present application is shown in FIG. Fig. 9 As shown, the device comprises:
[0073] An acquisition module 91 is used to acquire a starting pixel value for this processing, wherein the starting pixel value includes a display pixel value corresponding to each feature point on the first object on each layer of the liquid crystal display screen;
[0074] The calculation module 92 is used to perform iterative calculations using a light field decomposition algorithm at multiple set display positions according to the pixel value rendered at each feature point on the first object and the starting pixel value of the current processing, obtain multiple iterative results of the current processing, and record the number of iterations corresponding to each iterative result of the current processing;
[0075] The processing module 93 is used to calculate the average value of the multiple iterative results under this processing if the number of iterations corresponding to any iterative result under this processing is greater than a preset threshold value, obtain the target pixel value of this processing, and use the target pixel value of this processing as the starting pixel value of the next processing, and execute the step of obtaining the starting pixel value under this processing, until the number of iterations corresponding to the multiple iterative results under the current processing is not greater than the threshold value, then use the starting pixel value of the current processing as the initial pixel value.
[0076] In combination with the scenario example, the executor of this embodiment is an initial pixel value generating device, which can be implemented by a computer program, such as application software, etc.; or, it can also be implemented as a medium storing relevant computer programs, such as a USB flash drive, a cloud disk, etc.; or, it can also be implemented by a physical device integrated or installed with relevant computer programs, such as a chip, etc.
[0077] In combination with the scene example, taking the first object as an example, the acquisition module 91 acquires that each feature point constituting the first object has a corresponding starting pixel value, and the starting pixel value corresponding to each feature point is used to calculate the initial pixel value corresponding to the feature point. The initial pixel value corresponding to each feature point on the first object is an array composed of multiple numbers, and the number of numbers in the array is 3 times the number of LCD screens. For example, if the display screen is a 3-layer LCD screen, the starting pixel value is an array composed of 9 numbers, and the 9 numbers in the array are arranged according to the first rule. Specifically, since the pixel value displays color information, and the color information is composed of the three primary colors of red, green, and blue, the array of the starting pixel value includes the channel values corresponding to the three primary colors of red, green, and blue that constitute the pixel values corresponding to each layer of the LCD screen. The first rule may be that, in the array of the starting pixel values, the first three digits are the channel values corresponding to the red, green and blue primary colors that constitute the pixel values corresponding to the first layer of the liquid crystal display screen; the middle three digits are the channel values corresponding to the red, green and blue primary colors that constitute the pixel values corresponding to the second layer of the liquid crystal display screen; and the last three digits are the channel values corresponding to the red, green and blue primary colors that constitute the pixel values corresponding to the third layer of the liquid crystal display screen. For example, if the starting pixel value of a feature point A on the first object is (a1, a2, a3, a4, a5, a6, a7, a8, a9), then a1 is the value corresponding to the red channel on the first layer of the liquid crystal display screen, a2 is the value corresponding to the green channel on the first layer of the liquid crystal display screen, and a3 is the value corresponding to the blue channel on the first layer of the liquid crystal display screen; a4 is the value corresponding to the red channel on the second layer of the liquid crystal display screen, a5 is the value corresponding to the green channel on the second layer of the liquid crystal display screen, and a6 is the value corresponding to the blue channel on the second layer of the liquid crystal display screen; a7 is the value corresponding to the red channel on the third layer of the liquid crystal display screen, a8 is the value corresponding to the green channel on the third layer of the liquid crystal display screen, and a9 is the value corresponding to the blue channel on the third layer of the liquid crystal display screen.
[0078] When the display screen is located at different positions, the calculation module 92 performs light field decomposition on the starting pixel values corresponding to the feature points on the first object, and the iterative results obtained by the light field decomposition will be different due to different positions. The iterative results include the pixel values displayed by each feature point on the first object on each liquid crystal display screen. Before the light field decomposition performs light field decomposition on the starting pixel values, the calculation module 92 first performs pixel rendering on each feature point on the first object to obtain the standard pixel value corresponding to each feature point. The purpose of light field decomposition is to iteratively calculate the starting pixel value with reference to the rendered pixel value of the feature point, so that the pixel value of the iterative result is close to the rendered pixel value. Therefore, when the display screen is located at different positions, the number of iterations obtained by light field decomposition is inconsistent, and it is necessary to record the number of iterations corresponding to the display screen at different positions. A maximum iteration threshold of light field decomposition is set, and a representative display screen position is determined in space. If the number of iterations corresponding to each display screen position is not greater than the maximum iteration threshold, the processing module 93 determines the starting pixel value corresponding to each feature point of the first object as the initial pixel value corresponding to each feature point. If the number of iterations corresponding to any display screen position exceeds the maximum iteration threshold, the processing module 93 calculates the average value of the iteration results corresponding to the display screen at all display screen positions, and uses the average value as a new starting pixel value, and re-acquires the starting pixel value and performs light field decomposition operations at different display screen positions, until the number of iterations corresponding to all display screen positions of the display screen is less than the iteration threshold, and the starting pixel value of the light field decomposition is used as the initial pixel value corresponding to the feature point on the first object.
[0079] In this example, the acquisition module 91 first acquires the starting pixel value of this processing, and the starting pixel value includes the display pixel value corresponding to each feature point on the first object on each layer of the liquid crystal display screen; then the calculation module 92 uses the light field decomposition algorithm to perform iterative calculations at multiple set display positions according to the pixel value rendered by each feature point on the first object and the starting pixel value of this processing, and obtains multiple iterative results of this processing, and records the number of iterations corresponding to each iterative result of this processing; if the number of iterations corresponding to any of the multiple iterative results of this processing is greater than the preset threshold, the processing module 93 calculates the average value of the multiple iterative results of this processing, obtains the target pixel value of this processing, and uses the target pixel value of this processing as the starting pixel value of the next processing, and executes the step of obtaining the starting pixel value of this processing, until the number of iterations corresponding to the multiple iterative results of the current processing is not greater than the threshold, and the processing module 93 uses the starting pixel value of the current processing as the initial pixel value. Based on the method provided in this example, the number of iterations of light field decomposition can be reduced by calculating a suitable initial pixel value, and the amount of calculation can be reduced, thereby improving the real-time performance of displaying objects on the display screen.
[0080] Optionally, the acquisition module 91 is specifically configured to set the starting pixel value of the current processing to a random value if the current processing is the first processing;
[0081] The acquisition module 91 is further configured to use the target pixel value of the last processing as the starting pixel value of the current processing if the current processing is not the first processing.
[0082] Combined with the scene example, based on the above, in the process of calculating the initial pixel value corresponding to each feature point on the first object, it is necessary to repeat the light field decomposition based on the current starting pixel value at each display screen position to obtain the iterative result of each display screen position, until the number of iterations corresponding to each display screen position is less than the iteration threshold position, otherwise the average value corresponding to the iterative result of each display screen position is calculated to obtain the target pixel value of this processing, and the target pixel value of this processing is used as the starting pixel value of the next processing. Therefore, the starting pixel value of the current processing can be the target pixel value corresponding to the last processing. Therefore, if the current processing is the first processing, that is, there is no target pixel value corresponding to the last processing, the acquisition module 91 can set the starting pixel value of the current processing as a random value. In addition, if the current processing is not the first processing, the acquisition module 91 sets the starting pixel value of the current processing to the target pixel value of the last processing. This example reasonably determines the starting pixel value of the current processing based on whether the current processing is the first processing.
[0083] Optionally, a calculation module 92 is specifically configured to calculate, for each display position, based on a light constraint method, the pixel points corresponding to each feature point on the first object on each layer of the liquid crystal display screen when the display is located at the display position;
[0084] The calculation module 92 is further configured to determine the spatial coordinates of the pixel points corresponding to each feature point on each layer of the liquid crystal display screen when the display is located at the display position based on the position of the display screen, the screen size, the resolution of each layer of the liquid crystal display screen and the relative distance between each layer of the liquid crystal display screen;
[0085] The calculation module 92 is further specifically used to perform iterative calculations using a light field decomposition algorithm based on the rendered pixel value of each feature point on the first object and the starting pixel value of this processing, as well as the spatial coordinates of the pixel points corresponding to each feature point on each layer of the liquid crystal display screen when the display is at the display position, so as to obtain the iterative result when the display is at the display position.
[0086] In combination with the scene example, when the calculation module 92 calculates the corresponding iteration result at each display position through the light field decomposition algorithm, it determines the pixel point corresponding to each feature point on the first object on each layer of the liquid crystal display screen at the current display position according to the light constraint method at each display position, and each feature point on the first object and the corresponding pixel point on each layer of the liquid crystal display screen are located on a straight line. Then the calculation module 92 determines the spatial coordinates of the pixel point corresponding to each feature point on the first object on each layer of the liquid crystal display screen according to the current display screen position, the size and resolution of each layer of the liquid crystal display screen and the relative distance between each layer of the liquid crystal display screen. Figure 5 As shown, taking a feature point A on the first object as an example, the corresponding pixels of the feature point A on each layer of the liquid crystal display are A1, A2 and A3 respectively, and then the spatial coordinates of A1, A2 and A3 are determined according to the current display screen position, the size and resolution of each layer of the liquid crystal display and the relative distance between each layer of the liquid crystal display. There are rendered pixel values on each feature point on the first object, and the calculation module 92 can obtain the iterative result by using light field decomposition based on the rendered pixel value on the feature point and the starting pixel value corresponding to this processing, and then based on the spatial coordinates of the pixel points corresponding to the feature point on each layer of the liquid crystal display, that is, the display pixel value of each feature point on the first object on each layer of the liquid crystal display. For example, Figure 5 As shown, taking feature point A as an example, based on the rendered pixel value of feature point A and the starting pixel value corresponding to feature point A, as well as the spatial coordinates of A1, A2 and A3, the display pixel values corresponding to feature point A at points A1, A2 and A3 are obtained respectively.
[0087] Optional, Fig.10 A schematic diagram of the structure of another initial pixel value generating device provided in the second embodiment of the present application is shown in FIG. Fig.10 As shown, the device also includes:
[0088] A setting module 101 is used to set an iteration error value;
[0089] The calculation module 92 is further configured to perform iterative calculations using a light field decomposition algorithm according to the rendered pixel value of each feature point on the first object and the starting pixel value of this processing, as well as the spatial coordinates of the pixel points corresponding to each feature point on each layer of the liquid crystal display screen when the display is located at the display position, until the difference between the displayed pixel value of each feature point on each layer of the liquid crystal display screen obtained by the current iteration and the rendered pixel value of the feature point is not greater than a preset error value;
[0090] The processing module 93 is further used to use the display pixel value of each feature point currently iterated on each layer of the liquid crystal display screen as the iteration result at the display position.
[0091] In combination with the scene example, according to the pixel value rendered on the feature point and the starting pixel value corresponding to this processing, and then according to the spatial coordinates of the pixel points corresponding to the feature point on each layer of the liquid crystal display screen, before obtaining the iteration result by using light field decomposition, the setting module 101 can first set the error value between the iteration result and the rendered pixel value. The purpose of the light field decomposition is to make the iteration result close to the rendered pixel value, but based on the display of the current technology, the iteration result obtained cannot be completely consistent with the rendered pixel value. After setting the error value, the calculation module 92 uses light field decomposition to calculate according to the pixel value rendered on each feature point on the first object, the starting pixel value corresponding to each feature point in this processing, and the spatial coordinates of the pixel points corresponding to each feature point on each layer of the liquid crystal display screen at each display position. When the difference between the calculated iteration result and the pixel value rendered on each feature point is not greater than the error value, the processing module 93 will stop the iteration and use the display pixel value of each feature point on each layer of the liquid crystal display screen obtained at this time at each display screen position as the iteration result at each display screen position. This example determines the condition for stopping the iterative calculation of light field decomposition by setting the error value between the iterative result and the pixel value rendered on the feature point, so that the obtained iterative result is close to the pixel value rendered on the feature point, which can ensure the display effect of the display screen.
[0092] Optionally, the iteration result includes display pixel values corresponding to each layer of liquid crystal display screen;
[0093] The calculation module 92 is further configured to calculate the average value of the display pixel values corresponding to each layer of the liquid crystal display screen in the multiple iteration results, so as to obtain the average calculation result corresponding to each layer of the liquid crystal display screen;
[0094] The calculation module 92 is further specifically used to sort and combine the average calculation results corresponding to each layer of the liquid crystal display screen according to the arrangement order of the display pixel values corresponding to each layer of the liquid crystal display screen in the iteration results, so as to obtain the target pixel value of this processing, and the target pixel value includes the average calculation result corresponding to each layer of the liquid crystal display screen.
[0095] In combination with the scene example, if the number of iterations corresponding to any display screen position exceeds the iteration threshold, the calculation module 92 calculates the average value of the iteration results obtained at each display screen position. When calculating the average value of the iteration results obtained at each display screen position, the average value of the iteration results of each layer of display screens can be calculated for the iteration results corresponding to each layer of display screens, and then the average value of the iteration results of each layer of display screens calculated is combined into the average value of the iteration results obtained by the feature point on the first object at each display screen position, that is, the target pixel value of this processing. Figure 5As shown, for the feature point A on the first object, when the calculation module 92 calculates the average value of the iteration results corresponding to each layer of the display screen at each display screen position of the feature point A, for the first layer of the liquid crystal display screen, at each position, the display pixel value corresponding to the feature point A on the first layer of the liquid crystal display screen includes: a red channel value, a green channel value, and a blue channel value. At each position, the red channel value in the pixel value displayed on the first layer of the liquid crystal display screen of the feature point A is averaged to obtain the red channel average value in the pixel value displayed on the first layer of the liquid crystal display screen. Similarly, this method can be used to obtain the green channel average value and the blue channel average value in the pixel value displayed on the first layer of the liquid crystal display screen of the feature point A, so as to obtain the iteration result of the feature point A on the first layer of the liquid crystal display screen. This method can be used to obtain the iteration results of the feature point A on the second layer of liquid crystal display screen and the iteration results of the third layer of liquid crystal display screen, and the iteration results of the feature point A on the first layer of liquid crystal display screen, the iteration results of the second layer of liquid crystal display screen and the iteration results of the third layer of liquid crystal display screen are arranged to obtain the target pixel value of the feature point A at this time, and this method is used to obtain the target pixel values of other feature points on the first object at this time, and together with the target pixel value of the feature point A at this time, the target pixel value of each feature point on the first object at this time is formed, and used as the starting pixel value for the next processing. The calculation module 92 of this example obtains the target pixel value of each feature point on the first object at this time by calculating the iteration results of each feature point on the first object at each layer of liquid crystal display screen.
[0096] Optionally, the acquisition module 91 is further used to acquire the rendered pixel value corresponding to each feature point on the object to be displayed, and acquire the spatial coordinates of the pixel points corresponding to each feature point on the object to be displayed on each layer of the liquid crystal display screen at the current display position;
[0097] The processing module 93 is further configured to perform iterative calculation of light field decomposition on the initial pixel value based on the rendered pixel value corresponding to each feature point on the object to be displayed and the spatial coordinates of the corresponding pixel point on each layer of the liquid crystal display screen, so as to obtain the display pixel value of each feature point on the object to be displayed on each layer of the liquid crystal display screen at the current display position;
[0098] The processing module 93 is also used to display corresponding display pixel values at corresponding pixel points on each layer of the liquid crystal display screen.
[0099] Combined with the scene example, after the initial pixel value is obtained, and the first object will be displayed on a multi-layer liquid crystal display at this time, the first object is used as the object to be displayed. At this time, the acquisition module 91 obtains the rendered pixel value of each feature point on the object to be displayed, and determines the display position of the multi-layer display at this time, and determines the pixel points corresponding to the object to be displayed on each layer of the liquid crystal display screen and the spatial coordinates corresponding to the pixel points based on the display position at this time. The processing module 93 performs light field decomposition on the initial pixel value based on the rendered pixel value corresponding to each feature point on the object to be displayed and the spatial coordinates of the pixel points corresponding to each layer of the liquid crystal display screen, and obtains an iterative result, which is the display pixel value corresponding to the pixel point corresponding to each feature point on the object to be displayed on each layer of the liquid crystal display screen. Finally, the processing module 93 displays the corresponding display pixel value at the corresponding pixel point on each layer of the liquid crystal display screen for each feature point on the object to be displayed, thereby completing the display of the entire object to be displayed.
[0100] In this embodiment, the acquisition module first acquires the starting pixel value under this processing, and the starting pixel value includes the display pixel value corresponding to each feature point on the first object on each layer of the liquid crystal display screen; then the calculation module uses the light field decomposition algorithm to perform iterative calculations at multiple set display positions according to the pixel value rendered by each feature point on the first object and the starting pixel value under this processing, obtains multiple iterative results under this processing, and records the number of iterations corresponding to each iterative result under this processing; if the number of iterations corresponding to any iterative result in the multiple iterative results under this processing is greater than the preset threshold, the processing module calculates the average value of the multiple iterative results under this processing, obtains the target pixel value of this processing, and uses the target pixel value of this processing as the starting pixel value of the next processing, and executes the step of obtaining the starting pixel value under this processing, until the number of iterations corresponding to the multiple iterative results under the current processing is not greater than the threshold, and the processing module uses the starting pixel value under the current processing as the initial pixel value. Based on the method provided by this embodiment, the number of iterations of light field decomposition can be reduced by calculating a suitable initial pixel value, and the amount of calculation can be reduced, thereby improving the real-time performance of displaying objects on the display screen.
[0101] Embodiment 3
[0102] Fig.11 A schematic diagram of the operation flow of an initial pixel value generation system provided in Embodiment 3 of the present application is shown in FIG. Fig.11As shown, firstly, the initial pixel value corresponding to each feature point on the first object is calculated, and the calculated initial pixel value is compressed and stored, and the position of the current multi-layer liquid crystal display is obtained, and the pixel point and its spatial coordinate corresponding to each feature point on the first object on each layer of the liquid crystal display are obtained based on the light constraint method, and the light field decomposition is performed based on the initial pixel value corresponding to each feature point on the first object to obtain the display pixel value of each feature point on each layer of the liquid crystal display, so as to display the first object on the multi-layer liquid crystal display.
[0103] Fig.12 A schematic diagram of a process for calculating an initial pixel value provided in Embodiment 3 of the present application is shown in FIG. Fig.12 As shown, firstly, pixel rendering is performed on each feature point on the first object to obtain the rendering pixel value of each feature point, then the position sampling is performed on the multi-layer liquid crystal display to obtain the display screen position of the multi-layer liquid crystal display at this time, and the starting value corresponding to each feature point at this time is obtained, and the spatial coordinates of the pixel points corresponding to each feature point on each layer of the liquid crystal display screen are obtained through light constraints, and the corresponding iteration results at the display screen position at this time are obtained through light field decomposition and the corresponding number of iterations at the display screen position at this time are recorded. Then, the multi-layer liquid crystal display is adjusted M times, and the iteration results and iteration numbers corresponding to each feature point at different display positions are obtained respectively through the above method, and the average value of the iteration results corresponding to different display positions is calculated. The recorded number of iterations is used to determine whether the number of iterations is less than the set iteration threshold. If the number of iterations corresponding to each display position is less than the iteration threshold, the starting pixel value corresponding to each feature point is used as the initial pixel value corresponding to each feature point. If the number of iterations corresponding to any display position is not less than the iteration threshold, the average value of the calculated iteration result is updated as the starting pixel value corresponding to each feature point in the next round, and the above operation steps of calculating the initial pixel value are repeated until the number of iterations corresponding to any display position is less than the iteration threshold. Based on the method provided in this embodiment, by calculating a suitable initial pixel value, the number of iterations of light field decomposition can be reduced, the amount of calculation can be reduced, and the real-time performance of displaying objects on the display screen can be improved.
[0104] Embodiment 4
[0105] Fig.13 This is a schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present application, such as Fig.13 As shown, the electronic device includes:
[0106] The electronic device includes a processor 291 and a memory 292; it may also include a communication interface 293 and a bus 294. The processor 291, the memory 292, and the communication interface 293 may communicate with each other through the bus 294. The communication interface 293 may be used for information transmission. The processor 291 may call the logic instructions in the memory 292 to execute the method of the first embodiment.
[0107] In addition, the logic instructions in the above-mentioned memory 292 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product.
[0108] The memory 292 is a computer-readable storage medium that can be used to store software programs and computer executable programs, such as program instructions / modules corresponding to the method in the embodiment of the present application. The processor 291 executes the functional application and data processing by running the software programs, instructions and modules stored in the memory 292, that is, implementing the method of the above-mentioned embodiment 1.
[0109] The memory 292 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 292 may include a high-speed random access memory and may also include a non-volatile memory.
[0110] An embodiment of the present application provides a non-temporary computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the method described in the above embodiment.
[0111] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the inventions claimed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary techniques in the art that are not claimed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the claims below.
[0112] The foregoing may be better understood in light of the following terms:
[0113] Clause A1. A method for generating an initial pixel value, comprising:
[0114] Obtaining a starting pixel value for this processing, wherein the starting pixel value includes a display pixel value corresponding to each feature point on the first object on each layer of the liquid crystal display screen;
[0115] According to the pixel value rendered at each feature point on the first object and the starting pixel value in this processing, the light field decomposition algorithm is used to perform iterative calculations at multiple set display positions to obtain multiple iterative results in this processing, and the number of iterations corresponding to each iterative result in this processing is recorded;
[0116] If among the multiple iterative results of this processing, the number of iterations corresponding to any iterative result is greater than the preset threshold, then the average value of the multiple iterative results of this processing is calculated to obtain the target pixel value of this processing, and the target pixel value of this processing is used as the starting pixel value of the next processing, and the step of obtaining the starting pixel value of this processing is executed until the number of iterations corresponding to the multiple iterative results of the current processing is not greater than the threshold, then the starting pixel value of the current processing is used as the initial pixel value.
[0117] Clause A2. The method according to clause A1, wherein obtaining the starting pixel value for the current processing comprises:
[0118] If this processing is the first processing, the starting pixel value of this processing is set to a random value;
[0119] If this processing is not the first processing, the target pixel value of the last processing is used as the starting pixel value of the current processing.
[0120] Clause A3. The method according to clause A1, wherein the light field decomposition algorithm is used to perform iterative calculations at multiple set display positions based on the pixel value rendered at each feature point on the first object and the starting pixel value of the current processing, to obtain multiple iterative results of the current processing, including:
[0121] For each display position, based on the light constraint method, calculating the pixel points corresponding to each feature point on the first object on each layer of the liquid crystal display screen when the display is located at the display position;
[0122] Determining the spatial coordinates of the pixel points corresponding to each feature point on each layer of the liquid crystal display screen when the display is located at the display position based on the position of the display screen, the screen size, the resolution of each layer of the liquid crystal display screen and the relative distance between each layer of the liquid crystal display screen;
[0123] According to the rendered pixel value of each feature point on the first object and the starting pixel value of this processing, as well as the spatial coordinates of the pixel points corresponding to each feature point on the first object on each layer of the liquid crystal display screen when the display is located at the display position, an iterative calculation is performed using a light field decomposition algorithm to obtain the iterative result when the display is located at the display position.
[0124] Clause A4. The method according to clause A3, further comprising:
[0125] Set the iteration error value;
[0126] The iterative calculation is performed using a light field decomposition algorithm according to the pixel value rendered for each feature point on the first object and the starting pixel value of this processing, as well as the spatial coordinates of the pixel points corresponding to each feature point on each layer of the liquid crystal display screen when the display is located at the display position, to obtain the iterative result when the display is located at the display position, including:
[0127] According to the rendered pixel value of each feature point on the first object and the starting pixel value of this processing, and the spatial coordinates of the pixel points corresponding to each feature point on each layer of the liquid crystal display screen when the display is located at the display position, an iterative calculation is performed using a light field decomposition algorithm until the difference between the displayed pixel value of each feature point on each layer of the liquid crystal display screen obtained by the current iteration and the rendered pixel value of the feature point is not greater than a preset error value;
[0128] The display pixel value of each feature point currently iterated on each layer of the liquid crystal display screen is used as the iteration result at the display position.
[0129] Clause A5. The method according to clause A1, wherein the iteration result includes a display pixel value corresponding to each layer of the liquid crystal display screen; and the calculation of the average value of multiple iteration results under this processing to obtain the target pixel value of this processing includes:
[0130] For each layer of liquid crystal display screen, average display pixel values corresponding to the liquid crystal display screen in the multiple iteration results are calculated to obtain an average calculation result corresponding to each layer of liquid crystal display screen;
[0131] According to the arrangement order of the display pixel values corresponding to each layer of the liquid crystal display screen in the iteration results, the average calculation results corresponding to each layer of the liquid crystal display screen are sorted and combined to obtain the target pixel value of this processing, and the target pixel value includes the average calculation results corresponding to each layer of the liquid crystal display screen.
[0132] Clause A6. A method according to any one of clauses A1-A5, further comprising:
[0133] Obtaining the rendered pixel value corresponding to each feature point on the object to be displayed, and obtaining the spatial coordinates of the pixel points corresponding to each feature point on the object to be displayed on each layer of the liquid crystal display screen at the current display position;
[0134] Based on the rendered pixel value corresponding to each feature point on the object to be displayed and the spatial coordinates of the corresponding pixel point on each layer of the liquid crystal display screen, the initial pixel value is iteratively calculated by light field decomposition to obtain the display pixel value of each feature point on the object to be displayed on each layer of the liquid crystal display screen at the current display position;
[0135] The corresponding pixel points on each layer of the liquid crystal display screen display the corresponding display pixel values.
[0136] Clause A7. An initial pixel value generating device comprising:
[0137] An acquisition module, used to acquire a starting pixel value for this processing, wherein the starting pixel value includes a display pixel value corresponding to each feature point on the first object on each layer of the liquid crystal display screen;
[0138] a calculation module, configured to perform iterative calculations using a light field decomposition algorithm at multiple set display positions according to the pixel value rendered at each feature point on the first object and the starting pixel value of the current processing, to obtain multiple iterative results of the current processing, and to record the number of iterations corresponding to each iterative result of the current processing;
[0139] A processing module is used to calculate the average value of multiple iterative results under this processing if the number of iterations corresponding to any iterative result under this processing is greater than a preset threshold, obtain the target pixel value of this processing, and use the target pixel value of this processing as the starting pixel value of the next processing, and execute the step of obtaining the starting pixel value under this processing until the number of iterations corresponding to the multiple iterative results under the current processing is not greater than the threshold, then use the starting pixel value under the current processing as the initial pixel value.
[0140] Clause A8. A device according to clause A7,
[0141] The acquisition module is specifically used to set the starting pixel value of the current processing to a random value if the current processing is the first processing;
[0142] The acquisition module is further specifically used to use the target pixel value of the last processing as the starting pixel value of the current processing if the current processing is not the first processing.
[0143] Clause A9. A device according to clause A7,
[0144] The calculation module is specifically used to calculate, for each display position, based on a light constraint method, the pixel points corresponding to each feature point on the first object on each layer of the liquid crystal display screen when the display is located at the display position;
[0145] The calculation module is further specifically used to determine the spatial coordinates of the pixel points corresponding to each feature point on each layer of the liquid crystal display screen when the display is located at the display position based on the position of the display screen, the screen size, the resolution of each layer of the liquid crystal display screen and the relative distance between each layer of the liquid crystal display screen;
[0146] The calculation module is specifically used to perform iterative calculations using a light field decomposition algorithm based on the rendered pixel value of each feature point on the first object and the starting pixel value of this processing, as well as the spatial coordinates of the pixel points corresponding to each feature point on each layer of the liquid crystal display screen when the display is at the display position, so as to obtain the iterative result when the display is at the display position.
[0147] Clause A10. The apparatus of clause A7, further comprising:
[0148] A setting module, used to set an iteration error value;
[0149] The calculation module is further specifically used to perform iterative calculation using a light field decomposition algorithm according to the rendered pixel value of each feature point on the first object and the starting pixel value of this processing, and the spatial coordinates of the pixel points corresponding to each feature point on each layer of the liquid crystal display screen when the display is located at the display position, until the difference between the displayed pixel value of each feature point on each layer of the liquid crystal display screen obtained by the current iteration and the rendered pixel value of the feature point is not greater than a preset error value;
[0150] The processing module is further used to use the display pixel value of each feature point currently iterated on each layer of the liquid crystal display screen as the iteration result at the display position.
[0151] Clause A11. The device according to clause A7, wherein the iteration result includes display pixel values corresponding to each layer of the liquid crystal display screen;
[0152] The calculation module is further configured to calculate the average value of the display pixel values corresponding to each layer of the liquid crystal display screen in the multiple iteration results, so as to obtain the average calculation result corresponding to each layer of the liquid crystal display screen;
[0153] The calculation module is specifically used to sort and combine the average calculation results corresponding to each layer of liquid crystal display screen according to the arrangement order of the display pixel values corresponding to each layer of liquid crystal display screen in the iteration results, so as to obtain the target pixel value of this processing, and the target pixel value includes the average calculation result corresponding to each layer of liquid crystal display screen.
[0154] Clause A12. An apparatus according to any one of clauses A7 to A11,
[0155] The acquisition module is further used to acquire the rendered pixel value corresponding to each feature point on the object to be displayed, and acquire the spatial coordinates of the pixel points corresponding to each feature point on the object to be displayed on each layer of the liquid crystal display screen at the current display position;
[0156] The processing module is further used to perform iterative calculation of light field decomposition on the initial pixel value based on the rendered pixel value corresponding to each feature point on the object to be displayed and the spatial coordinates of the corresponding pixel point on each layer of the liquid crystal display screen, so as to obtain the display pixel value of each feature point on the object to be displayed on each layer of the liquid crystal display screen at the current display position;
[0157] The processing module is also used to display corresponding display pixel values at corresponding pixel points on each layer of the liquid crystal display screen.
[0158] Clause A13. An electronic device comprising: a processor, and a memory communicatively connected to the processor;
[0159] The memory stores computer-executable instructions;
[0160] The processor executes the computer-executable instructions stored in the memory to implement the method as described in any of clauses A1-A6.
[0161] Clause A14. A computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to implement the method as described in any one of clauses A1-A6 when executed by a processor.
[0162] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A method for generating an initial pixel value, characterized in that: include: Obtaining a starting pixel value for this processing, wherein the starting pixel value includes a display pixel value corresponding to each feature point on the first object on each layer of the liquid crystal display screen; According to the pixel value rendered at each feature point on the first object and the starting pixel value in this processing, the light field decomposition algorithm is used to perform iterative calculations at multiple set display positions to obtain multiple iterative results in this processing, and the number of iterations corresponding to each iterative result in this processing is recorded; If among the multiple iterative results of this processing, the number of iterations corresponding to any iterative result is greater than the preset threshold, then the average value of the multiple iterative results of this processing is calculated to obtain the target pixel value of this processing, and the target pixel value of this processing is used as the starting pixel value of the next processing, and the step of obtaining the starting pixel value of this processing is executed until the number of iterations corresponding to the multiple iterative results of the current processing is not greater than the threshold, then the starting pixel value of the current processing is used as the initial pixel value.
2. The method according to claim 1, characterized in that The step of obtaining the starting pixel value of the current processing includes: If this processing is the first processing, the starting pixel value of this processing is set to a random value; If this processing is not the first processing, the target pixel value of the last processing is used as the starting pixel value of the current processing.
3. The method according to claim 1, characterized in that According to the pixel value rendered at each feature point on the first object and the starting pixel value in this processing, the light field decomposition algorithm is used to perform iterative calculations at multiple set display positions to obtain multiple iterative results in this processing, including: For each display position, based on the light constraint method, calculating the pixel points corresponding to each feature point on the first object on each layer of the liquid crystal display screen when the display is located at the display position; Determining the spatial coordinates of the pixel points corresponding to each feature point on each layer of the liquid crystal display screen when the display is located at the display position based on the position of the display screen, the screen size, the resolution of each layer of the liquid crystal display screen and the relative distance between each layer of the liquid crystal display screen; According to the rendered pixel value of each feature point on the first object and the starting pixel value of this processing, as well as the spatial coordinates of the pixel points corresponding to each feature point on the first object on each layer of the liquid crystal display screen when the display is located at the display position, an iterative calculation is performed using a light field decomposition algorithm to obtain the iterative result when the display is located at the display position.
4. The method according to claim 3, characterized in that The method further comprises: Set the iteration error value; The iterative calculation is performed using a light field decomposition algorithm according to the pixel value rendered for each feature point on the first object and the starting pixel value of this processing, as well as the spatial coordinates of the pixel points corresponding to each feature point on each layer of the liquid crystal display screen when the display is located at the display position, to obtain the iterative result when the display is located at the display position, including: According to the rendered pixel value of each feature point on the first object and the starting pixel value of this processing, and the spatial coordinates of the pixel points corresponding to each feature point on each layer of the liquid crystal display screen when the display is located at the display position, an iterative calculation is performed using a light field decomposition algorithm until the difference between the displayed pixel value of each feature point on each layer of the liquid crystal display screen obtained by the current iteration and the rendered pixel value of the feature point is not greater than a preset error value; The display pixel value of each feature point currently iterated on each layer of the liquid crystal display screen is used as the iteration result at the display position.
5. The method according to claim 1, characterized in that The iteration result includes the display pixel value corresponding to each layer of the liquid crystal display screen; the calculation of the average value of multiple iteration results under this processing to obtain the target pixel value of this processing includes: For each layer of liquid crystal display screen, average display pixel values corresponding to the liquid crystal display screen in the multiple iteration results are calculated to obtain an average calculation result corresponding to each layer of liquid crystal display screen; According to the arrangement order of the display pixel values corresponding to each layer of the liquid crystal display screen in the iteration results, the average calculation results corresponding to each layer of the liquid crystal display screen are sorted and combined to obtain the target pixel value of this processing, and the target pixel value includes the average calculation results corresponding to each layer of the liquid crystal display screen.
6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: Obtaining the rendered pixel value corresponding to each feature point on the object to be displayed, and obtaining the spatial coordinates of the pixel points corresponding to each feature point on the object to be displayed on each layer of the liquid crystal display screen at the current display position; Based on the rendered pixel value corresponding to each feature point on the object to be displayed and the spatial coordinates of the corresponding pixel point on each layer of the liquid crystal display screen, the initial pixel value is iteratively calculated by light field decomposition to obtain the display pixel value of each feature point on the object to be displayed on each layer of the liquid crystal display screen at the current display position; The corresponding pixel points on each layer of the liquid crystal display screen display the corresponding display pixel values.
7. An initial pixel value generating device, characterized in that: include: An acquisition module, used to acquire a starting pixel value for this processing, wherein the starting pixel value includes a display pixel value corresponding to each feature point on the first object on each layer of the liquid crystal display screen; a calculation module, configured to perform iterative calculations using a light field decomposition algorithm at multiple set display positions according to the pixel value rendered at each feature point on the first object and the starting pixel value of the current processing, to obtain multiple iterative results of the current processing, and to record the number of iterations corresponding to each iterative result of the current processing; A processing module is used to calculate the average value of multiple iterative results under this processing if the number of iterations corresponding to any iterative result under this processing is greater than a preset threshold, obtain the target pixel value of this processing, and use the target pixel value of this processing as the starting pixel value of the next processing, and execute the step of obtaining the starting pixel value under this processing until the number of iterations corresponding to the multiple iterative results under the current processing is not greater than the threshold, then use the starting pixel value under the current processing as the initial pixel value.
8. The device according to claim 7, characterized in that The acquisition module is specifically used to set the starting pixel value of the current processing to a random value if the current processing is the first processing; The acquisition module is further specifically used to use the target pixel value of the last processing as the starting pixel value of the current processing if the current processing is not the first processing.
9. The device according to claim 7, characterized in that The calculation module is specifically used to calculate, for each display position, based on a light constraint method, the pixel points corresponding to each feature point on the first object on each layer of the liquid crystal display screen when the display is located at the display position; The calculation module is further specifically used to determine the spatial coordinates of the pixel points corresponding to each feature point on each layer of the liquid crystal display screen when the display is located at the display position based on the position of the display screen, the screen size, the resolution of each layer of the liquid crystal display screen and the relative distance between each layer of the liquid crystal display screen; The calculation module is specifically used to perform iterative calculations using a light field decomposition algorithm based on the rendered pixel value of each feature point on the first object and the starting pixel value of this processing, as well as the spatial coordinates of the pixel points corresponding to each feature point on each layer of the liquid crystal display screen when the display is at the display position, so as to obtain the iterative result when the display is at the display position.
10. The device according to claim 7, characterized in that The device also includes: A setting module, used to set an iteration error value; The calculation module is further specifically used to perform iterative calculation using a light field decomposition algorithm according to the rendered pixel value of each feature point on the first object and the starting pixel value of this processing, and the spatial coordinates of the pixel points corresponding to each feature point on each layer of the liquid crystal display screen when the display is located at the display position, until the difference between the displayed pixel value of each feature point on each layer of the liquid crystal display screen obtained by the current iteration and the rendered pixel value of the feature point is not greater than a preset error value; The processing module is further used to use the display pixel value of each feature point currently iterated on each layer of the liquid crystal display screen as the iteration result at the display position.
11. The device according to claim 7, characterized in that The iteration result includes display pixel values corresponding to each layer of liquid crystal display screen; The calculation module is further configured to calculate the average value of the display pixel values corresponding to each layer of the liquid crystal display screen in the multiple iteration results, so as to obtain the average calculation result corresponding to each layer of the liquid crystal display screen; The calculation module is specifically used to sort and combine the average calculation results corresponding to each layer of liquid crystal display screen according to the arrangement order of the display pixel values corresponding to each layer of liquid crystal display screen in the iteration results, so as to obtain the target pixel value of this processing, and the target pixel value includes the average calculation result corresponding to each layer of liquid crystal display screen.
12. The device according to any one of claims 7 to 11, characterized in that: The acquisition module is further used to acquire the rendered pixel value corresponding to each feature point on the object to be displayed, and acquire the spatial coordinates of the pixel points corresponding to each feature point on the object to be displayed on each layer of the liquid crystal display screen at the current display position; The processing module is further used to perform iterative calculation of light field decomposition on the initial pixel value based on the rendered pixel value corresponding to each feature point on the object to be displayed and the spatial coordinates of the corresponding pixel point on each layer of the liquid crystal display screen, so as to obtain the display pixel value of each feature point on the object to be displayed on each layer of the liquid crystal display screen at the current display position; The processing module is also used to display corresponding display pixel values at corresponding pixel points on each layer of the liquid crystal display screen.
13. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 6.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 6 when executed by a processor.
Citation Information
Patent Citations
High dynamic range display with three dimensional and field sequential color synthesis control
CN102414738A
Method and apparatus for generating images
CN106507089A
Rendering method and device
CN111354066A
Data processing method and device and storage medium
CN116011606A
Image processing device and method, recording medium, and program
JP2016178678A
