A light field 3D sheet source generation method based on monocular image

By constructing a 3D spatial data set and a ray tracing model, and combining ray intersection and color sampling, the accuracy and efficiency issues of generating light field 3D source material from monocular images were solved, and the direct generation of light field 3D source material adapted to light field 3D display parameters was realized.

CN123160844APending Publication Date: 2026-11-24BEIHANG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611465146.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-20
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing technologies, when only a monocular image is available, suffer from inaccurate spatial structure restoration in the generation of light field 3D source material due to depth estimation errors. Furthermore, insufficient sampling precision leads to color discontinuities and coding deviations. There is a lack of a complete technical process that combines the color information and depth estimation information of the monocular image with the light field 3D display parameters.

Method used

By constructing a 3D spatial data set, establishing a ray tracing model, performing ray intersection and color sampling, assigning sub-pixel colors, and generating a light field 3D source, including steps such as depth prediction, ray tracing, and color interpolation, the direct generation of a monocular image into a light field 3D source is achieved.

Benefits of technology

It reduces the complexity of generating light field 3D source material, enabling the direct generation of light field 3D source material adapted to light field 3D display parameters from monocular images, thus improving generation efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123160844A_ABST
    Figure CN123160844A_ABST
Patent Text Reader

Abstract

This invention proposes a method for generating light field 3D source content based on monocular images, comprising the following steps: constructing a 3D spatial data set, acquiring a monocular image and performing depth prediction, mapping the monocular image and corresponding depth information to 3D spatial coordinates based on the zero-depth plane and a preset actual depth range; establishing a ray tracing model, determining the coordinates of the 2D display panel, lens array, and reference plane based on light field 3D display parameters, and generating inverse rays corresponding to the sub-pixels of the 2D display panel; ray intersection and color sampling, performing ray intersection based on depth residuals and secant approximation in the 3D spatial data set to obtain the intersection point coordinates and corresponding color values; sub-pixel color assignment, assigning color values ​​according to the correspondence between sub-pixels and the color channels of the 2D display panel, and outputting the light field 3D source content. This invention unifies the above steps into a light field 3D source content generation process, realizing an integrated conversion from monocular images to light field 3D source content.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of 3D display technology, and in particular to a method for generating 3D video sources based on monocular images. Background Technology

[0002] Light field 3D display uses a combination of 2D display panels and optical components such as lens arrays to optically reconstruct 3D scenes, allowing the human eye to perceive 3D images. The light field 3D source material displayed on the 2D display panel contains spatial and angular information about the scene, which is one of the foundations for achieving the 3D display effect.

[0003] There are two main methods for acquiring light field 3D source material: one is for real-world scenes, using optical acquisition devices such as camera arrays to acquire images from multiple viewpoints; the other is for virtual scenes, based on 3D models, using programmable rendering pipelines such as rasterization and ray tracing for rendering. These methods typically require dedicated hardware or a complete 3D model as input, resulting in high acquisition and rendering costs. To lower the barrier to entry for acquiring light field 3D source material, methods have emerged in recent years that use monocular images as input, obtain depth information through depth estimation, and further represent the 3D scene by combining image color information to generate light field 3D source material, providing a new technical path for its generation.

[0004] However, when only monocular images are available, although depth images can be obtained through depth estimation, depth errors can lead to inaccurate spatial structure reconstruction when reconstructing light field information based on depth estimation. Furthermore, insufficient sampling accuracy during ray sampling and light field 3D source generation can result in color discontinuities and encoding biases. In addition, existing methods have not yet established a complete technical process for combining color information and depth estimation information from monocular images with light field 3D display parameters, and directly generating light field 3D sources based on ray tracing models. Summary of the Invention

[0005] The purpose of this invention is to propose a method for generating light field 3D source material based on monocular images.

[0006] The method includes the following steps:

[0007] Constructing a 3D spatial dataset;

[0008] Establish a ray tracing model;

[0009] Ray intersection and color sampling;

[0010] Assign color values ​​to subpixels and output 3D light field source material.

[0011] The construction of the 3D spatial data set includes the following steps:

[0012] Acquire a monocular image, input the monocular image into a depth prediction network, and obtain a depth image corresponding to the monocular image;

[0013] Set the Z-axis and the zero-depth plane, and further set the preset actual depth range of the 3D scene in the Z-axis direction;

[0014] The 2D coordinates of pixels in the monocular image are mapped to the depth values ​​of the corresponding pixels in the depth image to form 3D spatial coordinates, thereby constructing a 3D spatial data set to represent the 3D scene.

[0015] In some examples, the in-screen depth boundary and out-of-screen depth boundary of the 3D scene relative to the zero-depth plane are determined based on the position of the zero-depth plane and the preset actual depth range.

[0016] The establishment of the ray tracing model includes the following steps:

[0017] Establish a ray tracing coordinate system with the center of the 2D display panel as the origin. The X-axis and Y-axis are along the horizontal and vertical directions of the 2D display panel, respectively, and the Z-axis is perpendicular to the 2D display panel and points to the viewing side.

[0018] Define the 2D display panel plane, lens array plane, and reference plane;

[0019] Obtain the light field 3D display parameters, and set the Z-axis coordinates of the lens array plane and the reference plane relative to the 2D display panel plane;

[0020] For each sub-pixel of the 2D display panel, the coordinates of the corresponding lens center are determined based on the coordinates of the sub-pixel on the 2D display panel and the parameters of the lens array.

[0021] Calculate the coordinates of the ray from the sub-pixel through the center of the corresponding lens to the reference plane, generate the starting point and direction of the reverse ray from the ray coordinates, and establish a ray tracing model that includes the starting point, propagation direction and intersection position of the ray.

[0022] In some examples, the light field 3D display parameters include at least one of the following: resolution of the 2D display panel, pixel pitch, subpixel size, subpixel arrangement, lens array pitch, lens array tilt angle, and distance between the 2D display panel and the lens array.

[0023] In some examples, determining the coordinates of the corresponding lens center includes: determining the coordinates of each sub-pixel on the 2D display panel, performing coordinate transformation on the coordinates of the sub-pixels according to the lens array tilt angle, and determining the corresponding lens center coordinates according to the transformed coordinates and the lens array pitch.

[0024] The intersection of the light rays and color sampling include the following steps:

[0025] The backlight is emitted from the reference plane toward the 2D display panel, and the intersection of the backlight with the surface of the 3D spatial data set is obtained by performing ray intersection based on depth residual and secant approximation in the 3D spatial data set.

[0026] The intersection point coordinates are mapped to the pixel coordinates of the monocular image, and the color value corresponding to the intersection point coordinates is obtained by spatial interpolation.

[0027] In some examples, the intersection of rays based on depth residuals and secant approximations includes:

[0028] The backlight moves in steps with a preset step size parameter, and at each step position, the reference depth of the scene unit corresponding to the 3D spatial data set is read.

[0029] Calculate the depth residual between the propagation depth of the reverse ray at the current step position and the reference depth: if the depth residual of two consecutive step positions does not cross the sign, the ray continues to step forward; if the depth residual of two consecutive step positions crosses the sign, the step interval containing the intersection point is locked.

[0030] The secant approximation is performed based on the depth residuals at both ends of the step interval. The intersection step size when the depth residuals approach zero is calculated, and the intersection coordinates are determined based on the intersection step size.

[0031] In some examples, the spatial interpolation method includes any one of bilinear interpolation, bicubic interpolation, or other spatial interpolation methods.

[0032] Assigning color values ​​to sub-pixels and outputting 3D light field source content includes the following steps:

[0033] Based on the intersection color value corresponding to the sub-pixel, select a color component from the intersection colors that corresponds to the color type of the sub-pixel, and assign the color component to the sub-pixel;

[0034] After assigning color values ​​to each sub-pixel, output the light field 3D source. Attached Figure Description

[0035] Appendix Figure 1 This is a flowchart of a method for generating light field 3D video sources based on monocular images, according to an embodiment of the present invention.

[0036] Appendix Figure 2 This is a schematic diagram illustrating the construction of a 3D spatial data set according to an embodiment of the present invention;

[0037] Appendix Figure 3This is a schematic diagram illustrating the establishment of a ray tracing model according to an embodiment of the present invention;

[0038] Appendix Figure 4 This is a flowchart illustrating ray intersection based on depth residual and secant approximation according to an embodiment of the present invention.

[0039] Appendix Figure 5 This is a schematic diagram of a 3D light field source generated according to an embodiment of the present invention.

[0040] Figure labeling: 201 Monocular image, 202 Depth image, 203 Z-axis, 204 Zero depth plane, 205 In-screen depth boundary, 206 Out-of-screen depth boundary, 301 2D display panel, 302 Lens array, 303 Reference plane, 304 Subpixel, 305 Ray coordinate.

[0041] It should be understood that the accompanying drawings are only used to illustrate the technical solutions of the present invention and do not constitute a limitation on the size, proportion or positional relationship of the components. Detailed Implementation

[0042] The embodiments of the present invention will be further described below with reference to the accompanying drawings. The following embodiments are used to explain the present invention and should not be construed as limiting the scope of protection of the present invention; equivalent substitutions or conventional modifications made by those skilled in the art without departing from the concept of the present invention should all fall within the scope of protection of the present invention.

[0043] like Figure 1 As shown, this embodiment provides a method for generating 3D video sources based on monocular images, including:

[0044] Step S1: Construct a 3D spatial data set;

[0045] Step S2: Build a ray tracing model;

[0046] Step S3: Intersection of rays and color sampling;

[0047] Step S4: Assign color values ​​to sub-pixels and output 3D light field source.

[0048] Step S1: Construct a 3D spatial data set. Figure 2 A schematic diagram illustrating the construction of a 3D spatial dataset according to an embodiment of the present invention is shown. A monocular image 201 is acquired and input into a depth prediction network to obtain a corresponding depth image 202. The depth prediction network can be a monocular depth estimation network, whose output depth image 202 has the same resolution as the monocular image 201 or the same resolution after resampling, which is 7680×4320 pixels.

[0049] A Z-axis 203 and a zero-depth plane 204 are defined, and a preset actual depth range L for the 3D scene in the Z-axis direction is further defined. The pixel coordinates in the monocular image 201 are denoted as (x, y), and the depth values ​​of the corresponding pixels in the depth image 202 are denoted as D(x, y). Based on the zero-depth plane 204 and the preset actual depth range L, D(x, y) is mapped to the Z coordinate in 3D space, and (x, y) is mapped to the X and Y coordinates in 3D space, thereby obtaining 3D space points (X, Y, Z). The 3D space data set is composed of all or selected 3D space points corresponding to pixels.

[0050] Specifically, the depth value range of the depth image 202 is denoted as [D]. min D max The depth value corresponding to the zero-depth plane 204 is denoted as D0, and the normalized position α of D0 within the depth value range can be expressed as:

[0051]

[0052] Based on the normalized position α and the preset actual depth range L, the in-screen depth boundary 205 and the out-of-screen depth boundary 206 are respectively represented as follows:

[0053]

[0054] Z in With an in-screen depth boundary of 205, Z out The out-of-screen depth boundary is 206.

[0055] By adjusting the depth value D0 corresponding to the zero-depth plane 204 or the preset actual depth range L of the 3D scene in the Z-axis direction, the in-screen depth boundary 205 and out-of-screen depth boundary 206 of the 3D scene relative to the zero-depth plane 204 are changed. In some embodiments, when D min = 0、D max When α = 65535, D0 = 20000 and L = 200 mm, α is approximately 0.305, the in-screen depth boundary 205 is approximately −61 mm, and the out-of-screen depth boundary 206 is approximately 139 mm.

[0056] Step S2: Establish a ray tracing model. Figure 3 A schematic diagram illustrating the establishment of a ray tracing model according to an embodiment of the present invention is shown. A ray tracing coordinate system is established, with the center of the 2D display panel 301 as the origin. The X-axis and Y-axis are along the horizontal and vertical directions of the 2D display panel 301, respectively, and the Z-axis is perpendicular to the 2D display panel 301 and points towards the viewing side. The plane of the 2D display panel 301, the plane of the lens array 302, and the reference plane 303 are defined.

[0057] Obtain light field 3D display parameters. In some embodiments, the light field 3D display parameters include the resolution, pixel pitch, subpixel size, and subpixel arrangement of the 2D display panel 301, the pitch and tilt angle of the lens array 302, and the distance between the 2D display panel 301 and the lens array 302.

[0058] Based on the light field 3D display parameters, the Z-axis coordinates of the lens array 302 plane and the reference plane 303 relative to the 2D display panel 301 plane are set. In some embodiments, the 2D display panel 301 is set at Z = 0, the lens array 302 is set at Z = 1 mm, and the reference plane 303 is set at Z = 1200 mm.

[0059] For each sub-pixel 304 of the 2D display panel 301, the coordinates of the corresponding lens center are determined based on its coordinates on the 2D display panel 301 and the parameters of the lens array 302.

[0060] In some embodiments, determining the coordinates of the corresponding lens center includes: determining the coordinates of the sub-pixel 304 in the coordinate system of the 2D display panel 301, denoted as (x0, y0); and transforming the coordinates (x0, y0) of the sub-pixel 304 using a two-dimensional rotation matrix according to the tilt angle θ of the lens array 302 to obtain the coordinates (x1, y1) in the coordinate system of the lens array 302. The coordinate transformation relationship is as follows:

[0061]

[0062] Based on the transformed coordinates (x1, y1) and the pitch p of the lens array 302, determine the lens center coordinates (x1, y1) corresponding to the sub-pixel 304. c , y c ):

[0063]

[0064] Calculate the ray coordinates 305 from the sub-pixel 304 through the lens center to the reference plane 303. Take the ray coordinates 305 on the reference plane 303 as the starting point of the reverse ray, and take the unit vector pointing from the ray coordinates 305 to the sub-pixel 304 as the reverse ray direction, to establish a ray tracing model that includes the starting point, propagation direction, and intersection position of the ray.

[0065] Step S3, Ray Intersection and Color Sampling. A reverse ray is emitted from the reference plane 303 towards the 2D display panel 301. Ray intersection is performed in the 3D spatial data set based on depth residual and secant approximation to obtain the coordinates of the intersection point between the reverse ray and the surface of the 3D spatial data set. Figure 4 A flowchart illustrating ray intersection based on depth residual and secant approximation according to an embodiment of the present invention is shown.

[0066] Step S301: The reverse light is emitted from the reference plane 303 towards the 2D display panel 301, and a stepping cycle is performed along the direction of the reverse light with a preset step size parameter. The reverse light can be represented as:

[0067]

[0068] Where O is the starting point of the retrograde ray, d is the direction of the retrograde ray, t is the step size parameter, and r(t) is the 3D coordinate of the retrograde ray at step size t.

[0069] Step S302: Map the 3D coordinates r(t) of the reverse light in the X and Y directions to the scene unit corresponding to the 3D spatial data set to obtain the corresponding image coordinates (u(t), v(t)).

[0070] Step S303: Read the reference depth Z of the scene unit. geo (u(t), v(t)), the depth residual E(t) between the propagation depth of the retrograde ray at the current step position and the reference depth is expressed as:

[0071]

[0072] Where, r z (t) is the Z-coordinate of r(t).

[0073] Step S304: The reverse ray advances in a preset step size Δt, and it is detected whether the depth residual E(t) after two consecutive steps crosses sign. If the depth residual E(t) at the two consecutive step positions crosses sign... i−1 ), E(t) i If no sign crossing occurs, it is determined that the ray has not passed through the scene surface corresponding to the 3D spatial data set. The ray moves forward by a preset step size Δt and returns to step S301; if two consecutive steps to position t occur... i−1 and t i Satisfy E(t) i−1 )>0 and E(t) iIf )≤0, then it is determined that the light ray passes through the scene surface corresponding to the 3D spatial data set, and the step interval [t] is locked. i−1 , t i ]. t i−1 t represents the step size of the last step of the light ray before it penetrates the surface of the 3D scene. i E(t) represents the step size value of the step position after the light just penetrates the surface of the 3D scene. i−1 ) indicates the step size at t i−1 Depth residual at time E(t) i ) indicates the step size at t i The depth residual at that time.

[0074] Step S305: After locking the step interval, calculate the local discrete gradient of the depth residual within the step interval. :

[0075]

[0076] Step S306, based on the local discrete gradient By approximating the intersection step size with a secant, the intersection step size t is obtained when the depth residual approaches zero. * :

[0077]

[0078] Step S307, set the intersection step size t * Substituting the light ray equation, we obtain the intersection point coordinates r(t). * ):

[0079]

[0080] Step S308, set the intersection point coordinates r(t) * The coordinates in the X and Y directions are mapped to the pixel coordinates of the monocular image 201, and the intersection point coordinates r(t) are obtained using bilinear interpolation, bicubic interpolation, or other spatial interpolation methods. * The corresponding color value C(u) * , v * ).

[0081] Step S4: Assign color values ​​to sub-pixels and output the 3D light field source. Based on the intersection color value C(u) corresponding to sub-pixel 304... * , v *The color component corresponding to the color type of the sub-pixel 304 is selected from the intersection color values, and the color component is assigned to the sub-pixel 304; after completing the color assignment of each sub-pixel, the output is as follows. Figure 5 The light field 3D source image is shown.

[0082] In some embodiments, the construction of the 3D spatial data set, the generation of inverse rays, the intersection of rays, the color sampling, and the assignment of sub-pixel colors can be executed in parallel on the GPU, with each sub-pixel corresponding to a rendering instance, thereby improving the generation efficiency of light field 3D source material.

[0083] Compared with the prior art, the present invention has at least the following beneficial effects: The present invention unifies monocular depth estimation, 3D spatial data set construction, ray tracing model establishment, ray intersection and sub-pixel color assignment into the light field 3D source generation process, realizing the direct generation of light field 3D source adapted to light field 3D display parameters from monocular images, and reducing the complexity of the light field 3D source generation process.

Claims

1. A method for generating 3D video sources based on monocular images, characterized in that, The method includes the following steps: constructing a 3D spatial data set; establishing a ray tracing model; ray intersection and color sampling; assigning sub-pixel colors; and outputting a 3D light field source.

2. The method for generating 3D video sources based on monocular images according to claim 1, characterized in that, In the step of constructing a 3D spatial data set, a monocular image is acquired, and the monocular image is input into a depth prediction network to obtain a depth image corresponding to the monocular image; a Z-axis and a zero-depth plane are set, and a preset actual depth range of the 3D scene in the Z-axis direction is further set; the 2D coordinates of the pixels in the monocular image and the depth values ​​of the corresponding pixels in the depth image are mapped to 3D spatial coordinates to construct a 3D spatial data set for characterizing the 3D scene.

3. A method for generating 3D video sources based on monocular images according to claim 1 or 2, characterized in that, Based on the position of the zero-depth plane and the preset actual depth range, the in-screen depth boundary and out-of-screen depth boundary of the 3D scene relative to the zero-depth plane are determined.

4. The method for generating 3D video sources based on monocular images according to claim 1, characterized in that, In the step of establishing the ray tracing model, a ray tracing coordinate system is established with the center of the 2D display panel as the origin. The X-axis and Y-axis are along the horizontal and vertical directions of the 2D display panel, respectively, and the Z-axis is perpendicular to the 2D display panel and points towards the viewing side. The 2D display panel plane, the lens array plane, and the reference plane are defined. The light field 3D display parameters are obtained, and the Z-axis coordinates of the lens array plane and the reference plane relative to the 2D display panel plane are set. For each sub-pixel of the 2D display panel, the coordinates of the corresponding lens center are determined based on the coordinates of the sub-pixel on the 2D display panel and the parameters of the lens array. The coordinates of the ray from the sub-pixel through the corresponding lens center to the reference plane are calculated, and the starting point and direction of the reverse ray are generated from the ray coordinates to establish a ray tracing model that includes the starting point, propagation direction, and intersection position of the ray.

5. A method for generating 3D video sources based on monocular images according to claim 1 or 4, characterized in that, The light field 3D display parameters include at least one of the following: resolution of the 2D display panel, pixel pitch, subpixel size, subpixel arrangement, lens array pitch, lens array tilt angle, and distance between the 2D display panel and the lens array.

6. A method for generating 3D video sources based on monocular images according to claim 1 or 4, characterized in that, Determining the coordinates of the corresponding lens center includes: determining the coordinates of each sub-pixel on the 2D display panel, performing coordinate transformation on the coordinates of the sub-pixels according to the tilt angle of the lens array, and determining the coordinates of the corresponding lens center according to the transformed coordinates and the lens array pitch.

7. The method for generating 3D video sources based on monocular images according to claim 1, characterized in that, In the ray intersection and color sampling steps, the reverse ray is emitted from the reference plane to the 2D display panel, and ray intersection based on depth residual and secant approximation is performed in the 3D spatial data set to obtain the intersection coordinates of the reverse ray and the surface of the 3D spatial data set; the intersection coordinates are mapped to the pixel coordinates of the monocular image, and the color value corresponding to the intersection coordinates is obtained by spatial interpolation.

8. A method for generating 3D video sources based on a monocular image, as described in claim 1 or 7, characterized in that, The ray intersection calculation based on depth residual and secant approximation includes: the reverse ray taking steps with a preset step size parameter, reading the reference depth of the scene unit corresponding to the 3D spatial data set at each step position; calculating the depth residual between the propagation depth of the reverse ray at the current step position and the reference depth: if the depth residual at two consecutive step positions does not cross the sign, the ray continues to step forward; if the depth residual at two consecutive step positions crosses the sign, the step interval containing the intersection point is locked; secant approximation is performed based on the depth residual at both ends of the step interval, the intersection point step size when the depth residual approaches zero is calculated, and the intersection point coordinates are determined based on the intersection point step size.

9. A method for generating 3D video sources based on monocular images according to claim 1 or 7, characterized in that, The spatial interpolation method includes any one of bilinear interpolation, bicubic interpolation, or other spatial interpolation methods.

10. The method for generating 3D video sources based on monocular images according to claim 1, characterized in that, In the step of assigning sub-pixel colors and outputting the light field 3D source, a color component corresponding to the color type of the sub-pixel is selected from the intersection color value corresponding to the sub-pixel, and the color component is assigned to the sub-pixel; after completing the color assignment of each sub-pixel, the light field 3D source is output.