Initial pixel value generation method, apparatus, device, and medium

By calculating appropriate initial pixel values, the number of iterations for light field decomposition is reduced, thus solving the problem of poor real-time performance of the display screen in multilayer liquid crystal tensor light field display technology and achieving a more efficient display effect.

CN119132252BActive Publication Date: 2026-04-14CAMBRICON (XIAN) SEMICON CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CAMBRICON (XIAN) SEMICON CO LTD
Filing Date
2023-06-12
Publication Date
2026-04-14

AI Technical Summary

Technical Problem

In multilayer liquid crystal tensor light field display technology, since the initial pixel value is random, the light field decomposition requires multiple iterative calculations, resulting in poor real-time performance of the displayed object.

Method used

By calculating appropriate initial pixel values, the number of iterations of light field decomposition is reduced, thus decreasing the computational load. The light field decomposition algorithm is used to perform iterative calculations at multiple display positions, and the number of iterations is recorded. If the threshold is exceeded, the average value is calculated as the starting pixel value for the next iteration, until the number of iterations is no greater than the threshold.

Benefits of technology

The real-time performance of the displayed objects has been improved by reducing the number of iterations and the amount of computation, thereby enhancing the real-time performance of the display effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119132252B_ABST
    Figure CN119132252B_ABST
Patent Text Reader

Abstract

The application provides an initial pixel value generation method, device, equipment and medium. The device comprises an acquisition module, a calculation module and a processing module. Based on the technical scheme provided by the application, the number of iterations of light field decomposition can be reduced, the calculation amount can be reduced, and the real-time performance of the display screen in displaying an object can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of electronics, and more particularly to a method, apparatus, device, and medium for generating initial pixel values. Background Technology

[0002] Multilayer liquid crystal tensor light field display technology takes advantage of the characteristics of multi-screen object display. It uses a light field decomposition algorithm to iteratively calculate the initial pixel value based on the pixel value of the object to determine the pixel value that each layer of liquid crystal display should display.

[0003] Currently, in the light field decomposition algorithm, since the initial pixel value is random, multiple iterations of calculation are required to achieve a good pixel value that each layer of the liquid crystal display should display. Due to the huge amount of computation, the real-time performance of the display screen is poor. Summary of the Invention

[0004] This application provides an initial pixel value generation method, apparatus, device, and medium. By calculating a suitable initial pixel value, the number of iterations of light field decomposition is reduced, the amount of computation is decreased, thereby improving the real-time performance of the display screen.

[0005] On the one hand, this application provides a method for generating initial pixel values, including:

[0006] Obtain the starting pixel value for this processing, which includes the display pixel value corresponding to each feature point on the first object on each layer of the liquid crystal display screen;

[0007] Based on the rendered pixel value of 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 iteration number corresponding to each iterative result under this processing is recorded.

[0008] If any iteration result in the current processing has an iteration count greater than a preset threshold, the average value of the multiple iteration results in the current processing is calculated to obtain the target pixel value for the current processing. The target pixel value for the current processing is then used as the starting pixel value for the next processing, and the step of obtaining the starting pixel value for the current processing is executed until the iteration counts corresponding to the multiple iteration results in the current processing are all less than the threshold. Then, the starting pixel value for the current processing is used as the initial pixel value.

[0009] On the other hand, this application provides an initial pixel value generation apparatus, comprising:

[0010] The acquisition module is used to acquire the starting pixel value for this processing, wherein 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;

[0011] The calculation module is used to perform iterative calculations using a light field decomposition algorithm at multiple set display positions based on the rendered pixel value of each feature point on the first object and the starting pixel value under this processing, to obtain multiple iteration results under this processing, and to record the iteration number corresponding to each iteration result under this processing.

[0012] The processing module is configured to calculate the average value of the multiple iteration results in the current processing if any iteration result has an iteration count greater than a preset threshold, thereby obtaining the target pixel value for the current processing. The target pixel value is then used as the starting pixel value for the next processing step, and the step of obtaining the starting pixel value for the current processing is executed until the iteration counts corresponding to the multiple iteration results in the current processing are all less than the threshold. In this case, the starting pixel value for the current processing is used as the initial pixel value.

[0013] In another aspect, this application provides an electronic device, including: a processor, and a memory communicatively connected to the processor;

[0014] The memory stores computer-executed instructions;

[0015] The processor executes computer execution instructions stored in the memory to implement the method as described in the preceding one.

[0016] In another aspect, this application provides a computer-readable storage medium storing computer-executable instructions that, when executed by a processor, are used to implement the method as described in the preceding claim.

[0017] The initial pixel value generation method, apparatus, device, and medium provided in this application first obtain the starting pixel value for the current processing. 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, based on the rendered pixel value of each feature point on the first object and the starting pixel value for the current processing, an iterative calculation is performed using a light field decomposition algorithm at multiple set display positions to obtain multiple iteration results for the current processing. The iteration number corresponding to each iteration result is recorded. If the iteration number corresponding to any of the multiple iteration results for the current processing is greater than a preset threshold, the average value of the multiple iteration results for the current processing is calculated to obtain the target pixel value for the current processing. This target pixel value is then used as the starting pixel value for the next processing iteration, and the step of obtaining the starting pixel value for the current processing is repeated until the iteration number corresponding to all multiple iteration results for the current processing is not greater than the threshold. Finally, the current starting pixel value for the current processing is used as the initial pixel value. Based on the method provided in this application, by calculating a suitable initial pixel value, the number of iterations of light field decomposition can be reduced, the computational load can be decreased, thereby improving the real-time performance of the display screen. Attached Figure Description

[0018] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0019] Figure 1 This is a schematic diagram illustrating an application scenario for this application;

[0020] Figure 2 This is a flowchart illustrating an initial pixel value generation method provided in Embodiment 1 of this application;

[0021] Figure 3 A flowchart illustrating another initial pixel value generation method provided in Embodiment 1 of this application;

[0022] Figure 4 A flowchart illustrating another initial pixel value generation method provided in Embodiment 1 of this application;

[0023] Figure 5 A flowchart illustrating another initial pixel value generation method provided in Embodiment 1 of this application;

[0024] Figure 6 A flowchart illustrating another initial pixel value generation method provided in Embodiment 1 of this application;

[0025] Figure 7 A flowchart illustrating another initial pixel value generation method provided in Embodiment 1 of this application;

[0026] Figure 8 A flowchart illustrating another initial pixel value generation method provided in Embodiment 1 of this application;

[0027] Figure 9 This is a schematic diagram of an initial pixel value generation device provided in Embodiment 2 of this application;

[0028] Figure 10 This is a schematic diagram of another initial pixel value generation device provided in Embodiment 2 of this application;

[0029] Figure 11 This is a schematic flowchart illustrating the operation of an initial pixel value generation system provided in Embodiment 3 of this application;

[0030] Figure 12 This is a schematic diagram of a process for calculating initial pixel values ​​provided in Embodiment 3 of this application;

[0031] Figure 13 This is a schematic diagram of the structure of an electronic device provided in Embodiment 4 of this application.

[0032] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation

[0033] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0034] Figure 1 This is a schematic diagram illustrating an application scenario of this application. Each feature point constituting an object has an initial pixel value. Light field decomposition can iteratively decompose the initial pixel value corresponding to each feature point to obtain the pixel value displayed on each layer of a multi-layer liquid crystal display. Currently, in light field decomposition algorithms, since the initial pixel value is random, multiple iterations are required to achieve a satisfactory pixel value for each layer of the liquid crystal display. This results in a large computational load and poor real-time performance of the displayed object. This application reduces the number of iterations in light field decomposition by calculating a suitable initial pixel value, thereby reducing the computational load and improving the real-time performance of the displayed object.

[0035] It should be noted that the brief descriptions of terms in this application are only for the convenience of understanding the embodiments described below, and are not intended to limit the embodiments of this application. Unless otherwise stated, these terms should be understood in their ordinary and common meaning.

[0036] The technical solutions of this application will be described in detail below with reference to specific embodiments. These 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 this application, unless otherwise expressly specified and limited, the terms should be broadly understood within the art. The embodiments of this application will now be described with reference to the accompanying drawings.

[0037] Example 1

[0038] Figure 2 This is a flowchart illustrating an initial pixel value generation method provided in Embodiment 1 of this application, as shown below. Figure 2 As shown, the method includes:

[0039] Step 201: Obtain the starting pixel value for this processing. 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.

[0040] Step 202: Based on the rendered pixel value of 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 iteration results under this processing, and the iteration number corresponding to each iteration result under this processing is recorded.

[0041] Step 203: If any iteration result in the current processing has an iteration count greater than a preset threshold, calculate the average of the multiple iteration results in the current processing to obtain the target pixel value for the current processing. Use the target pixel value for the current processing as the starting pixel value for the next processing and execute the step of obtaining the starting pixel value for the current processing until the iteration counts corresponding to the multiple iteration results in the current processing are all less than the threshold. Then, use the starting pixel value for the current processing as the initial pixel value.

[0042] The execution subject of this embodiment is an initial pixel value generation device, which can be implemented by a computer program, such as application software; or it can be implemented as a medium storing the relevant computer program, such as a USB flash drive or cloud drive; or it can be implemented by a physical device that integrates or installs the relevant computer program, such as a chip.

[0043] Taking a first object as an example, each feature point constituting the first object has a corresponding starting pixel value. This starting pixel value is used to calculate the initial pixel value corresponding to that feature point. The initial pixel value for each feature point on the first object is an array of multiple numbers, with the number of numbers in the array being three times the number of liquid crystal displays. For example, if the display is a three-layer liquid crystal display, the starting pixel value is an array of nine numbers, arranged according to a first rule. Specifically, since pixel values ​​display color information, and color information is composed of red, green, and blue primary colors, the array of starting pixel values ​​includes the channel values ​​corresponding to the red, green, and blue primary colors of the pixel values ​​corresponding to each layer of the liquid crystal display. The first rule can be that in the array of starting pixel values, the first three numbers are the channel values ​​corresponding to the red, green, and blue primary colors of the pixel values ​​corresponding to the first layer of the liquid crystal display; the middle three numbers are the channel values ​​corresponding to the red, green, and blue primary colors of the pixel values ​​corresponding to the second layer of the liquid crystal display; and the last three numbers are the channel values ​​corresponding to the red, green, and blue primary colors of the pixel values ​​corresponding to the third layer of the liquid crystal display. For example, if the starting pixel value of a certain 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, 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, 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 in different positions, light field decomposition is performed on the initial pixel values ​​corresponding to the feature points on the first object. The iterative results obtained from the light field decomposition will vary depending on the position. The iterative results include the pixel value displayed on each liquid crystal display screen for each feature point on the first object. Before performing light field decomposition on the initial 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 use the rendered pixel values ​​of the feature points as a reference to iteratively calculate the initial pixel values, so that the pixel values ​​of the iterative results are close to the rendered pixel values. Therefore, when the display screen is located in different positions, the number of iterations obtained from the light field decomposition is inconsistent, and it is necessary to record the number of iterations corresponding to the display screen in different positions. A maximum iteration threshold for light field decomposition is set, and representative display screen positions are determined in space. If the number of iterations at each display screen position is not greater than the maximum iteration threshold, the starting pixel value corresponding to each feature point of the first object is determined as the initial pixel value corresponding to each feature point. If the number of iterations at any display screen position exceeds the maximum iteration threshold, the average value of the iteration results at all display screen positions is calculated, and the average value is used as the new starting pixel value. The light field decomposition operation at different display screen positions is repeated until the number of iterations at all display screen positions is less than the iteration threshold. Then, the starting pixel value of this light field decomposition is used as the initial pixel value corresponding to the feature point on the first object.

[0045] This example first obtains the starting pixel value for this processing, which includes the display pixel value corresponding to each feature point on the first object on each layer of the liquid crystal display screen. Then, based on the rendered pixel value of each feature point on the first object and the starting pixel value for this processing, iterative calculations are performed using a light field decomposition algorithm at multiple set display positions to obtain multiple iteration results for this processing, and the iteration number corresponding to each iteration result is recorded. If the iteration number corresponding to any of the multiple iteration results for this processing is greater than a preset threshold, the average value of the multiple iteration results for this processing is calculated to obtain the target pixel value for this processing, and the target pixel value for this processing is used as the starting pixel value for the next processing. The step of obtaining the starting pixel value for this processing is then executed until the iteration number corresponding to the multiple iteration results for the current processing is not greater than the threshold, at which point the current starting pixel value for this processing is used as the initial pixel value. Based on the method provided in this example, by calculating a suitable initial pixel value, the number of iterations of light field decomposition can be reduced, the amount of computation can be reduced, and thus the real-time performance of the display screen in displaying objects can be improved.

[0046] Optional, Figure 3 This is a flowchart illustrating another initial pixel value generation method provided in Embodiment 1 of this application, as shown below. Figure 3 As shown, in step 201, obtaining the starting pixel value for this processing includes:

[0047] Step 301: If this is the first processing step, then set the starting pixel value for this processing step to a random value;

[0048] Step 302: If this processing is not the first processing, then the target pixel value of the previous processing is used as the starting pixel value for the current processing.

[0049] Based on the above description and the scenario example, in calculating the initial pixel value corresponding to each feature point on the first object, it is necessary to repeatedly perform light field decomposition based on the current initial pixel value at each display position to obtain the iterative result for each display position until the number of iterations for each display position is less than the iteration threshold. Otherwise, the average value of the iteration results for each display position is calculated to obtain the target pixel value for this processing, and this target pixel value is used as the starting pixel value for the next processing. Therefore, the starting pixel value for the current processing can be the target pixel value corresponding to the previous processing. So, if the current processing is the first processing, i.e., there is no target pixel value corresponding to the previous processing, the starting pixel value for the current processing can be set to a random value. Otherwise, if the current processing is not the first processing, the starting pixel value for the current processing is the target pixel value of the previous processing. This example reasonably determines the starting pixel value for the current processing based on whether the current processing is the first processing.

[0050] Optional, Figure 4 This is a flowchart illustrating another initial pixel value generation method provided in Embodiment 1 of this application, as shown below. Figure 4 As shown, step 202 includes:

[0051] Step 401: For each display position, based on the light constraint method, calculate the pixel point on each layer of the liquid crystal display screen corresponding to each feature point on the first object when the display is located at that display position.

[0052] Step 402: Based on the position of the display screen, screen size, resolution of each layer of liquid crystal display screen and relative distance between each layer of liquid crystal display screen, determine the spatial coordinates of the corresponding pixel point of each feature point on the first object on each layer of liquid crystal display screen when the display is located at the position of the display screen;

[0053] Step 403: Based on the rendered pixel value of each feature point on the first object and the starting pixel value under this processing, as well as the spatial coordinates of the corresponding pixel points of 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 light field decomposition algorithm is used to perform iterative calculation to obtain the iterative result when the display is located at the display position.

[0054] Using a scenario example, when calculating the iterative results for each display position using the light field decomposition algorithm, based on the light constraint method at each display position, the corresponding pixel on each layer of the liquid crystal display at the current display position is determined. Each feature point on the first object and its corresponding pixel on each layer of the liquid crystal display lie on a straight line. Then, based on the current display position, the size and resolution of each layer of the liquid crystal display, and the relative distance between each layer, the spatial coordinates of the corresponding pixel on each layer of the liquid crystal display are determined. For example... Figure 5 As shown, Figure 5 To determine the corresponding pixel points of a feature point on the first object, taking a feature point A on the first object as an example, the corresponding pixel points A1, A2, and A3 on each layer of the liquid crystal display screen are determined. Then, based on 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, the spatial coordinates of A1, A2, and A3 are determined. Each feature point on the first object has a rendered pixel value. Based on the rendered pixel value of the feature point and the starting pixel value corresponding to this processing, and then based on the spatial coordinates of the corresponding pixel points on each layer of the liquid crystal display screen, an iterative result is obtained through light field decomposition. That is, the displayed pixel value of each feature point on the first object on each layer of the liquid crystal display screen. For example, as... Figure 5 As shown, taking feature point A as an example, based on the rendered pixel value of feature point A, the starting pixel value corresponding to feature point A, and 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 This is a flowchart illustrating another initial pixel value generation method provided in Embodiment 1 of this application, as shown below. Figure 6 As shown, the method further includes:

[0056] Step 601: Set the iteration error value;

[0057] Step 403 includes:

[0058] Step 602: Based on the rendered pixel value of each feature point on the first object and the starting pixel value under this processing, as well as the spatial coordinates of the corresponding pixel points of 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 light field decomposition algorithm is used to perform iterative calculation until the difference between the displayed pixel value of each feature point on each layer of the liquid crystal display screen and the rendered pixel value of the feature point is not greater than the preset error value.

[0059] Step 603: Take the display pixel value of each feature point obtained in the current iteration on each layer of the liquid crystal display screen as the iteration result at the display position.

[0060] Based on a scenario example, before obtaining the iteration result using light field decomposition, the process involves comparing the rendered pixel value at a feature point with the starting pixel value for the current processing, and then using the spatial coordinates of the corresponding pixel on each LCD screen layer. Before this process, an error value can be set between the iteration result and the rendered pixel value. The purpose of light field decomposition is to make the iteration result close to the rendered pixel value. However, given current display technology, the obtained iteration result cannot be completely identical to the rendered pixel value. After setting the error value, light field decomposition is used to calculate the iteration result based on the rendered pixel value of each feature point on the first object, the starting pixel value corresponding to each feature point in the current processing, and the spatial coordinates of the corresponding pixel on each LCD screen layer at each display position. The iteration stops when the difference between the calculated iteration result and the rendered pixel value of each feature point is no greater than the error value. The displayed pixel value of each feature point on the first object at each display position at this time is taken as the iteration result at each display position. This example determines the condition for stopping the light field decomposition iteration calculation by setting the error value between the iteration result and the rendered pixel value at the feature point. This ensures that the obtained iteration result is close to the rendered pixel value at the feature point, thus guaranteeing the display effect of the screen.

[0061] Optionally, the iteration result includes the display pixel values ​​corresponding to each layer of the liquid crystal display screen; Figure 7 This is a flowchart illustrating another initial pixel value generation method provided in Embodiment 1 of this application, as shown below. Figure 7 As shown, in step 203, calculating the average of multiple iteration results under this processing to obtain the target pixel value for this processing includes:

[0062] Step 701: For each layer of liquid crystal display screen, calculate the average value of the display pixel value 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: According to the arrangement order of the display pixel values ​​corresponding to each layer of the liquid crystal display screen in the iteration results, sort and combine the average calculation results corresponding to each layer of the liquid crystal display screen to obtain the target pixel value for this processing. The target pixel value includes the average calculation results corresponding to each layer of the liquid crystal display screen.

[0064] In a scenario example, if the number of iterations at any display screen location exceeds the iteration threshold, the average value of the iteration results at each display screen location is calculated. When calculating the average value of the iteration results at each display screen location, the average value of the iteration results for each display screen layer can be calculated separately. Then, the calculated average values ​​of the iteration results for each display screen layer are combined to form the average value of the iteration results for the feature points on the first object at each display screen location, which is the target pixel value processed in this operation. Figure 5 As shown, when calculating the average value of the iteration results corresponding to feature point A at each display screen position for each layer of the display screen for feature point A on the first object, for the first layer of the liquid crystal display screen, at each position, the display pixel value of feature point A on the first layer of the liquid crystal display screen includes: red channel value, green channel value and blue channel value. The average value of the red channel value of feature point A on the first layer of the liquid crystal display screen at each position is calculated to obtain the average value of the red channel value of feature point A on the first layer of the liquid crystal display screen. Similarly, this method can be used to obtain the average value of the green channel and the average value of the blue channel value of feature point A on the first layer of the liquid crystal display screen, thereby obtaining the iteration result of feature point A on the first layer of the liquid crystal display screen. This method obtains the iteration results of feature point A on the second and third liquid crystal display layers. The iteration results of feature point A on the first, second, and third liquid crystal display layers are then arranged to obtain the target pixel value of feature point A in this current iteration. This method is used to obtain the target pixel values ​​of other feature points on the first object in this current iteration, and these values, along with the target pixel value of feature point A, constitute the target pixel value of each feature point on the first object in this current iteration. This target pixel value is then used as the starting pixel value for the next processing step. This example calculates the iteration results of each feature point on the first object on each liquid crystal display layer to obtain the target pixel value of each feature point in the first object in this current iteration.

[0065] Optional, Figure 8 This is a flowchart illustrating another initial pixel value generation method provided in Embodiment 1 of this application, as shown below. Figure 8 As shown, the method further includes:

[0066] Step 801: Obtain the rendered pixel value corresponding to each feature point on the object to be displayed, and obtain the spatial coordinates of the corresponding pixel point on each layer of the liquid crystal display screen at the current display position for each feature point on the object to be displayed.

[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, perform iterative calculation of light field decomposition on the initial pixel value 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 the corresponding display pixel value on the corresponding pixel point on each layer of the LCD screen.

[0069] In a scenario example, once the initial pixel values ​​are obtained, and the first object is to be displayed on a multi-layer LCD screen, the first object is designated as the object to be displayed. At this point, the rendered pixel values ​​of each feature point on the object to be displayed are acquired, and the current display position of the multi-layer LCD screen is determined. Based on this display position, the corresponding pixel and its spatial coordinates on each layer of the LCD screen are determined. Based on the rendered pixel values ​​of each feature point on the object to be displayed and the spatial coordinates of the corresponding pixel on each layer of the LCD screen, light field decomposition is performed on the initial pixel values ​​to obtain an iterative result. This iterative result represents the display pixel value corresponding to the pixel on each layer of the LCD screen for each feature point on the object to be displayed. Finally, for each feature point on the object to be displayed, the corresponding display pixel value is displayed at the corresponding pixel on each layer of the LCD screen, thus completing the display of the entire object to be displayed.

[0070] This embodiment first obtains the starting pixel value for the current processing. 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, based on the rendered pixel value of each feature point on the first object and the starting pixel value for the current processing, iterative calculations are performed using a light field decomposition algorithm at multiple set display positions to obtain multiple iteration results for the current processing. The iteration number corresponding to each iteration result is recorded. If the iteration number corresponding to any of the multiple iteration results for the current processing is greater than a preset threshold, the average value of the multiple iteration results for the current processing is calculated to obtain the target pixel value for the current processing. The target pixel value for the current processing is then used as the starting pixel value for the next processing step, and the step of obtaining the starting pixel value for the current processing is repeated until the iteration number corresponding to the multiple iteration results for the current processing is not greater than the threshold. Then, the starting pixel value for the current processing is used as the initial pixel value. 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 computational load can be reduced, and the real-time performance of the display screen can be improved.

[0071] Example 2

[0072] Figure 9 This is a schematic diagram of the structure of an initial pixel value generation device provided in Embodiment 2 of this application, as shown below. Figure 9 As shown, the device includes:

[0073] The acquisition module 91 is used to acquire the starting pixel value in this processing, the starting pixel value including the 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 based on the rendered pixel value of each feature point on the first object and the starting pixel value under the current processing, to obtain multiple iteration results under the current processing, and to record the iteration number corresponding to each iteration result under the current processing.

[0075] The processing module 93 is used to calculate the average value of the multiple iteration results in the current processing if any iteration result has an iteration count greater than a preset threshold, obtain the target pixel value of the current processing, use the target pixel value of the current processing as the starting pixel value of the next processing, and execute the step of obtaining the starting pixel value of the current processing until the iteration count of the multiple iteration results in the current processing is not greater than the threshold, and then use the starting pixel value of the current processing as the initial pixel value.

[0076] In this embodiment, the execution entity is an initial pixel value generation device, which can be implemented by a computer program, such as application software; or it can be implemented as a medium storing the relevant computer program, such as a USB flash drive or cloud drive; or it can be implemented by a physical device that integrates or installs the relevant computer program, such as a chip.

[0077] Taking a first object as an example, the acquisition module 91 acquires that each feature point constituting the first object has a corresponding starting pixel value. The starting pixel value of each feature point is used to calculate the initial pixel value corresponding to that 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 three times the number of liquid crystal displays. For example, if the display screen is a 3-layer liquid crystal display, the starting pixel value is an array composed of 9 numbers, and these 9 numbers are arranged according to a first rule. Specifically, since the pixel value displays color information, and color information is composed of the three primary colors red, green, and blue, the array of starting pixel values ​​includes the channel values ​​corresponding to the three primary colors red, green, and blue that constitute the pixel value of each layer of the liquid crystal display. The first rule can be that in the array of starting pixel values, the first three numbers are the channel values ​​corresponding to the red, green, and blue primary colors of the pixel values ​​that constitute the first layer of the liquid crystal display screen; the middle three numbers are the channel values ​​corresponding to the red, green, and blue primary colors of the pixel values ​​that constitute the second layer of the liquid crystal display screen; and the last three numbers are the channel values ​​corresponding to the red, green, and blue primary colors of the pixel values ​​that constitute the third layer of the liquid crystal display screen. For example, if the starting pixel value of a certain 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, 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, 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 in different positions, the calculation module 92 performs light field decomposition on the initial pixel values ​​corresponding to the feature points on the first object. The iterative results obtained from the light field decomposition will vary depending on the position. The iterative results include the pixel value displayed on each liquid crystal display screen for each feature point on the first object. Before performing light field decomposition on the initial 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 use the rendered pixel value of the feature point as a reference to iteratively calculate the initial pixel value, so that the pixel value of the iterative result is close to the rendered pixel value. Therefore, when the display screen is located in different positions, the number of iterations obtained from the light field decomposition is inconsistent, and it is necessary to record the number of iterations corresponding to the display screen in different positions. A maximum iteration threshold for light field decomposition is set, and representative display screen positions are determined in space. If the number of iterations at 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 at any display screen position exceeds the maximum iteration threshold, the processing module 93 calculates the average value of the iteration results at all display screen positions and uses the average value as the new starting pixel value. The light field decomposition operation at different display screen positions is then repeated until the number of iterations at all display screen positions is less than the iteration threshold. Then, the starting pixel value of this light field decomposition is used as the initial pixel value corresponding to the feature point on the first object.

[0079] In this example, module 91 first acquires the starting pixel value for the current processing, which includes the display pixel value corresponding to each feature point on the first object on each layer of the liquid crystal display screen. Then, module 92 performs iterative calculations using a light field decomposition algorithm at multiple set display positions based on the rendered pixel value of each feature point on the first object and the starting pixel value for the current processing, obtaining multiple iteration results for the current processing and recording the iteration number corresponding to each iteration result. If any iteration result in the current processing has an iteration number greater than a preset threshold, module 93 calculates the average of the multiple iteration results for the current processing to obtain the target pixel value for the current processing, and uses the target pixel value for the current processing as the starting pixel value for the next processing, and executes the step of acquiring the starting pixel value for the current processing until the iteration number corresponding to the multiple iteration results for the current processing is not greater than the threshold. Then, module 93 uses the current starting pixel value for the current processing as the initial pixel value. Based on the method provided in this example, by calculating a suitable initial pixel value, the number of iterations of light field decomposition can be reduced, the amount of computation can be reduced, and thus the real-time performance of the object displayed on the display screen can be improved.

[0080] Optionally, the acquisition module 91 is specifically used to set the starting pixel value under this processing to a random value if this processing is the first processing;

[0081] The acquisition module 91 is further used to take the target pixel value of the previous processing as the starting pixel value of the current processing if the current processing is not the first processing.

[0082] Based on the above description and the scenario example, in calculating the initial pixel value corresponding to each feature point on the first object, it is necessary to repeatedly perform light field decomposition based on the current initial pixel value at each display position to obtain the iterative result for each display position until the number of iterations for each display position is less than the iteration threshold. Otherwise, the average value of the iteration results for each display position is calculated to obtain the target pixel value for this processing, and this target pixel value is used as the starting pixel value for the next processing. Therefore, the starting pixel value for the current processing can be the target pixel value corresponding to the previous processing. Thus, if the current processing is the first processing, i.e., there is no target pixel value corresponding to the previous processing, the acquisition module 91 can set the starting pixel value for the current processing to a random value. Otherwise, if the current processing is not the first processing, the acquisition module 91 sets the starting pixel value for the current processing to the target pixel value of the previous processing. This example reasonably determines the starting pixel value for the current processing based on whether the current processing is the first processing.

[0083] Optionally, the calculation module 92 is specifically used to calculate, for each display position, the corresponding pixel point of each feature point on the first object on each layer of the liquid crystal display screen when the display is located at that display position, based on the light constraint method.

[0084] The calculation module 92 is further used to determine the spatial coordinates of the corresponding pixel points of each feature point on the first object on each layer of liquid crystal display screen when the display is located at the position of the display screen, the screen size, the resolution of each layer of liquid crystal display screen and the relative distance between each layer of liquid crystal display screen;

[0085] The calculation module 92 is further configured 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 under this processing, as well as the spatial coordinates of the corresponding pixel points of 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, to obtain the iterative result when the display is located at the display position.

[0086] Using a scenario example, when the calculation module 92 calculates the iterative results corresponding to each display position using the light field decomposition algorithm, it determines the corresponding pixel on each layer of the liquid crystal display at each display position based on the light constraint method. Each feature point on the first object and its corresponding pixel on each layer of the liquid crystal display lie on a straight line. Then, the calculation module 92 determines the spatial coordinates of the corresponding pixel on each layer of the liquid crystal display based on the current display position, the size and resolution of each layer of the liquid crystal display, and the relative distance between each layer. For example... Figure 5 As shown, taking a feature point A on the first object as an example, the corresponding pixels A1, A2, and A3 on each layer of the liquid crystal display screen are determined based on 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. Each feature point on the first object has a rendered pixel value. 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 corresponding pixels on each layer of the liquid crystal display screen. That is, the displayed pixel value of each feature point on the first object on each layer of the liquid crystal display screen. For example, as... Figure 5 As shown, taking feature point A as an example, based on the rendered pixel value of feature point A, the starting pixel value corresponding to feature point A, and 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, Figure 10 This is a schematic diagram of another initial pixel value generation device provided in Embodiment 2 of this application, as shown below. Figure 10 As shown, the device further includes:

[0088] Setting module 101 is used to set the iteration error value;

[0089] The calculation module 92 is further configured 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 initial pixel value under this processing, as well as the spatial coordinates of the corresponding pixel points of 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, until the difference between the displayed pixel value of each feature point on each layer of the liquid crystal display screen and the rendered pixel value of the feature point is not greater than a preset error value.

[0090] The processing module 93 is further configured 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] Based on a scenario example, before obtaining the iteration result by using light field decomposition, the setting module 101 can first set an error value between the iteration result and the rendered pixel value, based on the rendered pixel value of each feature point and the starting pixel value corresponding to this processing, and then based on the spatial coordinates of the corresponding pixel on each layer of the LCD screen. The purpose of light field decomposition is to make the iteration result close to the rendered pixel value. However, based on current display technology, the obtained iteration result cannot be completely consistent with the rendered pixel value. After setting the error value, the calculation module 92 calculates using light field decomposition based on the rendered pixel value of 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 corresponding pixel on each layer of the LCD screen at each display position. When the difference between the calculated iteration result and the rendered pixel value of each feature point is not greater than the error value, the processing module 93 stops the iteration and uses the displayed pixel value of each feature point on each layer of the LCD screen at each display position as the iteration result at each display position. This example determines the condition for stopping the light field decomposition iteration calculation by setting the error value between the iteration result and the rendered pixel value at the feature point. This ensures that the obtained iteration result is close to the rendered pixel value at the feature point, thus guaranteeing the display effect of the screen.

[0092] Optionally, the iteration result includes the display pixel values ​​corresponding to each layer of the liquid crystal display screen;

[0093] The calculation module 92 is further used to calculate the average value of the display pixel value corresponding to the liquid crystal display screen in the multiple iteration results for each liquid crystal display screen, so as to obtain the average calculation result corresponding to each liquid crystal display screen.

[0094] The calculation module 92 is further configured 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 for this processing, wherein the target pixel value includes the average calculation result corresponding to each layer of liquid crystal display screen.

[0095] Referring to a scenario example, if the number of iterations at 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 at each display screen position, the average value of the iteration results for each display screen layer can be calculated separately. Then, the calculated average values ​​of the iteration results for each display screen layer are combined to form the average value of the iteration results for the feature points on the first object at each display screen position, which is the target pixel value processed in this operation. Figure 5As shown, when the calculation module 92 calculates the average value of the iteration results corresponding to feature point A at each display screen position for each layer of the display screen, for the first layer of the liquid crystal display screen, at each position, the display pixel value of feature point A on the first layer of the liquid crystal display screen includes: red channel value, green channel value and blue channel value. The average value of the red channel value of feature point A on the first layer of the liquid crystal display screen at each position is calculated to obtain the average value of the red channel value of feature point A on the first layer of the liquid crystal display screen. Similarly, this method can be used to obtain the average value of the green channel and the average value of the blue channel value of feature point A on the first layer of the liquid crystal display screen, thereby obtaining the iteration result of feature point A on the first layer of the liquid crystal display screen. This method obtains the iteration results of feature point A on the second and third liquid crystal display screens. The iteration results of feature point A on the first, second, and third liquid crystal display screens are then arranged to obtain the target pixel value of feature point A in this current iteration. This method is used to obtain the target pixel values ​​of other feature points on the first object in this current iteration, and these values, along with the target pixel value of feature point A, constitute the target pixel value of each feature point on the first object in this current iteration. This target pixel value is then used as the starting pixel value for the next processing step. In this example, the calculation module 92 obtains the target pixel value of each feature point on the first object in this current iteration by calculating the iteration results of each feature point on the first object on each liquid crystal display screen.

[0096] Optionally, the acquisition module 91 is further configured 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 point 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 the corresponding display pixel value on the corresponding pixel point on each layer of the liquid crystal display screen.

[0099] In a scenario example, once the initial pixel values ​​are obtained, and the first object is to be displayed on a multi-layer LCD screen, the first object is designated as the object to be displayed. At this time, the acquisition module 91 acquires the rendered pixel values ​​of each feature point on the object to be displayed and determines the current display position of the multi-layer LCD screen. Based on this display position, it determines the corresponding pixel and its spatial coordinates on each layer of the LCD screen. The processing module 93 performs light field decomposition on the initial pixel values ​​based on the rendered pixel values ​​of each feature point on the object to be displayed and the spatial coordinates of the corresponding pixel on each layer of the LCD screen, obtaining an iterative result. This iterative result represents the display pixel value corresponding to the pixel on each layer of the LCD screen for each feature point on the object to be displayed. Finally, the processing module 93 displays the corresponding display pixel value at the corresponding pixel on each layer of the LCD screen for each feature point on the object to be displayed, thus completing the display of the entire object to be displayed.

[0100] In this embodiment, the acquisition module first acquires the starting pixel value for the current processing. 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 performs iterative calculations using a light field decomposition algorithm at multiple set display positions based on the rendered pixel value of each feature point on the first object and the starting pixel value for the current processing. This yields multiple iteration results for the current processing, and the iteration number corresponding to each iteration result is recorded. If any iteration result in the current processing has an iteration number greater than a preset threshold, the processing module calculates the average of the multiple iteration results to obtain the target pixel value for the current processing. This target pixel value is then used as the starting pixel value for the next processing iteration, and the step of acquiring the starting pixel value for the current processing is repeated until the iteration number corresponding to all multiple iteration results in the current processing is no greater than the threshold. The processing module then uses the current starting pixel value as the initial pixel value. 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, thus reducing the computational load and improving the real-time performance of the object displayed on the screen.

[0101] Example 3

[0102] Figure 11 This is a schematic flowchart illustrating the operation of an initial pixel value generation system provided in Embodiment 3 of this application. Figure 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. Then, the current position of the multilayer liquid crystal display is obtained. Based on the light constraint method, the pixel point and its spatial coordinates corresponding to each feature point on the first object on each layer of the liquid crystal display are obtained. Based on the initial pixel value corresponding to each feature point on the first object, light field decomposition is performed to obtain the display pixel value of each feature point on each layer of the liquid crystal display, thereby realizing the display of the first object on the multilayer liquid crystal display.

[0103] Figure 12 This is a schematic diagram of a process for calculating initial pixel values ​​provided in Embodiment 3 of this application, as shown below. Figure 12 As shown, firstly, pixel rendering is performed on each feature point on the first object to obtain the rendered pixel value of each feature point. Then, position sampling is performed on the multilayer liquid crystal display to obtain the current display screen position. The initial value corresponding to each feature point is obtained at this time, and the spatial coordinates of the corresponding pixel point on each layer of the liquid crystal display are obtained through ray constraint. The iteration result corresponding to the current display screen position is obtained through light field decomposition, and the iteration number corresponding to the current display screen position is recorded. The position of the multilayer liquid crystal display is adjusted M times, and the iteration result and iteration number corresponding to each feature point at different display positions are obtained through the above method. The average value of the iteration result corresponding to different display positions is calculated. The iteration number is used to determine whether the iteration number is less than the set iteration threshold. If the iteration number corresponding to each display position is less than the iteration threshold, the initial pixel value corresponding to each feature point is used as the initial pixel value corresponding to each feature point. If the number of iterations at any display position is not less than the iteration threshold, the average value of the current iteration result is updated as the starting pixel value for each feature point in the next round, and the above steps for calculating the initial pixel value are repeated until the number of iterations at any display position is less than the iteration threshold. Based on the method provided in this embodiment, by calculating appropriate initial pixel values, the number of iterations for light field decomposition can be reduced, the computational load decreased, and thus the real-time performance of the displayed object can be improved.

[0104] Example 4

[0105] Figure 13 This is a schematic diagram of the structure of an electronic device provided in Embodiment 4 of this application, as shown below. Figure 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, memory 292, and communication interface 293 can communicate with each other via the bus 294. The communication interface 293 can be used for information transmission. The processor 291 can call logical instructions stored in the memory 292 to execute the method described in Embodiment 1.

[0107] Furthermore, the logic instructions in the aforementioned memory 292 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium.

[0108] The memory 292, as a computer-readable storage medium, can be used to store software programs and computer-executable programs, such as program instructions / modules corresponding to the methods in the embodiments of this application. The processor 291 executes functional applications and data processing by running the software programs, instructions, and modules stored in the memory 292, that is, implementing the method of Embodiment 1 described above.

[0109] The memory 292 may include a program storage area and a data storage area. The program storage area may store the operating system and application programs required for at least one function; the data storage area may store data created based on the use of the terminal device. Furthermore, the memory 292 may include high-speed random access memory and may also include non-volatile memory.

[0110] This application provides a non-transitory computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the methods described in the foregoing embodiments.

[0111] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the invention filed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not claimed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this application are indicated by the following claims.

[0112] The foregoing can be better understood in accordance with the following terms:

[0113] Clause A1. A method for generating initial pixel values, comprising:

[0114] Obtain the starting pixel value for this processing, which includes the display pixel value corresponding to each feature point on the first object on each layer of the liquid crystal display screen;

[0115] Based on the rendered pixel value of 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 iteration number corresponding to each iterative result under this processing is recorded.

[0116] If any iteration result in the current processing has an iteration count greater than a preset threshold, the average value of the multiple iteration results in the current processing is calculated to obtain the target pixel value for the current processing. The target pixel value for the current processing is then used as the starting pixel value for the next processing, and the step of obtaining the starting pixel value for the current processing is executed until the iteration counts corresponding to the multiple iteration results in the current processing are all less than the threshold. Then, the starting pixel value for the current processing is used as the initial pixel value.

[0117] Clause A2. According to the method described in Clause A1, obtaining the starting pixel value for this processing includes:

[0118] If this is the first processing step, then the starting pixel value for this processing step is set to a random value;

[0119] If this processing is not the first processing, then the target pixel value of the previous processing will be used as the starting pixel value for this processing.

[0120] Clause A3. According to the method described in Clause A1, the step of iteratively calculating using a light field decomposition algorithm at multiple set display positions based on the rendered pixel value of each feature point on the first object and the starting pixel value under this processing, to obtain multiple iterative results under this processing, including:

[0121] For each display position, based on the 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 that display position are calculated.

[0122] Based on the position of the display screen, screen size, resolution of each layer of liquid crystal display screen and relative distance between each layer of liquid crystal display screen, when the display screen is located at the position of the display screen, the spatial coordinates of the corresponding pixel point on each layer of liquid crystal display screen for each feature point on the first object are determined.

[0123] Based on the rendered pixel value of each feature point on the first object and the starting pixel value under this processing, as well as the spatial coordinates of the corresponding pixel points of 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 light field decomposition algorithm is used to perform iterative calculations to obtain the iterative result when the display is located at the display position.

[0124] Clause A4. The method described in Clause A3 further includes:

[0125] Set the iteration error value;

[0126] The iterative calculation, based on the rendered pixel values ​​of each feature point on the first object, the initial pixel values ​​in this processing, and the spatial coordinates of the corresponding pixel points on each layer of the liquid crystal display screen for each feature point on the first object when the display is located at the display position, employs a light field decomposition algorithm to obtain the iterative result when the display is located at the display position, including:

[0127] Based on the rendered pixel value of each feature point on the first object and the starting pixel value under this processing, as well as the spatial coordinates of the corresponding pixel points of 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 light field decomposition algorithm is used to perform iterative calculation until the difference between the displayed pixel value of each feature point on each layer of the liquid crystal display screen and the rendered pixel value of the feature point is not greater than the preset error value.

[0128] The display pixel value of each feature point obtained in the current iteration on each layer of the liquid crystal display screen is taken as the iteration result at the display position.

[0129] Clause A5. According to the method described in Clause A1, the iteration result includes the display pixel value corresponding to each layer of the liquid crystal display screen; the calculation of the average of multiple iteration results under this processing to obtain the target pixel value of this processing includes:

[0130] For each liquid crystal display screen, the average value of the display pixel value corresponding to the liquid crystal display screen in the multiple iteration results is calculated to obtain the average calculation result corresponding to each 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 for this processing. The target pixel value includes the average calculation result corresponding to each layer of the liquid crystal display screen.

[0132] Clause A6. The method described according to any one of Clauses A1-A5, the method further comprising:

[0133] Obtain the rendered pixel value corresponding to each feature point on the object to be displayed, and obtain the spatial coordinates of the corresponding pixel point on each layer of the liquid crystal display screen at the current display position for each feature point on the object to be displayed.

[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 subjected to iterative calculation of 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 value is displayed on each layer of the LCD screen.

[0136] Clause A7. An initial pixel value generation apparatus, comprising:

[0137] The acquisition module is used to acquire the starting pixel value for this processing, wherein 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;

[0138] The calculation module is used to perform iterative calculations using a light field decomposition algorithm at multiple set display positions based on the rendered pixel value of each feature point on the first object and the starting pixel value under this processing, to obtain multiple iteration results under this processing, and to record the iteration number corresponding to each iteration result under this processing.

[0139] The processing module is configured to calculate the average value of the multiple iteration results in the current processing if any iteration result has an iteration count greater than a preset threshold, thereby obtaining the target pixel value for the current processing. The target pixel value is then used as the starting pixel value for the next processing step, and the step of obtaining the starting pixel value for the current processing is executed until the iteration counts corresponding to the multiple iteration results in the current processing are all less than the threshold. In this case, the starting pixel value for the current processing is used as the initial pixel value.

[0140] Clause A8. The apparatus as described in Clause A7,

[0141] The acquisition module is specifically used to set the starting pixel value under this processing to a random value if this processing is the first processing.

[0142] The acquisition module is further configured to, if the current processing is not the first processing, use the target pixel value of the previous processing as the starting pixel value for the current processing.

[0143] Clause A9. The apparatus as described in Clause A7,

[0144] The calculation module is specifically used to calculate, for each display position, the corresponding pixel point of each feature point on the first object on each layer of the liquid crystal display screen when the display is located at that display position, based on the light constraint method.

[0145] The calculation module is further configured to determine, based on the position of the display screen, the screen size, the resolution of each layer of liquid crystal display screen, and the relative distance between each layer of liquid crystal display screen, the spatial coordinates of each feature point on the first object on each layer of liquid crystal display screen when the display screen is located at the position of the display screen.

[0146] The calculation module is further configured 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 under this processing, as well as the spatial coordinates of the corresponding pixel points of 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, to obtain the iterative result when the display is located at the display position.

[0147] Clause A10. The apparatus according to Clause A7, further comprising:

[0148] The setting module is used to set the iteration error value;

[0149] The calculation module is further configured to perform iterative calculations using a light field decomposition algorithm based on the rendered pixel value of each feature point on the first object, the initial pixel value under this processing, and the spatial coordinates of the corresponding pixel points of 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, until the difference between the currently iterated display pixel value of each feature point on each layer of the liquid crystal display screen and the rendered pixel value of the feature point is not greater than a preset error value.

[0150] The processing module is further configured 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 apparatus according to Clause A7, wherein the iteration result includes the display pixel value 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 value corresponding to the liquid crystal display screen in the multiple iteration results for each liquid crystal display screen, so as to obtain the average calculation result corresponding to each liquid crystal display screen.

[0153] The calculation module is further configured 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 for this processing. The target pixel value includes the average calculation result corresponding to each layer of liquid crystal display screen.

[0154] Clause A12. The apparatus according to any one of clauses A7-A11,

[0155] The acquisition module is also used to acquire the rendered pixel value corresponding to each feature point on the object to be displayed, and to acquire the spatial coordinates of the pixel point 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 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.

[0157] The processing module is also used to display the corresponding display pixel value on the corresponding pixel point on each layer of the liquid crystal display screen.

[0158] Clause A13. An electronic device comprising: a processor, and a memory communicatively connected to said processor;

[0159] The memory stores computer-executed instructions;

[0160] The processor executes computer execution instructions stored in the memory to implement the method as described in any one of clauses A1-A6.

[0161] Clause A14. A computer-readable storage medium storing computer-executable instructions that, when executed by a processor, are used to implement the method as described in any one of Clauses A1-A6.

[0162] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.

Claims

1. A method for generating initial pixel values, characterized in that, include: Obtain the starting pixel value for this processing, which includes the display pixel value corresponding to each feature point on the first object on each layer of the liquid crystal display screen; Based on the rendered pixel value of 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 iteration number corresponding to each iterative result under this processing is recorded. If any iteration result in the current processing has an iteration count greater than a preset threshold, the average value of the multiple iteration results in the current processing is calculated to obtain the target pixel value for the current processing. The target pixel value for the current processing is then used as the starting pixel value for the next processing, and the step of obtaining the starting pixel value for the current processing is executed until the iteration counts corresponding to the multiple iteration results in the current processing are all less than the threshold. Then, the starting pixel value for 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 for this processing includes: If this is the first processing step, then the starting pixel value for this processing step is set to a random value; If this processing is not the first processing, then the target pixel value of the previous processing will be used as the starting pixel value for this processing.

3. The method according to claim 1, characterized in that, The process involves iteratively calculating using a light field decomposition algorithm at multiple set display positions based on the rendered pixel values ​​of each feature point on the first object and the initial pixel values ​​under this processing, to obtain multiple iterative results under this processing, including: For each display position, based on the 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 that display position are calculated. Based on the position of the display screen, screen size, resolution of each layer of liquid crystal display screen and relative distance between each layer of liquid crystal display screen, when the display screen is located at the position of the display screen, the spatial coordinates of the corresponding pixel point on each layer of liquid crystal display screen for each feature point on the first object are determined. Based on the rendered pixel value of each feature point on the first object and the starting pixel value under this processing, as well as the spatial coordinates of the corresponding pixel points of 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 light field decomposition algorithm is used to perform iterative calculations 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 includes: Set the iteration error value; The iterative calculation, based on the rendered pixel values ​​of each feature point on the first object, the initial pixel values ​​in this processing, and the spatial coordinates of the corresponding pixel points on each layer of the liquid crystal display screen for each feature point on the first object when the display is located at the display position, employs a light field decomposition algorithm to obtain the iterative result when the display is located at the display position, including: Based on the rendered pixel value of each feature point on the first object and the starting pixel value under this processing, as well as the spatial coordinates of the corresponding pixel points of 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 light field decomposition algorithm is used to perform iterative calculation until the difference between the displayed pixel value of each feature point on each layer of the liquid crystal display screen and the rendered pixel value of the feature point is not greater than the preset error value. The display pixel value of each feature point obtained in the current iteration on each layer of the liquid crystal display screen is taken 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 liquid crystal display screen, the average value of the display pixel value corresponding to the liquid crystal display screen in the multiple iteration results is calculated to obtain the average calculation result corresponding to each 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 for this processing. The target pixel value includes the average calculation result corresponding to each layer of the liquid crystal display screen.

6. The method according to any one of claims 1-5, characterized in that, The method further includes: Obtain the rendered pixel value corresponding to each feature point on the object to be displayed, and obtain the spatial coordinates of the corresponding pixel point on each layer of the liquid crystal display screen at the current display position for each feature point on the object to be displayed. 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 subjected to iterative calculation of 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 value is displayed on each layer of the LCD screen.

7. An initial pixel value generation device, characterized in that, include: The acquisition module is used to acquire the starting pixel value for this processing, wherein 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; The calculation module is used to perform iterative calculations using a light field decomposition algorithm at multiple set display positions based on the rendered pixel value of each feature point on the first object and the starting pixel value under this processing, to obtain multiple iteration results under this processing, and to record the iteration number corresponding to each iteration result under this processing. The processing module is configured to calculate the average value of the multiple iteration results in the current processing if any iteration result has an iteration count greater than a preset threshold, thereby obtaining the target pixel value for the current processing. The target pixel value is then used as the starting pixel value for the next processing step, and the step of obtaining the starting pixel value for the current processing is executed until the iteration counts corresponding to the multiple iteration results in the current processing are all less than the threshold. In this case, the starting pixel value for the current processing is used as the initial pixel value.

8. The apparatus according to claim 7, characterized in that, The acquisition module is specifically used to set the starting pixel value under this processing to a random value if this processing is the first processing. The acquisition module is further configured to, if the current processing is not the first processing, use the target pixel value of the previous processing as the starting pixel value for the current processing.

9. The apparatus according to claim 7, characterized in that, The calculation module is specifically used to calculate, for each display position, the corresponding pixel point of each feature point on the first object on each layer of the liquid crystal display screen when the display is located at that display position, based on the light constraint method. The calculation module is further configured to determine, based on the position of the display screen, the screen size, the resolution of each layer of liquid crystal display screen, and the relative distance between each layer of liquid crystal display screen, the spatial coordinates of each feature point on the first object on each layer of liquid crystal display screen when the display screen is located at the position of the display screen. The calculation module is further configured 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 under this processing, as well as the spatial coordinates of the corresponding pixel points of 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, to obtain the iterative result when the display is located at the display position.

10. The apparatus according to claim 7, characterized in that, The device further includes: The setting module is used to set the iteration error value; The calculation module is further configured to perform iterative calculations using a light field decomposition algorithm based on the rendered pixel value of each feature point on the first object, the initial pixel value under this processing, and the spatial coordinates of the corresponding pixel points of 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, until the difference between the currently iterated display pixel value of each feature point on each layer of the liquid crystal display screen and the rendered pixel value of the feature point is not greater than a preset error value. The processing module is further configured 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 apparatus according to claim 7, characterized in that, The iteration results include the display pixel values ​​corresponding to each layer of the liquid crystal display screen; The calculation module is further configured to calculate the average value of the display pixel value corresponding to the liquid crystal display screen in the multiple iteration results for each liquid crystal display screen, so as to obtain the average calculation result corresponding to each liquid crystal display screen. The calculation module is further configured 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 for this processing. The target pixel value includes the average calculation result corresponding to each layer of liquid crystal display screen.

12. The apparatus according to any one of claims 7-11, characterized in that, The acquisition module is also used to acquire the rendered pixel value corresponding to each feature point on the object to be displayed, and to acquire the spatial coordinates of the pixel point 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 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. The processing module is also used to display the corresponding display pixel value on the corresponding pixel point 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-executed instructions; The processor executes computer execution instructions stored in the memory to implement the method as described in any one of claims 1-6.

14. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method as described in any one of claims 1-6.

Citation Information

Patent Citations

  • Data processing method and device and storage medium

    CN116011606A

  • Hologram Calculation

    US20230064690A1