System and method for view synthesis using depth maps - Patents.com
A real-time rendering pipeline using raycasting and shader programs efficiently converts single-view images into multi-view images, addressing computational challenges and improving image quality for mobile devices.
Patent Information
- Application Number
- JP2024506192
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2021-08-03
- Filing Date
- 2022-07-28
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2042-07-28
AI Technical Summary
Existing technologies struggle to efficiently convert single-view images into multi-view images in real-time for multi-view displays, often requiring computationally intensive methods that are not suitable for mobile devices.
A real-time rendering pipeline that uses raycasting and shader programs to synthesize multi-view images from a single-view image and depth map, optimizing calculations to maintain image quality and reduce computational load.
Enables efficient generation of high-quality multi-view images in real-time, suitable for mobile devices, without the computational burdens of traditional methods, and reduces artifacts at image edges.
Smart Images

Figure 2024532687000001
Abstract
Description
[Technical field]
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS This application claims priority to U.S. Provisional Patent Application No. 63 / 229,054, filed August 3, 2021, which is incorporated by reference in its entirety.
[0002] STATEMENT REGARDING GOVERNMENT SPONSORED RESEARCH OR DEVELOPMENT N / A [Background technology]
[0003] A scene in three-dimensional (3D) space may be viewed from multiple viewpoints depending on the viewing angle. In addition, when viewed by a user, multiple views representing different viewpoints of the scene may be perceived simultaneously, effectively creating an interval of depth that may be perceived by the user. A multi-view display is capable of rendering and displaying a multi-view image such that multiple views are simultaneously perceptible. While some content may be natively captured as a multi-view image or video, multi-view images or videos may be generated from a variety of other sources.
[0004] Various features of examples and embodiments consistent with the principles described herein may be more readily understood by reference to the following detailed description in conjunction with the accompanying drawings, in which like reference numerals indicate like structural elements, and in which: [Brief description of the drawings]
[0005] [Figure 1] 1 is a perspective view of an example multi-view display according to an embodiment consistent with the principles described herein.
[0006] [Diagram 2] 1 is a graphical representation of angular components of a light beam having particular principal angular directions corresponding to view directions of a multi-view display in an example, according to an embodiment consistent with the principles described herein.
[0007] [Diagram 3] FIG. 1 is a block diagram of an example system that may implement multi-view image generation and display according to an embodiment consistent with the principles described herein.
[0008] [Figure 4] 1 is a graphic representation of a simplified example of computer-implemented operations discussed herein, according to an embodiment consistent with the principles described herein.
[0009] [Diagram 5] 1 is a flowchart of an example method for performing multi-view image generation and display, according to an embodiment consistent with the principles described herein.
[0010] [Figure 6] FIG. 1 is a schematic block diagram depicting an example of a computing device capable of implementing multi-view image generation and display according to an embodiment consistent with the principles described herein. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] Particular examples and embodiments have other features in addition to, and in place of, the features illustrated in the above-referenced figures. These and other features are described in detail below with reference to the above-referenced figures.
[0012] Examples and embodiments according to the principles described herein provide techniques for generating multi-view images from single view images and depth maps in a real-time rendering pipeline. This allows visual content (e.g., images or video) to be converted on-the-fly into a multi-view format and presented to a user. As described below, embodiments involve real-time view synthesis using color images and depth inputs.
[0013] According to an embodiment, the shader program implements a subroutine to calculate pixel values for each synthesized view. The subroutine may use ray casting to synthesize the view from a monochromatic (or grayscale) image and a depth map. Each pixel in the synthesized view may be determined by casting individual rays onto the depth map at an angle corresponding to the view position. For a particular view, all rays of the view have the same direction such that the rays are parallel. Each ray may correspond to a pixel that will be rendered as part of the synthesized view. For each ray, the subroutine steps through points along the ray to determine where the ray intersects the virtual surface by reading depth values from the depth map. At each step along the ray, the horizontal position is incremented by a predetermined original interval and the depth position is incremented by a predetermined depth interval. In some embodiments, the vertical position may remain constant. The location where the ray intersects the virtual surface specifies the location of the coordinates used to read a color from the color map corresponding to a pixel of the view, and the pixel position corresponds to the origin of the ray. In some embodiments, when the ray for a particular pixel falls below the virtual surface by a threshold amount, the pixel may be set as a hole rather than representing a color.
[0014] A shader program may be a program executed by a graphics processing unit (GPU). The GPU may include one or more vector processors that execute instructions configured to perform various subroutines in parallel. In this regard, a single subroutine may be configured to calculate individual pixel values of pixels of a view image as it is being composited. Several instances of the subroutine may run in parallel to calculate pixel values for all pixels of the view.
[0015] An embodiment is directed to synthesizing a view image, which may include accessing a color image and a corresponding depth map to synthesize the view image, the depth map defining a virtual surface. Synthesizing the view image may further include stepping through a plurality of points along a ray at a predetermined horizontal interval, a predetermined depth interval, and a constant vertical value until a point of the plurality of points along the ray is identified as being located on the virtual surface, the ray including a ray origin and a ray direction, the ray origin defining a pixel location of a pixel of the view image to be rendered, and the ray direction corresponding to a view location of the view image. Synthesizing the view image may also include rendering a pixel of the view image by sampling a color value of the color image at a hit point.
[0016] More specifically, the color image may be an RGB image, where the color image specifies pixel values for different pixels having respective coordinates. The pixel values may be values indicating the amount of red, values indicating the amount of green, values indicating the amount of blue, or any combination thereof. The depth map may have a similar format to the color image, but instead of specifying colors, the depth map specifies depth values for different pixels having respective coordinates. Thus, the depth map may define a virtual surface that varies along the depth axis as a function of horizontal and vertical positions. In other words, from a top-down orientation, the depth may vary along the depth axis (e.g., into or out of the screen), while the position varies horizontally (e.g., left or right) or vertically (e.g., up or down).
[0017] One or more view images may be synthesized from the color image and the depth map. A view image corresponds to a particular viewpoint different from the viewpoint of each of the other view images. A set of view images forms a multi-view image, and the multi-view image represents an object or a scene including different viewpoints. Each view image of the multi-view image corresponds to a respective view position. For example, if the multi-view image includes four views, the view positions may range from left to right such that they include a left-most view, a center-left view, a center-right view, and a right-most view. The distance between each view may be referred to as a gain or a baseline.
[0018] The subroutine may be executed to calculate a pixel value (e.g., RGB color) for each pixel in the view image as it is synthesized and rendered. The subroutine may include stepping through a number of points along the ray at a predetermined horizontal interval. In this regard, the subroutine moves along a ray cast from a ray origin in a particular ray direction, the ray being cast toward a virtual surface. The ray may be defined as a line in a space defined by coordinates pointing in a particular direction. When synthesizing a particular view image, parallel rays are cast from various origins toward the virtual surface of the depth map to detect depth information for the view image as it is being synthesized. Rather than reading all possible depth values along the ray path from the origin to the bottom of the scene, an embodiment is directed to stepping along the ray at points defined by a predetermined horizontal interval, a predetermined depth interval, and a constant vertical value. Furthermore, the subroutine is automatically terminated or otherwise interrupted when the subroutine identifies a point on the ray that is located on the virtual surface (e.g., a hit point where the ray intersects the virtual surface). In other words, the subroutine steps along the ray at predetermined intervals until the ray intersects or otherwise hits the virtual surface, which is the hit point. In this regard, the depth at the point that is the hit point is equal to the corresponding depth of the virtual surface. The hit point may be slightly deeper than the virtual surface or within a tolerance of the depth near the virtual surface. When using a predetermined depth interval, the quantized depth may approximate the location of the intersection of the ray and the virtual surface.
[0019] When this hit point is identified, its location, in terms of coordinates, is recorded. To render the pixel, a color is sampled from the color image using the recorded location of the hit point. Thus, the subroutine renders a pixel of the view image by sampling the color values of the color image at the hit point coordinates.
[0020] In some embodiments, a hit point is identified as being located on the virtual surface by comparing the depth value readout of the hit point to a threshold depth. For example, as the subroutine moves away from the origin to the next point on the ray, the subroutine reads the depth at a particular point to obtain a depth value readout. A hit point is determined by comparing the depth value readout to the threshold depth. In some embodiments, the threshold depth is decreased by a predetermined depth interval at each step. In this regard, the threshold depth may be equal to or otherwise derived from the depth coordinate of the corresponding point.
[0021] In some embodiments, synthesizing the view image further includes detecting that additional rays of the plurality of rays fall below the virtual surface by a predetermined depth level. Some rays may intersect the virtual surface while other rays may hit a vertical edge of the virtual surface that may be considered a "hole" depending on a steepness threshold. In some embodiments, when the hit point is on a steep surface, the subroutine may designate a corresponding pixel that locates the hole. When the color images are frames of a video stream, these holes may be filled using pixel information from time-adjacent video frames. In the case of still images, the surrounding color may be used for hole filling.
[0022] In some embodiments, a fragment shader is configured to step through multiple points along the ray. The fragment shader may be configured to combine the view image with at least one other view image. Combining involves spatially multiplexing pixels of different views to match a combined multi-view format of the multi-view display. The fragment shader may be executed by a processor that renders a particular color to an output pixel coordinate. The color may be determined by sampling a color image at a location determined by processing a depth map.
[0023] In some embodiments, the predetermined horizontal interval is one pixel and the predetermined depth interval is a function of the baseline of the multiple synthesized views. In other embodiments, the predetermined horizontal interval is a function of the baseline of the multiple synthesized views. By using the baseline to control the granularity of the steps analyzed along the ray, the subroutine can be optimized to reduce the number of depth reads while maintaining a minimum level of image quality when synthesizing the view images.
[0024] In some embodiments, the subroutine may read depth values from a depth texture of a depth map. The subroutine may start at the location of the output pixel coordinate of the ray origin (or a predefined offset from this location, which may be specified by a convergence input parameter). The subroutine may perform a point-by-point readout of the depth values in one direction (e.g., from left to right) or in the opposite direction (e.g., from right to left) depending on the view position.
[0025] At each point along the ray, the extracted depth value is compared to a threshold depth that starts at one and progresses stepwise towards zero. This search for a hit point is terminated when the depth value read is equal to or exceeds the threshold depth. The coordinate where the search terminates is used to sample a color from the color image and return it as the result of the subroutine. The fragment shader uses this sampled color to render the pixel in the composited view.
[0026] The maximum number of horizontal steps (e.g., a predetermined horizontal interval) may be modified or controlled by the baseline input parameters. The more steps, the more the generated views diverge from the input color image. The threshold depth reduction step may be equal to 1 divided by the number of horizontal steps.
[0027] Additionally, to improve aliasing at edges, the predetermined horizontal interval may be modified such that the predetermined interval, such as the horizontal interval, is divided into sub-intervals, resulting in more precise coordinates for sampling colors. Adjacent depth value reads may be used with linear interpolation between them, which may be used during comparison. The predetermined depth interval may be divided into sub-intervals. The resulting coordinates of the hit point (e.g., the depth value read is equal to or exceeds the depth threshold) may be passed to a shader texture read function with built-in color interpolation support.
[0028] Additionally, if a hole needs to be created at the opposite edge (so that the rendering appears as separate objects being moved independently), the difference between the depth value reading and a depth threshold can be compared and if it is greater than a predetermined depth level, a hole can be created for later inpainting.
[0029] In an example, a computing device may receive a color image of a scene and a depth map of the scene. The computing device may synthesize a view image of a multi-view image of the scene from the color image and the depth map. The view images may represent the scene from different view directions. Each view image may include a pixel location and a respective color value at the pixel location. For example, the view image may have a two-dimensional (2D) grid of pixels, each pixel having a location in the image. The computing device may render the view images of the multi-view image on a multi-view display of the computing device. Synthesizing the view images of the multi-view image may include, for a pixel location in the view image, casting a ray from the pixel location toward the scene in a direction corresponding to the view direction of the view image, determining a ray intersection location where the ray intersects a virtual surface specified by the depth map, and setting a color value of the view image at the pixel location to correspond to a color of the color image at the ray intersection location.
[0030] As used herein, a "two-dimensional display" or "2D display" is defined as a display configured to provide a view of an image that is substantially the same regardless of the direction from which the image is viewed (i.e., within a given viewing angle or range of a 2D display). Conventional liquid crystal displays (LCDs) found in many smartphones and computer monitors are examples of 2D displays. In contrast, as used herein, a "multi-view display" is defined as an electronic display or display system configured to provide different views of a multi-view image at or from different viewing directions. In particular, the different views may represent different perspectives of a scene or object in the multi-view image. Uses of the one-sided backlight and one-sided multi-view displays described herein include, but are not limited to, mobile phones (e.g., smartphones), watches, tablet computers, mobile computers (e.g., laptop computers), personal computers and computer monitors, automotive display controls, cameras, displays, as well as a variety of other portable and substantially non-portable display applications and devices.
[0031] Figure 1 illustrates a perspective view of an example multi-view display 10 according to an embodiment consistent with the principles described herein. As illustrated in Figure 1, the multi-view display 10 comprises a screen 12 for displaying a multi-view image to be viewed. The screen 12 may be, for example, a display screen of a telephone (e.g., a mobile phone, a smartphone, etc.), a computer monitor of a tablet computer, a laptop computer, a desktop computer, a camera display, or an electronic display of virtually any other device.
[0032] The multi-view display 10 provides different views 14 of a multi-view image in different view directions 16 relative to the screen 12. The view directions 16 are illustrated as arrows extending from the screen 12 in various different cardinal angular directions, and the different views 14 are illustrated as shaded polygonal boxes at the ends of the arrows (i.e., depicting the view directions 16), and only four views 14 and four view directions 16 are illustrated, all of which are by way of example and not limitation. Note that although the different views 14 are illustrated in FIG. 1 as being above the screen, the views 14 will actually appear on or near the screen 12 when the multi-view image is displayed on the multi-view display 10. The depiction of the views 14 above the screen 12 is merely for simplicity of illustration and is meant to represent viewing the multi-view display 10 from each of the view directions 16 corresponding to a particular view 14. The 2D display may be substantially similar to the multi-view display 10, except that the 2D display is generally configured to provide a single view of a displayed image (e.g., one view similar to view 14), as opposed to the different views 14 of a multi-view image provided by the multi-view display 10.
[0033] A light beam having a view direction, or equivalently, a direction corresponding to a view direction of a multi-view display, generally has a principal angular direction given by angular components {θ, φ} as defined herein. Angular component θ is referred to herein as the "elevation component" or "elevation angle" of the light beam. Angular component φ is referred to herein as the "azimuth component" or "azimuth angle" of the light beam. By definition, elevation angle θ is an angle in a vertical plane (e.g., perpendicular to the plane of the multi-view display screen), while azimuth angle φ is an angle in a horizontal plane (e.g., parallel to the multi-view display screen plane).
[0034] 2 illustrates a graphical representation of angular components {θ,φ} of a light beam 20 having a particular principal angular direction corresponding to a view direction (e.g., view direction 16 in FIG. 1) of a multi-view display in an example, according to an embodiment consistent with the principles described herein. In addition, light beam 20, by definition herein, emanates or originates from a particular point. That is, by definition, light beam 20 has a central ray associated with a particular point of origin in the multi-view display. FIG. 2 also illustrates a light beam (or view direction) point of origin O.
[0035] Furthermore, as used herein, the article "a" is intended to have its original meaning in the patent art, i.e., "one or more." For example, "a computing device" means one or more computing devices, and as such, "the computing device" means "those computing devices" herein. Also, any reference herein to "up," "down," "upward," "downward," "upward," "downward," "front," "back," "first," "second," "left," or "right" is not intended to be limiting herein. As used herein, the term "about," when applied to a value, generally means within the tolerance range of the equipment used to generate the value, or may mean plus or minus 10%, or plus or minus 5%, or plus or minus 1%, unless expressly specified otherwise. Additionally, the term "substantially," as used herein, means majority, or nearly all, or all, or an amount in the range of about 51% to about 100%. Moreover, the examples herein are intended to be merely illustrative and are presented for purposes of discussion and not limitation.
[0036] 3 shows a block diagram of an example system 100 that may perform multi-view image generation and display according to an embodiment consistent with the principles described herein. System 100 may include a computing device 102, such as a smartphone, tablet, laptop computer, and the like. FIG. 6 and the accompanying text below describe an example computing device 102 in detail. Computing device 102 may be configured to perform computer-implemented methods of multi-view image generation and display as described herein.
[0037] According to various embodiments, a computer-implemented method of multi-view image generation when performed by a computing device 102 includes receiving a color image 104 of a scene 106 and a depth map 108 of the scene 106. In FIG. 3, the scene 106 is depicted as a cat, but other suitable scenes may be used. The color image 104 may include intensity and color data representing the appearance of the scene 106. The color image data may optionally be arranged to correspond to a rectangular array of locations, such as pixels. In some examples, the intensity and color data may include a first value representing an intensity of red light, a second value representing an intensity of green, and a third value representing an intensity of blue. In some examples, such as in the case of a scene that is monochromatic, the intensity and color data may include values representing intensity (e.g., including intensity information but no color information). The depth map 108 may describe relative distances between locations in the scene 106 and the computing device 102. In the example of a cat in a scene 106, a depth map 108 corresponding to the scene 106 may specify that the tip of the cat's tail may be farther away from the computing device 102 than the cat's right hind leg. In some examples, the color image 104 and the depth map 108 may be received from a server or storage device by a wired or wireless connection. In some examples, the color image 104 and the depth map 108 may be generated by a camera and depth map generator included with the computing device 102. In some examples, the depth map generator may utilize time-of-flight reflections in different directions to map distances from the computing device 102 for various propagation directions away from the computing device 102.
[0038] In various embodiments, the computer-implemented method of multi-view image generation when performed by the computing device 102 further includes synthesizing view images 110A, 110B, 110C, 110D (collectively referred to as view images 110) of the multi-view image of the scene 106 from the color image 104 and the depth map 108. The view images 110 may represent the scene 106 from different view directions. In the example of a cat in the scene 106, the view images 110 may represent how the cat would look if viewed from a view direction corresponding to the view images 110. Each view image 110 may include a pixel location and a respective color value at the pixel location. In the example of FIG. 3, there are four view images 110. In other examples, more or less than four view images 110 may be used. FIG. 4 and the accompanying text below provide further details regarding how to synthesize the view images 110.
[0039] The computer-implemented method of multi-view image generation when performed by the computing device 102 according to various embodiments further includes rendering the view images 110 of the multi-view image on the multi-view display 112 of the computing device 102. The view images 110A, 110B, 110C, and 110D are seen from respective view directions 114A, 114B, 114C, and 114D, respectively. For example, the computing device 102 may be configured as a smartphone, and the smartphone's display may be configured as the multi-view display 112. In some examples, the multi-view image may be included as a frame within a video such that the computing device 102 can synthesize and render the view images 110 at a suitable video frame rate, such as 60 frames per second, 30 frames per second, or other.
[0040] A set of computer-implemented instructions, such as those referred to herein as shaders, may synthesize a view image of a multi-view image. A detailed description of the shaders follows below, but an overview of the shaders follows here. The shaders may cast a ray from a pixel location toward the scene in a direction corresponding to the view direction of the view image. The shaders are configured to determine a ray intersection location where the ray intersects a virtual surface specified by the depth map. The shaders are further configured to set a color value of the view image at the pixel location to correspond to a color of the color image at the ray intersection location.
[0041] In some examples, determining the ray intersection location may include the following operations, shown for simplicity as first through fifth operations. In a first operation, the shader may determine successive tentative locations along the ray between the pixel location and the designated plane such that a virtual surface is between the pixel location and the designated plane. In a second operation, the shader may identify a particular tentative location among the tentative locations along the ray. In a third operation, the shader may iteratively determine that the identified particular tentative location is between the pixel location and the designated plane, and the shader may advance the identified particular tentative location to a next tentative location along the ray. In a fourth operation, the shader may determine that the designated plane is between the pixel location and the identified particular tentative location. In a fifth operation, the shader may set the ray intersection location to correspond, inclusively, to a location between the identified particular tentative location and an adjacent previously identified tentative location.
[0042] In some of the above examples, determining the ray intersection location may include the following operations, shown for convenience as operations 6-10. The sixth through tenth operations may effectively repeat operations 1-5, but may be at different (e.g., finer) resolution. In the sixth operation, the shader may determine a sequential second interim location along the ray between the identified interim location and an adjacent previously identified interim location. In the seventh operation, the shader may identify a second interim location of one of the second interim locations along the ray. In the eighth operation, the shader may iteratively determine that the identified second interim location is between the pixel location and a designated plane, and advance the identified second interim location to a next second interim location along the ray. In the ninth operation, the shader may determine that a designated plane is between the pixel location and the identified second interim location. In a tenth operation, the shader may set the ray intersection location to correspond to a location between the identified second interim location and an adjacent previously identified second interim location, inclusive.
[0043] In some examples, the interim positions may be equally spaced along the ray. In some examples, the view image may define a horizontal direction that is parallel to the top and bottom edges of the view image, a vertical direction that is in the plane of the view image and is orthogonal to the horizontal direction, and a depth that is orthogonal to the horizontal and vertical directions. In some examples, the interim positions may be spaced such that a horizontal component of the spacing between adjacent interim positions corresponds to a specified value. In some examples, the specified value may correspond to the horizontal spacing between adjacent pixels in the view image.
[0044] In some examples, the different view directions may be in a horizontal plane that includes the top and bottom edges of the view image. In some examples, one or both of the first through fifth operations and the first through tenth operations may not produce a viable result. Because ray casting alone may not obtain a suitable color value for a pixel location, the shader may perform further operations to obtain a suitable color value. These further operations are shown as eleventh through fifteenth operations for simplicity and are described in detail below.
[0045] In an eleventh operation, the shader may cast a ray from the pixel location towards a depth map representing the scene in a direction corresponding to the view direction of the view image. In a twelfth operation, the shader may determine that the ray does not intersect a virtual surface specified by the depth map. In a thirteenth operation, the shader may set a color value of the view image at the pixel location to correspond to the obtained color information. In a fourteenth operation, the shader may determine that the ray does not intersect a virtual surface specified by the depth map by determining that the ray has propagated away from the pixel location a distance that exceeds a threshold distance.
[0046] In some examples, the view images may correspond to time-sequential images of the video signal. In some examples, color information may be obtained from pixel locations of at least one time-adjacent video frame of the video signal. The following description relates to details of computer-implemented operations that may generate and render the view images, such as including or using shaders. The computer-implemented operations may use to create images with multiple views, such as four or more views. The multiple views may be arranged as tiles in various patterns, such as, but not limited to, a 2×2 pattern, or a 1×4 pattern, and a 3×3 pattern. The computer-implemented operations may synthesize the multiple views from a color image and an associated depth map. The depth map may be formed as a grayscale image whose brightness or intensity may represent proximity to a viewer or camera.
[0047] The computer-implemented operations may synthesize multiple views such that a human may perceive a stereo effect when viewing a pair of views. Because humans typically have eyes that are horizontally separated, the computer-implemented operations may synthesize multiple views that may be viewed from different locations that are horizontally separated. The computer-implemented operations may reduce or eliminate artifacts at edges of shapes or edges of images. Such artifacts may interfere with the stereo effect.
[0048] The computer-implemented operations may composite the multiple views relatively quickly because the composited images are included in the video image. Further, the computer-implemented operations may composite the multiple views in a manner that is compatible with a rendering pipeline, such as an OpenGL rendering pipeline. Further, the computer-implemented operations may composite the multiple views without performing heavy computations that may burden a mobile device, cause thermal throttling on the mobile device, or both.
[0049] The computer-implemented operations discussed herein may be more efficient and robust than another approach called "forward mapping," or point cloud rendering using a parallel projection camera and a horizontal skew to the camera matrix. In forward mapping, each view is created by moving the colors of a two-dimensional grid of colored points to the left and / or right according to the corresponding depth value. The computer-implemented operations discussed herein may avoid holes, isolated points, and empty areas at the left and / or right edges of the views generated by forward mapping. Furthermore, the computer-implemented operations discussed herein do not require allocating more points than are present on the display device.
[0050] The computer-implemented operations discussed herein may be more efficient and robust than another technique called "backward mapping," in which the color value of a point is replaced with the color value of some neighboring point according to the depth of the point. Backward mapping may create the illusion of depth, but does not accurately depict the edges of shapes. For example, foreground portions of the edges of shapes may be unexpectedly covered by the background.
[0051] The computer-implemented operations discussed herein can be more efficient and robust than comparable approaches that use three-dimensional meshes, which can be computationally demanding and therefore not suitable for real-time generation of multiple views.
[0052] The computer-implemented operations discussed herein may use a modified form of ray casting. Ray casting may cast a ray from some central point in 3D space through each point of the virtual screen and determine a hit point on the surface to set the color of the corresponding point on the screen. For view synthesis, the computer-implemented operations may determine the color of the hit point without any additional ray tracing. Furthermore, textures may determine the surface without placing voxel data in memory. Ray casting may provide accuracy and the ability to render perspective views. Without the modifications discussed herein, ray casting may be computationally intensive, especially for high quality images. However, it is a power-consuming operation, especially for high quality images. Without the modifications discussed herein, ray casting may divide the ray path into hundreds of steps, with a check for each step. Using one or more of the modifications discussed herein, ray casting may use a structure to mark so-called safe zones (e.g., zones that have no geometry) to accelerate ray progression.
[0053] In some examples, the computer-implemented operations discussed herein may perform ray casting using a single full-screen quad rendering with a relatively simple fragment (pixel) shader. In some examples, the computer-implemented operations discussed herein may achieve real-time performance and may be injected into the rendering chain of a video-multiview workflow.
[0054] The computer-implemented operations discussed herein may use a fragment shader. A fragment shader may be a program that determines a color for a single pixel and stores the determined color information in an output buffer. The fragment shader may be executed multiple times in parallel for each pixel with corresponding entries in the output buffer to determine the colors of all output pixels.
[0055] An example of pseudocode that may implement the computer-implemented operations discussed herein is as follows: x, y = output_coord view_id = pick one from [-1.5, -0.5, +0.5, +1.5] direction = if (view_id < 0) -1 else +1 total_steps = abs (view_id * gain_px) x = x - convergence * view_id * gain_px z = 1 for _ in total_steps: if (read_depth (x, y) <= z) return read_color (x, y) x += direction z - = 1.0 / total_steps return read_color(x, y)
[0056] 4 illustrates a graphical representation 400 of a simplified example of the computer-implemented operations discussed herein, according to an embodiment consistent with the principles described herein. It should be understood that the simplified example of FIG. 4 illustrates a one-dimensional example in which light rays propagate with propagation angles (corresponding to the view direction) in a single plane. In reality, the depth map may extend in two dimensions, the propagation direction may have a third dimension (e.g., two dimensions plus depth), etc.
[0057] In the simplified example of Figure 4, depth away from the viewer is represented as height from a bottom horizontal line 402. The bottom horizontal line 402 represents the foreground boundary of the depth map. An output buffer 404 is shown below the bottom horizontal line 402. The top horizontal line 406 represents the back, background plane, or boundary of the depth map.
[0058] In the simplified example of FIG. 4, the depth map is shown as extending across a series of pixels. The depth map is shown as a series of height values, one value per horizontal pixel. In the simplified example of FIG. 4, the depth map is quantized to have one of eleven possible values, between 0 and 1, inclusive. In practice, the actual depth map values may have a relatively large number of possible values (such as 256) between the foreground and background boundaries. In the particular example of FIG. 4, from the leftmost edge to the rightmost edge of the view image, the depth increases from 0.1 to 0.4, then decreases to 0.0, then increases to 0.8, then decreases to 0.6 at the rightmost edge of the view image.
[0059] In the simplified example of FIG. 4, coordinate x is along the horizontal direction. Coordinate x may represent an output buffer pixel. A shader may be executed once per pixel, optionally in parallel with other shader executions corresponding to other pixels. A shader may write the output of the shader (e.g., a color value) to coordinate x. In some examples, the shader output (color value) is written to coordinate x at which the shader is executed. In other examples, coordinate x may be a variable that is optionally shifted (positively or negatively) by an initial shift determined by a convergence value.
[0060] In the simplified example of FIG. 4, the variable z is a variable for each iteration that lies on the grid relative to the depth value. In the simplified example of FIG. 4, there are a total of six steps 408, corresponding to six pixels. The value of six can be calculated from the view shift multiplied by the gain. The initial value of the variable z is 1.0. The initial value of the coordinate x is 7 (e.g., cell number 7, cells are numbered sequentially starting from zero).
[0061] At iteration number 1, at coordinate x=7, the shader reads the depth (from the depth map) to be 0.0. The shader compares the value of z (initial value of 1.0) to the depth at coordinate x=7 (value 0.0). Because the z value is greater than or equal to the depth, the shader decreases the z value by an amount equal to the reciprocal of the total number of steps. For a total of 6 steps, the decreased value of z becomes 0.833. The coordinate x is incremented by 1 pixel, so x becomes 8.
[0062] At iteration number 2, at coordinate x=8, the shader reads the depth (from the depth map) to be 0.0. The shader compares the value of z (0.833) to the depth at coordinate x=8 (value 0.0). Because the z value is greater than or equal to the depth, the shader decreases the z value by an amount equal to the reciprocal of the total number of steps. For a total of 6 steps, the decreased value of z becomes 0.667. The coordinate x is incremented by one pixel, so x becomes 9.
[0063] At iteration number 3, at coordinate x=9, the shader reads the depth (from the depth map) to be 0.3. The shader compares the value of z (0.667) to the depth at coordinate x=9 (value 0.3). Because the z value is greater than or equal to the depth, the shader decreases the z value by an amount equal to the reciprocal of the total number of steps. For a total of 6 steps, the decreased value of z becomes 0.5. The coordinate x is incremented by 1 pixel, so x becomes 10.
[0064] At iteration number 4, at coordinate x=10, the shader reads the depth (from the depth map) to be 0.4. The shader compares the value of z (0.5) to the depth at coordinate x=10 (value 0.4). Because the z value is greater than or equal to the depth, the shader decreases the z value by an amount equal to the reciprocal of the total number of steps. For a total of 6 steps, the decreased value of z becomes 0.333. The coordinate x is incremented by one pixel, so x becomes 11.
[0065] At iteration number 5, at coordinate x=11, the shader reads the depth (of the depth map) to be 0.5. The shader compares the z value (0.333) to the depth at coordinate x=11 (value 0.5). Because the z value is less than or equal to the depth, the shader reads the color from the x coordinate of x=11. The shader assigns the color value from x=11 to cell number 7 in the output buffer. In other words, the previous operation determined the color value (from x=11, etc.) for the pixel (located in cell number 7) of the view image. Iteration number 6 does not exist in the simplified example of Figure 4.
[0066] The shader may optionally perform additional comparisons by interpolating adjacent retrieved depth values. These additional comparisons may occur at locations between adjacent pixels in x coordinates. The shader may use the following quantities as inputs: a color texture, a depth texture, the x and y coordinates of the output pixel, a gain (a single scalar value), and a convergence (another single scalar value).
[0067] The computer-implemented operations discussed herein may generate multiple views within a single output buffer. For example, in a configuration in which the computer-implemented operations generate four view images, the output buffer may be divided into four regions corresponding to 2×2 tiles, for example, by horizontal and vertical lines. In a particular example, view 0 is assigned to the top left tile, view 1 is assigned to the top right tile, view 2 is assigned to the bottom left tile, and view 3 is assigned to the bottom right tile. The computer-implemented operations discussed herein may present views 0 through 3 for different view angles arranged in a horizontal row. In some examples, the computer-implemented operations discussed herein may set a maximum offset distance for each feature of the original view image relative to the width of the view to a specified value that may be comfortable for the user. For example, the specified value may be 10 pixels to 20 pixels, inclusive. In some examples, the peripheral views (such as views 0 and 3) may receive the maximum offset, and the x and y coordinates may wrap to cover the quadrant of the selected view.
[0068] When a view identifier, or view id (0, 1, 2, or 3), is known, the computer-implemented operations discussed herein may choose a view shift value from an array of predefined shift values, such as from the array [-1.5, -0.5, +0.5, +1.5]. A user or another computer-implemented routine may provide a convergence value. The convergence value may help anchor the depth plane in place by reducing the pixel shift to zero. For example, if the view images are to be shown sequentially, such as in an animation, a convergence value of 0 may make the background appear fixed in place so that the foreground may move from left to right. Similarly, a convergence value of 1 may make the foreground appear fixed in place while the background may move from left to right. A convergence value of 0.5 may fix the mid-plane in place so that the background and foreground move in opposite directions. Other values may be used that may fix the plane at a depth that is not between the background and foreground.
[0069] A user or another computer-implemented routine may provide a gain value, which may increase or decrease the relative motion between the background and foreground, as described above. Numerically, an example implementation of gain may be view_shift_px=shift_value_array[view_id]*gain_px, in units of pixels.
[0070] The gain value may be positive or negative. The absolute value of the gain may determine how many depths the shader may use to perform its iterations. For example, the shader may use the following number of total steps: total_steps=abs(view_shift_px). To apply convergence, the shader may modify the x coordinate according to x=x-convergence*view_shift_px. The shader may initialize the variable z to a value of 1.0. The shader may initialize the variable Nx to the value of the x coordinate that may already be wrapped within the view quadrant. At each step, the shader may read a depth value from the depth texture using Nx,y. At each step, the shader may increase or decrease the variable Nx by one value (depending on the sign of view_shift_px). At each step, the shader may decrease the z variable by 1.0 divided by total_steps. When the z variable becomes less than or equal to the read depth value, the shader stops the iteration and returns the color value read from the color texture at Nx,y.
[0071] In this manner, the shader may generate a forward-mapped view in the output buffer that may lack problems with background covering foreground, may lack holes or isolated pixels, or may lack empty sides. The shader may allow the texture to mirror parameter sides that are not empty in the resulting view, so that the shader may sample outside the bounds of the texture and solve problems on the sides of the view.
[0072] Because the depth texture may include non-zero (e.g., non-flat) values, the shader may stop iterations earlier than the value of total_steps. Furthermore, because the value of total_steps may be specified by a comfortable limit (such as 10 pixels to 20 pixels, inclusive), the shader may perform relatively few iterations per pixel. Because the shader may perform relatively few iterations per pixel, the shader may use relatively few calculations to obtain color values for pixels in the view image, thereby reducing the computational load required for real-time performance. In general, increasing the number of views may increase the size of the output buffer and may also increase the computational load required for real-time performance.
[0073] The computer-implemented operations discussed herein may reduce or eliminate artifacts that occur at the edges of objects, such as in areas with relatively fast changes in depth values. For example, the shader may perform additional intermediate iterations, where the number of steps is increased by a specified oversampling factor, such as four. For example, the iterations may extract depth every fourth step using previously read depth values for linear interpolation. Such intermediate iterations may generate higher quality view images without requiring additional reads from a depth texture.
[0074] The computer-implemented operations discussed herein may optionally select a view id for each output pixel, which need not directly correspond to the quadrants discussed above. Selecting a view id in this manner may help eliminate downstream processing of the buffer, such as rearranging pixels into a pattern compatible with a multi-view display device. For example, a lenticular lens array covering a display may receive a set of slices of different views under each lens. By changing the comparison read_depth(x,y)<=z to a more advanced difference check, such as a check with a threshold, the shader may leave holes for further inpainting, such as when inpainting is available and preferred over stretched edges.
[0075] In general, the computer-implemented operations discussed herein may achieve improved performance using relatively low gain values and relatively high contrast values. In general, the computer-implemented operations discussed herein may achieve improved performance for depth maps that are normalized, or at least not darkened. In general, the computer-implemented operations discussed herein may achieve improved performance when shifting is provided in only one direction, such as horizontal or vertical.
[0076] The computer-implemented operations discussed herein may operate in real time. The computer-implemented operations discussed herein may operate as part of an OpenGL-based rendering pipeline (shaders). The computer-implemented operations discussed herein may generate many relatively high-quality forward-mapped views that are horizontally shifted relative to each other. The computer-implemented operations discussed herein may use inputs of a color image and a corresponding depth map. The computer-implemented operations discussed herein may utilize gain and convergence parameters. The computer-implemented operations discussed herein may relate to a form of ray casting. The computer-implemented operations discussed herein may relate to compositing different views in a forward-mapped fashion using a fragment (pixel) shader (e.g., with the intent of using the views in a stereoscopic application). The computer-implemented operations discussed herein may provide a good compromise between image quality and computation speed. The computer-implemented operations discussed herein may create any number of orthographically horizontally skewed views from a color image and a depth map using a single shader pass in real time, without pre-processing, and without allocating a 3D mesh. The computer-implemented operations discussed herein may execute on a mobile device. The computer-implemented operations discussed herein may operate with a relatively light computational load, using relatively few iterations and relatively few texture reads. The computer-implemented operations discussed herein may generate view images without holes or isolated pixels. The computer-implemented operations discussed herein may have a simpler internal workflow than typical rendering by ray casting. The computer-implemented operations discussed herein may have better performance than simple forward mapping based on individual point movement.
[0077] 5 shows a flowchart of an example method 500 for performing multi-view image generation and display, according to an embodiment consistent with the principles described herein. Method 500 may be performed on system 100 or any other suitable system capable of performing multi-view image generation and display.
[0078] In operation 502, the system may receive a color image of a scene and a depth map of the scene. In operation 504, the system may synthesize view images of a multi-view image of the scene from the color image and the depth map. The view images may represent the scene from different view directions. Each view image may include pixel locations and respective color values at the pixel locations. In operation 506, the system may render the view images of the multi-view image on a multi-view display.
[0079] Synthesizing a view image of a multi-view image may include the following operations for a pixel location in the view image: The system may cast a ray from the pixel location toward the scene in a direction corresponding to the view direction of the view image. The system may determine a ray intersection location where the ray intersects a virtual surface specified by the depth map. The system may set a color value of the view image at the pixel location to correspond to a color of the color image at the ray intersection location.
[0080] In some examples, determining successive interim positions along the ray between the pixel location and the designated plane such that the virtual surface is between the pixel location and the designated plane may include the following operations: The system may identify one of the interim positions along the ray; The system may iteratively determine that the identified interim position is between the pixel location and the designated plane and advance the identified interim position to a next interim position along the ray; The system may determine that the designated plane is between the pixel location and the identified interim position; The system may set a ray intersection position to correspond, inclusively, to a position between the identified interim position and adjacent previously identified interim positions.
[0081] In some examples, determining the ray crossing location may further include the following operations: the system may determine a sequential second interim location along the ray between the identified interim location and an adjacent previously identified interim location; the system may identify a second interim location of one of the second interim locations along the ray; the system may iteratively determine that the identified second interim location is between the pixel location and the designated plane and advance the identified second interim location to a next second interim location along the ray; the system may determine that the designated plane is between the pixel location and the identified second interim location; the system may set the ray crossing location to correspond, inclusively, to a location between the identified second interim location and an adjacent previously identified second interim location.
[0082] In some examples, the interim locations may be equally spaced along the ray. In some examples, the view image may define a horizontal direction that is parallel to the top and bottom edges of the view image, a vertical direction that is in the plane of the view image and is orthogonal to the horizontal direction, and a depth that is orthogonal to the horizontal and vertical directions. In some examples, the interim locations may be spaced such that a horizontal component of the spacing between adjacent interim locations corresponds to the horizontal spacing between adjacent pixels in the view image.
[0083] FIG. 6 is a schematic block diagram depicting an example of a computing device that may perform multi-view image generation and display according to an embodiment consistent with the principles described herein. The computing device 1000 may include a system of components that perform various computational operations for a user of the computing device 1000. The computing device 1000 may be a laptop, a tablet, a smartphone, a touch screen system, an intelligent display system, other client devices, a server, or other computing devices. The computing device 1000 may include various components, such as, for example, a processor 1003, a memory 1006, input / output (I / O) components 1009, a display 1012, and possibly other components. These components may be coupled to a bus 1015 that serves as a local interface to allow the components of the computing device 1000 to communicate with each other. Although the components of the computing device 1000 are shown as contained within the computing device 1000, it should be understood that at least some of the components may be coupled to the computing device 1000 through external connections. For example, a component may be externally connected into or otherwise connected to computing device 1000 via an external port, socket, plug, connector, or wireless link.
[0084] The processor 1003 may include processor circuitry, such as a central processing unit (CPU), a graphics processing unit (GPU), any other integrated circuit, that performs computational processing operations or any combination thereof. The processor 1003 may include one or more processing cores. The processor 1003 comprises circuitry for executing instructions. The instructions include computer code, programs, logic, or other machine-readable instructions that are received and executed by the processor 1003 to perform computational functions embodied in the instructions, for example. The processor 1003 may execute instructions to operate on data or to generate data. For example, the processor 1003 may receive input data (e.g., an image), process the input data according to an instruction set, and generate output data (e.g., a processed image). As another example, the processor 1003 may receive instructions and generate new instructions for subsequent execution. The processor 1003 may comprise hardware for implementing a graphics pipeline (e.g., the graphics pipeline shown diagrammatically in FIG. 3) to render video, images, or frames generated by an application. For example, the processor 1003 may comprise one or more GPU cores, vector processors, scalar processes, decoders, or hardware accelerators.
[0085] The memory 1006 may include one or more memory components. The memory 1006 is defined herein as including either or both of volatile and non-volatile memory. A volatile memory component is one that does not retain information upon loss of power. Volatile memory may include, for example, random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), magnetic random access memory (MRAM), or other volatile memory structures. System memory (e.g., main memory, cache, etc.) may be implemented using volatile memory. System memory refers to high-speed memory that may temporarily store data or instructions for quick read and write access to assist the processor 1003. Images (e.g., still images, video frames) may be stored or loaded into the memory 1006 for subsequent access.
[0086] A non-volatile memory component is one that retains information upon loss of power. Non-volatile memory includes read-only memory (ROM), hard disk drives, solid state drives, USB flash drives, memory cards accessed by memory card readers, floppy disks accessed by associated floppy disk drives, optical disks accessed by optical disk drives, magnetic tapes accessed by suitable tape drives. ROM may include, for example, programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or other similar memory devices. Storage memory may be implemented using non-volatile memory to provide long-term retention of data and instructions. According to various embodiments, the multi-view video cache may be implemented using volatile, non-volatile, or a combination of volatile and non-volatile memory.
[0087] Memory 1006 may refer to a combination of volatile and non-volatile memory used to store instructions as well as data. For example, data and instructions may be stored in non-volatile memory and loaded into volatile memory for processing by processor 1003. Execution of instructions may include, for example, a compiled program that is loaded from non-volatile memory into volatile memory and then translated into machine code in a form that can be executed by processor 1003, source code that is converted into a suitable format such as object code that can be loaded into volatile memory for execution by processor 1003, or source code that is interpreted by another executable program to generate instructions in volatile memory and executed by processor 1003, etc. Instructions may be stored or loaded in any portion or component of memory 1006, including, for example, RAM, ROM, system memory, storage, or any combination thereof.
[0088] Although the memory 1006 is shown as separate from other components of the computing device 1000, it should be understood that the memory 1006 may be embedded or otherwise integrated, at least in part, into one or more components. For example, the processor 1003 may include on-board memory registers or cache for performing processing operations.
[0089] The I / O components 1009 include, for example, a touch screen, speakers, microphones, buttons, switches, dials, cameras, sensors, accelerometers, or other components that receive user input or generate output directed to a user. The I / O components 1009 may receive user input and convert it into data for storage in memory 1006 or processing by processor 1003. The I / O components 1009 may receive data output by memory 1006 and processor 1003 and convert them into a form that is perceived by the user (e.g., sound, tactile responses, visual information, etc.).
[0090] One type of I / O component 1009 is a display 1012. The display 1012 may include a multi-view display (e.g., multi-view display 112), a multi-view display combined with a 2D display, or any other display that presents graphical content. A capacitive touch screen layer serving as the I / O component 1009 may be layered within the display to allow a user to provide input at the same time as perceiving visual output. The processor 1003 may generate data that is formatted as an image or frame for presentation on the display 1012. The processor 1003 may execute instructions to render an image or frame on the display 1012 for a user. The camera I / O component 1009 may be used for a video capture process that captures video that may be converted into a multi-view video.
[0091] The bus 1015 facilitates communication of instructions and data between the processor 1003, the memory 1006, the I / O components 1009, the display 1012, and any other components of the computing device 1000. The bus 1015 may include address translation units, address decoders, fabric, conductive traces, conductive wires, ports, plugs, sockets, and other connectors to enable communication of data and instructions.
[0092] The instructions in memory 1006 may be embodied in various forms in a manner that implements at least a portion of a software stack. For example, the instructions may be embodied as an operating system 1031, an application 1034, a device driver (e.g., a display driver 1037), firmware (e.g., a display firmware 1040), or other software components. The operating system 1031 is a software platform that supports basic functions of the computing device 1000, such as scheduling tasks, controlling the I / O components 1009, providing access to hardware resources, managing power, and supporting applications 1034.
[0093] The applications 1034 may execute on the operating system 1031 and gain access to the hardware resources of the computing device 1000 through the operating system 1031. In this regard, the execution of the applications 1034 is controlled, at least in part, by the operating system 1031. The applications 1034 may be user-level software programs that provide high-level features, services, and other functionality to a user. In some embodiments, the applications 1034 may be dedicated "apps" that are downloadable or otherwise accessible to a user on the computing device 1000. A user may launch the applications 1034 through a user interface provided by the operating system 1031. The applications 1034 may be developed by a developer and may be defined in a variety of source code formats. The applications 1034 may be developed using a number of programming or scripting languages, such as, for example, C, C++, C#, Objective C, Java, Swift, JavaScript, Perl, PHP, Visual Basic, Python, Ruby, Go, or other programming languages. The application 1034 may be compiled by a compiler into object code or may be interpreted by an interpreter for execution by the processor 1003. Various embodiments discussed herein may be implemented as at least a portion of the application 1034.
[0094] For example, device drivers, such as display driver 1037, contain instructions that enable operating system 1031 to communicate with various I / O components 1009. Each I / O component 1009 may have its own device driver. Device drivers may be installed such that they are stored in storage and loaded into system memory. For example, upon installation, display driver 1037 translates high-level display instructions received from operating system 1031 into low-level instructions that are performed by display 1012 to display images.
[0095] Firmware, such as the display firmware 1040, may include machine code or assembly code that enables the I / O components 1009 or the display 1012 to perform low-level operations. The firmware may translate the electrical signals of a particular component into higher level instructions or data. For example, the display firmware 1040 may control how the display 1012 activates individual pixels at low levels by adjusting voltage or current signals. The firmware may be stored in non-volatile memory and executed directly from the non-volatile memory. For example, the display firmware 1040 may be embodied in a ROM chip that is coupled to the display 1012, such that the ROM chip is separate from other storage and system memory of the computing device 1000. The display 1012 may include processing circuitry for executing the display firmware 1040.
[0096] The operating system 1031, applications 1034, drivers (e.g., display driver 1037), firmware (e.g., display firmware 1040), and possibly other instruction sets may each include instructions executable by the processor 1003 or other processing circuitry of the computing device 1000 to perform the functionality and operations discussed above. The instructions described herein may be embodied in software or code executed by the processor 1003 as discussed above, although, alternatively, the instructions may also be embodied in dedicated hardware or a combination of software and dedicated hardware. For example, the functionality and operations performed by the instructions discussed above may be implemented as circuits or state machines employing any one or combination of several technologies. These technologies may include, but are not limited to, discrete logic circuits having logic gates for performing various logical functions upon application of one or more data signals, application specific integrated circuits (ASICs) having appropriate logic gates, field programmable gate arrays (FPGAs), or other components, and the like.
[0097] In some embodiments, instructions for performing the functionality and operations discussed above may be embodied in a non-transitory computer-readable storage medium. The computer-readable storage medium may or may not be part of a computing system, such as computing device 1000. The instructions may include, for example, statements, code, or declarations that may be fetched from the computer-readable medium and executed by a processing circuit (e.g., processor 1003). In the context of this disclosure, a "computer-readable medium" may be any medium that can contain, store, or retain the instructions described herein for use by or in association with an instruction execution system, such as computing device 1000.
[0098] The computer-readable medium may comprise any one of many physical media, such as, for example, magnetic, optical, or semiconductor media. More specific examples of suitable computer-readable media may include, but are not limited to, magnetic tape, magnetic floppy disk, magnetic hard drive, memory card, solid-state drive, USB flash drive, or optical disk. The computer-readable medium may also be a random access memory (RAM), including, for example, static random access memory (SRAM) and dynamic random access memory (DRAM), or magnetic random access memory (MRAM). In addition, the computer-readable medium may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or other types of memory devices.
[0099] Computing device 1000 may perform any of the operations or implement the functionality described above. For example, the flowcharts and process flows discussed above may be performed by computing device 1000 executing instructions and processing data. Although computing device 1000 is shown as a single device, the embodiment is not so limited. In some embodiments, computing device 1000 may offload processing of instructions in a distributed manner such that multiple computing devices 1000 work together to execute instructions that may be stored or loaded in a distributed arrangement of computational components. For example, at least some instructions or data may be stored, loaded, or executed in a cloud-based system operating in conjunction with computing device 1000.
[0100] In particular, the non-transitory computer-readable storage medium may store executable instructions that, when executed by a processor of a computer system, perform operations of multi-view image generation and display. According to various embodiments, the operations may include receiving a color image of a scene and a depth map of the scene. The operations may further include synthesizing view images of the multi-view image of the scene from the color image and the depth map. In various embodiments, the view images may represent the scene from different view directions, and each view image may include pixel locations and respective color values at the pixel locations. Additionally, the operations may include rendering the view images of the multi-view image on a multi-view display.
[0101] According to various embodiments, synthesizing a view image of a multi-view image includes, for a pixel location in the view image, casting a ray from the pixel location toward the scene in a direction corresponding to a view direction of the view image, Synthesizing the view images further includes determining a ray intersection location where the ray intersects a virtual surface specified by the depth map, and setting a color value of the view image at the pixel location to correspond to a color of the color image at the ray intersection location.
[0102] In some embodiments, determining the ray intersection location may include determining successive interim locations along the ray between the pixel location and the designated plane such that a virtual surface is between the pixel location and the designated plane. Determining the ray intersection location may further include identifying one of the interim locations along the ray. In particular, identifying the interim location may include iteratively determining that the identified interim location is between the pixel location and the designated plane, and advancing the identified interim location to a next interim location along the ray.
[0103] According to these embodiments, determining the ray crossing location may further include determining that the designated plane is between the pixel location and the identified interim location. Additionally, determining the ray crossing location may further include setting the ray crossing location to correspond to a location between the identified interim location and an adjacent previously identified interim location.
[0104] According to some embodiments, determining the ray intersection location further includes determining a sequential second interim location along the ray between the identified interim location and an adjacent previously identified interim location, and identifying a second interim location among the second interim locations along the ray. In particular, identifying the second interim location may include iteratively determining that the identified second interim location is between the pixel location and the designated plane, and advancing the identified second interim location to a next second interim location along the ray.
[0105] In some of these embodiments, determining the ray cross position further includes determining that the designated plane is between the pixel location and the identified second interim location. Additionally, determining the ray cross position may include setting the ray cross position to correspond to a position between the identified second interim location and an adjacent previously identified second interim location.
[0106] In some embodiments, the interim locations are equally spaced along the light ray. In some embodiments, the view image may define a horizontal direction that is parallel to the top and bottom edges of the view image, where the vertical direction is in the plane of the view image and may be orthogonal to the horizontal direction, and the depth is orthogonal to the horizontal and vertical directions. In some embodiments, the interim locations are spaced such that the horizontal component of the spacing between adjacent interim locations corresponds to the horizontal spacing between adjacent pixels in the view image.
[0107] Thus, examples and embodiments of generating and using a multiview video cache, for example for multiview video rendering, have been described. The cache may include at least a pair of cache data entries corresponding to a target timestamp, where a first and a second cache data entry of the pair may include respective first and second image frame groups. The first image frame group may correspond to a first multiview frame preceding the target timestamp, and the second image frame group may correspond to a second multiview frame following the target timestamp. A view of a particular multiview frame corresponding to the target timestamp may be generated from the cache using information from the first and second image frame groups. It should be understood that the examples described above are merely illustrative of some of many specific examples that represent the principles described herein. Clearly, those skilled in the art may readily devise numerous other arrangements without departing from the scope as defined by the following claims. [Explanation of symbols]
[0108] 10 Multi-view display 12 screens 14 Views 16 View Directions 20 Light Beam 100 Systems 102 Computing Devices 104 Color Images 106 Scenes 108 Depth Map 110, 110A, 110B, 110C, 110D View Image 114A, 114B, 114C, 114D View Direction 400 Graphic Representation 402 Bottom horizontal line 404 Output Buffer 406 Top horizontal line 1000 Computing Devices 1003 Processor 1006 Memory 1009 Input / Output (I / O) Components 1012 Display 1015 Bus 1031 Operating Systems 1034 Applications 1037 Display Driver 1040 Display Firmware
Claims
1. 1. A computer-implemented method for multi-view image generation and display, comprising: receiving, with a computing device, a color image of a scene and a depth map of the scene; synthesizing, with the computing device, multiple view images of a multi-view image of the scene from the color image and the depth map, the multiple view images representing the scene from a plurality of different view directions, each view image including a plurality of pixel locations and respective color values at the plurality of pixel locations; rendering the multiple view images of the multi-view image on a multi-view display of the computing device; The synthesis of the view images of the multi-view image includes, for pixel positions within the view images, casting a ray from said pixel location towards said scene in a direction corresponding to said view direction of said view image; determining a ray intersection location where the ray intersects a virtual surface specified by the depth map; and A computer-implemented method comprising: setting a color value of the view image at the pixel location to correspond to a color of the color image at the ray intersection location.
2. Determining the ray intersection location comprises: determining successive interim positions along the ray between the pixel location and a designated plane such that the virtual surface is between the pixel location and the designated plane; identifying a tentative one of the tentative locations along the light ray, determining that the identified tentative location is between the pixel location and the designated plane; and identifying, including advancing the identified interim location to a next interim location along the light ray; determining that the designated plane is between the pixel location and the identified tentative location; and setting the ray intersection location to correspond, inclusively, to a location between the identified tentative location and an adjacent previously identified tentative location.
3. Determining the ray intersection location comprises: determining a sequential second interim location along the ray between the identified interim location and the adjacent previously identified interim location; identifying a second interim location of one of the second interim locations along the light ray, determining that the identified second tentative location is between the pixel location and the designated plane; and identifying, including advancing the identified second interim location to a next second interim location along the light beam; determining that the designated plane is between the pixel location and the identified second tentative location; 3. The computer-implemented method of claim 2, further comprising: setting the ray intersection location to correspond, inclusively, to a location between the identified second interim location and an adjacent previously identified second interim location.
4. The computer-implemented method of claim 2 , wherein the interim positions are equally spaced along the light ray.
5. the view images define a horizontal direction parallel to top and bottom edges of the plurality of view images, a vertical direction in a plane of the view images and orthogonal to the horizontal direction, and a depth orthogonal to the horizontal and vertical directions; The computer-implemented method of claim 4 , wherein the interim positions are spaced such that a horizontal component of a spacing between adjacent interim positions corresponds to a specified value.
6. The computer-implemented method of claim 5 , wherein the specified value corresponds to a horizontal spacing between adjacent pixels in the view image.
7. The synthesis of the view images of the multi-view image includes, for pixel positions within the view images, casting a ray from the pixel location towards the scene in a direction corresponding to the view direction of the view image; determining that the ray does not intersect a virtual surface specified by the depth map; obtaining color information from at least one time-adjacent video frame of the plurality of view images of the multi-view image; and setting a color value of the view image at the pixel location to correspond to the obtained color information.
8. 8. The computer-implemented method of claim 7, wherein determining that the ray does not intersect the virtual surface specified by the depth map comprises determining that the ray has propagated away from the pixel location a distance that exceeds a threshold distance.
9. 8. The computer-implemented method of claim 7, wherein the multiple view images correspond to time-sequential images of a video signal, and the color information is obtained from the pixel locations of the at least one time-adjacent video frame of the video signal.
10. The computer-implemented method of claim 1 , wherein the different view directions are in a horizontal plane that includes top and bottom edges of the multiple-view images.
11. 1. A system configured to perform multi-view image generation and display, comprising: A multi-view display and A central processing unit; and a memory storing a plurality of instructions that, when executed, cause the central processing unit to perform operations, the operations including: receiving a color image of a scene and a depth map of the scene; synthesizing a multi-view image of the scene from the color image and the depth map, the multiple view images representing the scene from a plurality of different view directions, each view image including pixel locations and respective color values at the pixel locations; rendering the multiple view images of the multiview image on the multiview display; The synthesis of the view images of the multi-view image includes, for pixel positions within the view images, casting a ray from said pixel location towards said scene in a direction corresponding to said view direction of said view image; determining a ray intersection location where the ray intersects a virtual surface specified by the depth map; and setting a color value of the view image at the pixel location to correspond to a color of the color image at the ray intersection location.
12. Determining the ray intersection location comprises: determining successive interim positions along the ray between the pixel location and a designated plane such that the virtual surface is between the pixel location and the designated plane; identifying one of the interim locations along the light ray; determining that the identified tentative location is between the pixel location and the designated plane; and identifying, including advancing the identified interim location to a next interim location along the light ray; determining that the designated plane is between the pixel location and the identified tentative location; and setting the ray intersection location to correspond, inclusively, to a location between the identified tentative location and an adjacent previously identified tentative location.
13. Determining the ray intersection location comprises: determining a sequential second interim location along the ray between the identified interim location and the adjacent previously identified interim location; identifying a second interim location of one of the second interim locations along the light ray, determining that the identified second tentative location is between the pixel location and the designated plane; and identifying, including advancing the identified second interim location to a next second interim location along the light beam; determining that the designated plane is between the pixel location and the identified second tentative location; 13. The system of claim 12, further comprising: setting the ray intersection location to correspond, inclusively, to a location between the identified second interim location and an adjacent previously identified second interim location.
14. The system of claim 12 , wherein the interim positions are equally spaced along the light beam.
15. the view image defines a horizontal direction parallel to top and bottom edges of the view image, a vertical direction in a plane of the view image and orthogonal to the horizontal direction, and a depth orthogonal to the horizontal and vertical directions; The system of claim 14 , wherein the interim positions are spaced such that a horizontal component of a spacing between adjacent interim positions corresponds to a horizontal spacing between adjacent pixels in the view image.
16. The system of claim 11 , wherein the different view directions are in a horizontal plane that includes top and bottom edges of the multiple view images.
17. 1. A non-transitory computer-readable storage medium storing executable instructions that, when executed by a processor of a computer system, perform operations of multi-view image generation and display, the operations including: receiving a color image of a scene and a depth map of the scene; synthesizing multiple view images of a multi-view image of the scene from the color image and the depth map, the multiple view images representing the scene from different view directions, each view image including a plurality of pixel locations and respective color values at the plurality of pixel locations; rendering the multiple view images of the multiview image on a multiview display; The synthesis of the view images of the multi-view image includes, for pixel positions within the view images, casting a ray from said pixel location towards said scene in a direction corresponding to said view direction of said view image; determining a ray intersection location where the ray intersects a virtual surface specified by the depth map; and setting a color value of the view image at the pixel location to correspond to a color of the color image at the ray intersection location.
18. Determining the ray intersection location comprises: determining successive interim positions along the ray between the pixel location and a designated plane such that the virtual surface is between the pixel location and the designated plane; identifying interim locations of the interim locations along the light ray, determining that the identified tentative location is between the pixel location and the designated plane; and identifying, including advancing the identified interim location to a next interim location along the light ray; determining that the designated plane is between the pixel location and the identified tentative location; and setting the ray intersection location to correspond to a location between the identified tentative location and an adjacent previously identified tentative location.
19. Determining the ray intersection location comprises: determining a sequential second interim location along the ray between the identified interim location and the adjacent previously identified interim location; identifying a second interim location of one of the second interim locations along the light ray, determining that the identified second tentative location is between the pixel location and the designated plane; and identifying, including advancing the identified second interim location to a next second interim location along the light beam; determining that the designated plane is between the pixel location and the identified second tentative location; 20. The non-transitory computer-readable storage medium of claim 18, further comprising: setting the ray intersection location to correspond to a location between the identified second interim location and an adjacent previously identified second interim location, inclusive.
20. the interim positions being equally spaced along the light beam; the view image defines a horizontal direction parallel to top and bottom edges of the view image, a vertical direction in a plane of the view image and orthogonal to the horizontal direction, and a depth orthogonal to the horizontal and vertical directions; 20. The non-transitory computer-readable storage medium of claim 18, wherein the interim locations are spaced such that a horizontal component of a spacing between adjacent interim locations corresponds to a horizontal spacing between adjacent pixels in the view image.
Citation Information
Patent Citations
Element image group generation device and program therefor
JP2017073710A
Image display apparatus, video display system including apparatus, image display method and program for displaying image
JP2019133214A
Cited By
View synthesis system and method using depth map
US12567201B2
