Method and apparatus for encoding and decoding one or more views of a scene
Patent Information
- Application Number
- JP2023516067
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2020-10-02
- Filing Date
- 2021-09-27
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2041-09-27
AI Technical Summary
Existing methods for encoding and decoding multiple views of a scene in virtual reality applications face challenges in efficiently managing computational effort and data rate, particularly in live streaming scenarios, leading to reduced image quality and latency issues.
A method that utilizes block segmentation masks to identify regions of interest, allowing for efficient encoding and decoding by packing only relevant blocks of pixels, which are then interleaved or row-interleaved to reduce data transmission and latency, using standard video compression algorithms like HEVC.
This approach enables simple, low-latency encoding and decoding of multi-view videos, reducing pixel rate and data transmission while maintaining high image quality, suitable for live streaming applications.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the encoding of image or video data for one or more views of a scene. In particular, the present invention relates to methods and apparatuses for encoding and decoding video sequences for virtual reality (VR) or immersive video applications captured from multiple viewpoints.
Background Art
[0002] Virtual reality can be a very immersive way of viewing images or videos of a scene. When using virtual reality to view captured images or videos of a scene, multiple cameras are typically required to capture many views of the scene from various angles in order to allow viewers to move around within the virtual reality scene. The more views captured from different angles, the greater the freedom for an observer to move within the virtual reality scene and the more accurately rendered views of the scene become possible. However, increasing the number of views to be captured increases the amount of data that must be processed and transmitted. For a limited bandwidth, this may reduce the image or video quality of the virtual reality scene experienced by the viewer since the data must be more highly compressed.
[0003] Multiple views of a scene are often encoded together with metadata that indicates to a decoder how to reconstruct the original views. Efficient encoding often requires computationally expensive decision steps, which cause latency since the transmission of data to the viewer is delayed. There can be a trade-off between efficiency and latency (from the perspective of bitrate or pixel rate for a given bandwidth). In the case of live streaming video, latency is of particular concern since viewers want to experience the virtual reality scene without delay, especially in a two-way streaming scenario such as a video conference.
Summary of the Invention
Problems to be Solved by the Invention
[0004] From the perspective of computational effort and data rate (bandwidth), it is desirable to efficiently encode and decode one or more views of a scene. [Means for solving the problem]
[0005] The present invention is defined by the claims. According to one aspect of the present invention, a method for encoding image or video data as described in claim 1 is provided.
[0006] For each view, the block segmentation mask indicates the location of the block of pixels belonging to the region of interest. In any given view, there may be two or more regions of interest.
[0007] Embodiments of this method can facilitate simple, low-latency encoding of multiview video. The block segmentation mask can effectively provide implicit metadata that allows the decoder to quickly and easily reconstruct one or more views from at least one packed frame. Meanwhile, since only a portion of each view (i.e., region of interest) is encoded / transmitted, the pixel rate can be reduced.
[0008] In some embodiments, at least one packed frame may be a single packed frame. At least one bitstream may be a single bitstream.
[0009] For each block of pixels in a view, there may be a corresponding pixel in the block segmentation mask indicating whether the block of pixels belongs to a region of interest. Therefore, there may be the same number of pixels in the block segmentation mask as there are blocks of pixels in each view. In some embodiments, there may be two or more pixels in the block segmentation mask corresponding to a block of pixels in a view. For example, a block of pixels in a view may have a corresponding block of pixels in the block segmentation mask indicating whether the block of pixels in the view belongs to a region of interest. The blocks of pixels in the block segmentation mask may be smaller than the blocks of pixels in the view.
[0010] In each block segmentation mask, each pixel may contain a pixel value indicating whether the corresponding pixel block is part of the region of interest. The pixel value may be a luminance value, or another pixel value such as a chrominance value, depth value, or transparency value.
[0011] Pixel values used to indicate blocks belonging to a region of interest can be separated by an unused level from pixel values used to indicate blocks not belonging to the region of interest. This unused level can create robustness against small deviations in pixel values that may be introduced by applying conventional lossy video compression techniques to packed frames. If the resulting range of pixel values remains distinct and separable, it may be possible to reconstruct the block segmentation map in the decoder without error, despite such deviations.
[0012] In some embodiments, there may be two or more regions of interest. The pixel values of the block segmentation mask can act as indices for the regions of interest. For example, a first region of interest may be labeled with a first non-zero pixel value in the block segmentation mask, and a second region of interest may be labeled with a second non-zero pixel value in the block segmentation mask. Blocks that do not belong to a region of interest may be labeled with a pixel value of zero.
[0013] The region of interest may include or consist of foreground objects. The rest of the view may include or consist of the background.
[0014] Block image data may consist only of image data for blocks of pixels belonging to the region of interest.
[0015] Image or video data includes multiple views.
[0016] For each view, blocks of pixels belonging to the region of interest can be packed into frames in a sequence based on the scan order of each block segmentation mask.
[0017] Therefore, a packed frame may comprise a first block segmentation mask associated with a first view and a second block segmentation mask associated with a subsequent second view. Block image data may comprise one or more blocks of pixels from the first view and one or more blocks of pixels from the subsequent second view. Third, fourth, and further views may be added in the same manner.
[0018] The scan order of a block segmentation mask may be the raster scan order (i.e., scan across rows before scanning along columns).
[0019] Obtaining a block segmentation mask may involve segmenting each view to generate the block segmentation mask. For example, if a view is captured against a chroma key background such as a green screen, segmentation may involve classifying pixels as foreground or background by color separation (color keying). Any block of pixels containing a predetermined minimum number of foreground pixels may be marked as foreground in the block segmentation map.
[0020] At least one packed frame may comprise a packed frame having a first contiguous portion comprising block segmentation masks of two or more views and a second contiguous portion comprising block image data of two or more views.
[0021] Two or more block segmentation masks can be packed adjacent to each other within a packed frame, so that each block segmentation mask is adjacent to at least one other block segmentation mask. The first part may be the top-leftmost part of the packed frame.
[0022] At least one bitstream may consist of one bitstream. The first part may be encoded so that it appears in the bitstream preceding the second part. This facilitates rapid and efficient decoding, and the decoder may receive and decode a block segmentation mask before receiving and decoding block image data. Thus, when the block image data is received / decoded, the decoder will already have the information necessary to place the blocks of pixels in the reconstructed view.
[0023] In other embodiments, at least one packed frame may include two or more packed frames. The first packed frame may comprise two or more block segmentation masks. The second packed frame may include block image data. This allows the block segmentation masks to be encoded separately from the block image data, for example, using different video compression parameters. The first bitstream may be encoded to include the first packed frame, and the second bitstream may be encoded to include the second packed frame.
[0024] The pixel blocks in the block image data of a view can all be the same size within that view, or optionally, the blocks can all be the same size across the block image data of all views. In the former case, the block size is constant within the view (or within each view, individually). This can facilitate efficient packing as well as simple encoding and decoding. In the latter case, the block size is constant across all views. This can also facilitate efficient packing as well as simple encoding and decoding.
[0025] The block image data of each different view can be packed into at least one packed frame in a block interleaved configuration, with the first block of pixels of the second view following consecutively after the first block of pixels of the first view. This is then followed by the first block of pixels of the third view, etc., continuing consecutively until the first block of pixels from each view is packed into the packed frame. This pattern of obtaining a single pixel block at a time from each view and interleaving the blocks to be adjacent to each other within the packed frame can be repeated for subsequent blocks of each view as long as there are a sufficient number of blocks within each view to maintain this pattern.
[0026] This approach can result in good video compression efficiency, especially when the content and position of the regions of interest are similar across different views. In this case, the content of adjacent blocks of pixels interleaved in the packed frame is likely to be similar. Standard video compression algorithms can utilize this spatial coherence to reduce the bitrate required to encode the blocks for a given bitrate and / or to increase the compression quality.
[0027] The block image data of each different view can be packed into at least one packed frame in a row-interleaved configuration, with the block of pixels of the first row of the second view following continuously after the block of pixels of the first row of the first view. Subsequently, blocks of pixels of the first row from each view can follow continuously, such as the block of pixels of the first row of the third view, until the first rows of blocks from each view are packed. Thus, a pattern in which entire rows of blocks are taken out from each view at once and these rows are interleaved adjacent to each other in the packed frame can continue as long as there are a sufficient number of rows to maintain the pattern for each view. Again, this approach can provide good video compression efficiency for scenes containing typical visual content.
[0028] Encoding at least one packed frame into at least one bitstream can optionally include using a video compression algorithm, and optionally using a standard video compression algorithm such as H.264 or HEVC. This can facilitate at least partial backward compatibility with existing encoding and decoding hardware and software. Also, the need for the spread of different video compression standards can be avoided in order to specifically support multi-view video.
[0029] The method can include selecting a quality factor of the video compression algorithm and / or selecting some quantization levels used in the video compression algorithm such that at least the block segmentation mask can be reconstructed without error from at least one bitstream. Optionally, the method can include jointly selecting the number of quantization levels and the quality factor used in the video compression algorithm to ensure that the block segmentation mask can be reconstructed without error from at least one bitstream.
[0030] At least one packed frame may comprise two packed frames. The first packed frame may comprise two or more block segmentation masks. The second packed frame may contain block image data. The first packed frame may be encoded using lossless video compression. The second packed frame may be encoded using lossy video compression.
[0031] This method may comprise quantizing a block segmentation mask to a first number of quantization levels and quantizing block image data to a second number of quantization levels, where the first number is different from the second number. By independently setting the quantization parameters, this method can ensure that the block segmentation mask can be reconstructed without errors after video compression, while avoiding wasting unnecessary bandwidth on the block image data. For example, the block image data may be quantized in such a manner that it introduces a slight error in the reconstructed block image data at the decoder. In this way, the block segmentation mask can be compressed reversibly and effectively, while the block image data is compressed irreversibly.
[0032] At least one packed frame may comprise a third portion comprising depth data for two or more views, and / or at least one packed frame may comprise a fourth portion comprising transparency data for two or more views. Depth data may be included in at least one packed frame at a lower spatial resolution than block image data. For example, depth data may be provided in smaller blocks and / or a reduced number of blocks.
[0033] A decoding method according to claim 10 is also provided.
[0034] Block image data consists only of blocks of pixels belonging to the region of interest. All of two or more views can be reconstructed. This method may further include compositing the region of interest onto the background scene to compose a complete view.
[0035] Either of the methods summarized above or claimed may be used in live streaming multiview video. This encoding scheme would be well suited to the needs of live video streaming because its simplicity facilitates low latency at both the encoder and decoder ends.
[0036] A computer program according to claim 12 is also provided. The computer program may be stored in a computer-readable medium, or optionally a non-temporary computer-readable medium.
[0037] The encoder described in claim 13 and the decoder described in claim 14 are also provided.
[0038] A bitstream according to claim 15 is also provided. The block segmentation mask can be packed in a frame packed before the block image data. The block segmentation mask can be decoded by a decoder before the block image data. [Brief explanation of the drawing]
[0039] To better understand the present invention and to more clearly illustrate how it can be put into practice, refer to the accompanying drawings as merely examples. [Figure 1] Block diagram of an encoder according to an embodiment of the present invention. [Figure 2] A flowchart showing the encoding method performed by the encoder in Figure 1. [Figure 3A] A diagram of a scene divided into blocks of pixels, according to one embodiment. [Figure 3B] Figure 3A shows a block segmentation mask (enlarged) for the view. [Figure 3C] Figure 3A shows block image data for the view. [Figure 4] A diagram showing a packed frame according to one embodiment. [Figure 5A] A diagram showing a packed frame according to one embodiment. [Figure 5B] A diagram showing a packed frame according to one embodiment. [Figure 6] A diagram showing a packing method according to one embodiment. [Figure 7] A diagram showing a packing method according to one embodiment. [Figure 8] A diagram showing an encoding method according to one embodiment. [Figure 9] A block diagram of a decoder according to one embodiment. [Figure 10] Figure 9 shows the decoding method performed by the decoder. [Figure 11] A diagram showing a reconstruction method according to one embodiment. [Modes for carrying out the invention]
[0040] The present invention will be described with reference to the drawings.
[0041] The detailed descriptions and specific examples illustrate exemplary embodiments of the apparatus, systems, and methods, but should be understood to be for illustrative purposes only and not intended to limit the scope of the invention. These and other features, aspects, and advantages of the apparatus, systems, and methods of the invention will be better understood from the following description, the appended claims, and the appended drawings. The drawings are for illustrative purposes only and are not drawn to a specific scale. Also, the same reference numerals are used throughout the drawings to indicate the same or similar parts.
[0042] Figure 1 is a block diagram of an encoder 100 according to one embodiment. The encoder 100 includes an input unit 110 configured to acquire two or more block segmentation masks 12 and block image data 13. The input unit 100 is connected to a packing unit 120 configured to generate packed frames 40. The packing unit 120 is connected to a video encoder 130 configured to encode the packed frames 40 into at least one bitstream 16.
[0043] Next, the method performed by the encoder 100 will be described with reference to Figures 2, 3, 4, and 6. Figure 2 is a flowchart of the method. In the embodiment described in detail below, three views 10 of a scene are captured. Figure 3A shows one of the views 10 of the scene. View 10 is uniformly divided into blocks of pixels 30. Each of the other views (not shown) is also uniformly divided into blocks of pixels. In this example, all blocks of pixels 30 in view 10 are the same size. Each view 10 includes a foreground area and a background area. As is common in the art, a green screen can be used as the background. This example is a view 10 that includes an object placed in front of a green screen. By using a green screen as the background, each view 10 can be segmented by chroma keying. Pixels that match the color of the background screen (in this case, green) are identified as background pixels.
[0044] Figure 3B shows a magnified view of the block segmentation mask 12 in Figure 10 of Figure 3A. Chroma keying is used to distinguish between a foreground region and a background region, referred to herein as the region of interest 31. The block segmentation mask 12 is a map of view 10, indicating which blocks 30 of pixels in view 10 belong to the region of interest 31. Each block 30 of pixels in view 10 is represented by pixels in the block segmentation mask 12, making the block segmentation mask 12 a low-resolution segmentation mask of view 10.
[0045] The block segmentation mask 12 indicates whether a block of pixels 30 in the view 10 belongs to the region of interest 31 by setting the pixel value of each pixel within the block segmentation mask 12 to a first or second value. In the case of segmentation by chroma keying, a block may be determined to belong to the region of interest if it contains at least one foreground pixel (i.e., at least one pixel of a color other than green).
[0046] In Figure 3(b), the pixel values of the block segmentation mask are luminance values. The bright areas 32 of the block segmentation mask 12 represent blocks 30 of pixels in view 10 that belong to the region of interest 31. The dark areas 33 of the block segmentation mask 12 represent blocks 30 of pixels in view 10 that do not belong to the region of interest 31. Figure 3C shows the block image data 13 of view 10 in Figure 3A, as shown by the block segmentation mask 12 in Figure 3B. The block image data 13 contains only blocks 30 of pixels that belong to the region of interest 31.
[0047] Next, refer to the flowchart in Figure 2. In step 11, the input unit 110 obtains the respective block segmentation mask 12 and block image data 13 for each of the views 10. In this example, the block segmentation mask 12 and block image data 13 are created using chroma keying. The block segmentation mask 12 and block image data 13 are passed to the packing unit 120.
[0048] In step 14, the packing unit 120 generates a packed frame 40 containing the block segmentation mask 12 and the block image data 13. Figure 4 shows the packed frame 40. The packing unit 120 packs the block segmentation mask 12 sequentially in a first portion 41 of the packed frame 40. The first portion 41 of the packed frame 40 is the first portion to be encoded and later decoded.
[0049] The packing unit 120 packs the block image data 13 into the second portion 42 of the packed frame 40. The block image data 13 is also packed continuously so as not to leave any space between the pixel blocks 30 or between the pixel blocks 30 and the block segmentation mask 12.
[0050] Other possible configurations of the packed frame are shown in Figure 5 and described below.
[0051] Next, with reference to Figure 6, the packing method used to generate the packed frame 40 shown in Figure 4 will be described. The block segmentation masks 60, 61, and 62 indicate the respective regions of interest in the first, second, and third views 600, 610, and 620.
[0052] First, the block segmentation masks 60, 61, and 62 are packed in a single line in the first part of the packed frame 40. The first block segmentation mask 60 is packed at the leftmost position of the line. The second block segmentation mask 61 is packed next to the first block segmentation mask 60, and the third block segmentation mask 62 is packed next to the second block segmentation mask 61. The order of the block segmentation masks 60, 61, and 62 in the line from left to right defines the sequence.
[0053] Next, block image data from each of the three views 600, 610, and 620 are packed into a second portion of the packed frame 40 by block interleaving. The packed frame 40 is packed in blocks of pixels in raster scan order. First, the packing unit 120 packs the first pixel block from the first view 600 into the packed frame 40. Then, the packing unit 120 packs the first pixel block from the second view 610 into the packed frame 40. Then, the packing unit 120 packs the first pixel block from the third view 620 into the packed frame 40. This cycle then packs the second pixel block from the first view 600, and so on, until there are no more pixels from each view that can continue this sequence. In this way, blocks of pixels in the packed frame 40 are interleaved so that no blocks of pixels immediately before or after another block of pixels from the same view, unless there are no more blocks of pixels sufficient to maintain the interleaving. The sequence of blocks of pixels in the packed frame 40 is the same as the sequence defined by the order of the block segmentation masks 60, 61, and 62 in the packed frame.
[0054] Just as block image data is packed into frame 40 packed in raster scan order, blocks of pixels from views 600, 610, and 620 are selected to be packed in raster scan order, as shown in Figure 6. Blocks of pixels are selected from each of views 600, 610, and 620 to be packed in rows from top to bottom. Figure 6 shows that the top-leftmost block of pixels from view 600 is packed first from the view because it is the first block in the region of interest according to the raster scan order. The next block to be packed from view 600 is the second block according to the raster scan order, immediately to the right of the first block.
[0055] Figure 7 shows another method of packing blocks of pixels, called row interleaving, which will be discussed later.
[0056] After packing, in step 14, the packed frames 40 are passed to the video encoder 130. The video encoder 130 encodes the packed frames 40 into a bitstream 16. Encoding the packed frames includes compressing (15) the packed frames. Compressing (15) the packed frames 40 reduces the amount of data that must be encoded into the bitstream 16 and transmitted. Compression 15 is performed irreversibly in this example. A standard video compression codec may be used. In this example, the HEVC (High Efficiency Video Coding) compression standard is used.
[0057] Compressing the packed frames 40 (15) can reduce the amount of data to encode and transmit, particularly thanks to the way the packed frames 40 are packed. If the region of interest 31 of each view 10 contains similar visual content, such as a multiview image or video of a scene, then the block image data 13 from each view 10 are likely to have similar visual content. More specifically, due to the block interleaved packing method, adjacent blocks of pixels in a packed frame are likely to be blocks corresponding to similar portions of the region of interest seen from different views. These blocks of pixels are likely to be the most similar with respect to visual content. Existing video compression algorithms such as HEVC can take advantage of this similarity (redundancy). Thus, by using block interleaving or row interleaving and compressing the packed frames using a video compression algorithm, embodiments of the present invention can reduce the amount of data that needs to be transmitted while utilizing existing video compression software and / or hardware.
[0058] Additional steps that may be performed by the encoder in some embodiments are shown in Figure 8 and described below.
[0059] Figure 9 is a block diagram of a decoder 200 according to one embodiment. The decoder 200 includes an input unit 210 configured to receive a bitstream 16. The input unit 210 is connected to a video decoder 220 configured to decode the bitstream 16. The video decoder 220 is connected to a reconstruction unit 230 configured to reconstruct one or more views 93 of a scene. It is assumed that the bitstream 16 received by the decoder 200 is generated by the encoder 100 in the embodiment described above.
[0060] Next, with reference to Figure 10, the method performed by the decoder 200 will be described. In step 90, the input unit 210 receives the bitstream 16. The bitstream 16 contains the packed frames 40. The bitstream 16 is passed to the video decoder 220 and decoded in step 91. Decoding includes decompression (using HEVC) and extracting the packed frames 40. After decoding, the packed frames are passed to the reconstruction unit 230.
[0061] In step 92, the reconstruction unit 230 reconstructs three views 93 of the scene. For simplicity, the reconstruction will first be described by referring to the reconstruction of only the first view 690. The reconstruction method shown in Figure 11 includes creating a blank first reconstructed view 690. The reconstruction unit 230 inserts blocks of pixels of the first view into the first reconstructed view 690 at foreground positions indicated by the block segmentation mask 60 of the first view.
[0062] The block segmentation mask 60 acts as a map indicating the positions of foreground blocks in the reconstructed view 690 (indicated by straight arrows). Both the encoder and decoder use the same predefined scan order to scan the block segmentation mask and block image data. When the decoder finds the first foreground pixel in the block segmentation mask, it inserts the first decoded pixel block at the position in the reconstructed view 690 indicated by the pixel in the block segmentation mask (indicated by a curved arrow). When the next foreground pixel in the block segmentation mask 60 is found, it inserts the next decoded block of the pixel in that view until all the foreground blocks of the pixels in that view are in their correct positions in the reconstructed view 690.
[0063] This method is the reverse of the packing process performed by the encoder and is similarly applied to reconstruct all views 93.
[0064] The decoder 200 does not require additional metadata to know where to find and place the associated blocks of pixels. Instead, the sequence of block segmentation masks 12 and pixel blocks 30 within the packed frame acts as implicit metadata, indicating to the decoder 200 which block segmentation mask 12 is associated with which pixel block. Avoiding the need to include additional metadata in the packed frame 40 helps reduce the amount of data that must be encoded. Furthermore, reconstruction using block segmentation maps is relatively easy to implement and does not involve complex or time-consuming calculations that could result in significant additional latency.
[0065] The foreground block (i.e., block image data of the region of interest) can be superimposed by the decoder onto any desired background (e.g., a computer graphics background, or an image or video from a different video stream). In some embodiments, multiple reconstructed views 93 can be used to create a new virtual view having a different viewpoint from any of the views originally captured by the camera.
[0066] Next, possible alternative configurations of the packed frame 40, as shown in Figures 5A and 5B, will be described. Figure 5A shows a packed frame 40 having a third portion 50 in addition to the first and second portions (not shown). The third portion is at the bottom of the packed frame and is the last portion of the frame to be encoded and decoded. The third portion 50 contains block depth data 51 for two or more views 10. The block depth data 51 is packed consecutively into the packed frame 40. The block depth data 51 may be contained in at least one packed frame 40 with a lower spatial resolution than the block image data 13. For example, the block depth data 51 may be provided in smaller blocks and / or fewer blocks, since the human visual system is less affected by depth errors than by errors in image data.
[0067] Figure 5B shows another packed frame 40 having a fourth part 52 in addition to the first, second, and third parts (not shown). The fourth part 52 contains block transparency data 53 for two or more views 10. The block transparency data 53 is packed sequentially within the fourth part 52. The transparency data is determined during the segmentation of two or more views and can be stored in the alpha channel 10. Blocks of pixels at the boundary between the region of interest 31 and the background are likely to contain both some (green) background pixels and some (non-green) foreground pixels. The block transparency data for a block of pixels identifies, for each pixel in the block, how transparent that pixel is. This can be determined by how green it is in the case of chroma keying, or by any other appropriate pixel-level segmentation. Transparent pixels can be treated as background pixels during reconstruction. This helps prevent green (background) pixels incorporated into the block image data of the region of interest 31 from appearing as a green halo around the object in the reconstructed image 93. Partially transparent pixels (pixels containing some green but not entirely green) may have color values averaged by alpha blending. If transparency data 53 is not included in the packed frame, in some embodiments the decoder 200 can itself perform chroma keying on blocks of pixels to determine the transparency data. That is, during the reconstruction of view 93, the decoder 200 can check each block of pixels 31 (especially peripheral blocks) for green pixels to determine the block transparency data of the reconstructed view 93.
[0068] If the packed frame contains block depth data 51 or block transparency data 53, the block depth and block transparency data may be packed into the third and fourth parts of the packed frame in the same pattern as the block image data is packed into the second part of the packed frame. This means that when the decoder scans the packed frame 40 and reconstructs the view 93, the block depth / transparency data 51, 53 can be applied to the reconstructed view using the same reverse block interleaving method that was used to generate the reconstructed view 93.
[0069] In some embodiments, the block interleaving method described with reference to Figure 6 can be modified to interleave multiple blocks from each view, for example, by taking two, three, or more blocks as interleaving units at a time.
[0070] Figure 7 shows an example of a packing method based on row interleaving. Row interleaving works similarly to block interleaving, except that instead of packing one block of pixels from each view at a time, the packing unit 120 packs rows of blocks from each view 700, 710, 720. In some embodiments, this principle is further extended to all views 10, such as packing all blocks 30 of pixels from a first view 10 sequentially, and then packing all blocks 30 from a second view 10. The decoder 200 always reconstructs view 93 using the reverse of the process used to pack the packed frame 40.
[0071] Row interleaving may be more advantageous than block interleaving when it is desirable to decode and reconstruct only a subset of view 10. In row interleaving, the compression algorithm often makes predictions based on adjacent blocks, and entire rows of block 30 are packed as one contiguous group, so the prediction of block 30 for a pixel (in the decoder) is more likely to be based on another block 30 of pixels from the same view 10. This can help avoid the need to decode block 30 of pixels from additional views 10 when it is desired to decode a given view 10. Similarly, it is preferable to pack the packed frame 40 by placing all block 30 of pixels from a first view 10 contiguously, then all block 30 from a second view 10, and so on for all subsequent views 10.
[0072] Next, an embodiment of the encoding method shown in Figure 8 will be described. Figure 8 is a flowchart of the encoding method including quantization and compression. Steps 11, 14, and 15 are substantially identical to the corresponding steps in the embodiment of Figure 2 described above.
[0073] In step 11, the encoder 100 obtains a block segmentation mask 12 and block image data 13 from two or more views 10 of the scene.
[0074] In step 80, the encoder 100 selects a number of quantization levels for the block segmentation mask 12. It may be beneficial to quantize the block segmentation mask 12 in order to reduce the amount of data that needs to be transmitted. As an example, consider a block segmentation mask 12 that uses luminance values as pixel values. The first and second values may be used to distinguish between foreground and background by, for example, setting all foreground pixels to 255 and all background pixels to 0. Encoding the values 0 and 255 requires 8 bits. To reduce the amount of data, the pixel values may be quantized to a smaller number of levels (81). Instead of using 0 and 255 as the first and second values, for example, 0 and 127 could be used, which would require representing only 7 bits. In the most extreme reduction, each pixel may have a luminance value of either 0 or 1, represented by only a single bit.
[0075] In step 81, the selected quantization parameters are applied to the block segmentation mask 12. In step 14, the packing unit 120 generates the packed frames 40. In step 82, the encoder selects a video compression quality factor. A higher quality factor results in less data being lost due to lossy compression.
[0076] The packed frames are then encoded into a bitstream 16, which involves compressing the packed frames using an HEVC codec (with a selected quality factor) 15. It is preferable that the decoder 200 can accurately reconstruct the block segmentation mask 12 from the compressed packed frames 40; otherwise, the decoder 200 cannot accurately reconstruct the view 93. When selecting the quantization levels for the block segmentation mask 12, it may be useful to retain some unused levels between the first and second pixel values. This may help make the method robust to slight deviations in pixel values that may be introduced by lossy video compression.
[0077] To ensure that the block segmentation mask 12 can be accurately reconstructed by the decoder 200, the block segmentation mask 12 must be compressed by lossless compression or lossy compression with a minimum quality factor. For example, a binary segmentation mask with values of 0 and 1 can be compressed by lossless compression or lossy compression with a specific minimum quality, such that none of the pixels change value. Alternatively, a segmentation mask using values 0 and 255 can be quantized and compressed by lossy compression. Lossy compression can allow values to deviate from their initial levels, provided that the quantization is robust to these deviations and no reconstruction errors exist. There are various ways to ensure this. For example, quantization and quality factor parameters can be selected such that the probability of error is low or zero across a large training dataset of views. Alternatively, the parameters can be optimized online by the encoder for a given set of views to be encoded. For this purpose, encoder 100 may include a local decoder 200 that decodes the packed frame 40 before transmission of bitstream 16 and reconstructs the block segmentation mask 12. Encoder 100 can check whether the reconstruction is accurate by comparing the decoded block segmentation mask from the local decoder with the original block segmentation mask. Encoder 100 can iteratively quantize the block segmentation mask 12, generate, compress, and encode the packed frame 40, decode the packed frame 40, compare the reconstructed block segmentation mask with the original, and change the quantization and / or compression conditions each time to achieve an accurately reconstructed block segmentation mask with the minimum amount of data. The optimal solution is then applied to the packed frame 40, and the resulting bitstream 16 may be transmitted.
[0078] The encoding and decoding methods in Figures 2, 8, and 10, as well as the encoder 100 and decoder 200 in Figures 1 and 9, can be implemented in hardware, software, or a combination of both (for example, as firmware running on a hardware device). As long as one embodiment is partially or entirely implemented in software, the functional steps shown in the process flowchart can be performed by one or more appropriately programmed physical computing devices, such as a central processing unit (CPU) or graphics processing unit (GPU). Each process, and its individual component steps shown in the flowchart, can be performed by the same or different computing devices. According to one embodiment, a computer-readable storage medium stores a computer program containing computer program code configured to cause one or more physical computing devices to perform the encoding or decoding methods described above when the program is run on one or more physical computing devices.
[0079] Various modifications are possible to the embodiments described above. For example, in the above example, a block segmentation map was provided to the encoder. In some embodiments, the encoder may include a segmentation unit configured to receive a view 10 and to use chroma keying (or another segmentation algorithm) to generate a block segmentation mask 12.
[0080] In some embodiments, the first and second pixel values used in the block segmentation mask 12 may be chrominance values, depth values, or transparency values. If the block segmentation mask 12 contains two regions of interest, the first and second pixel values can be used to represent the first and second regions of interest, respectively, and a third pixel value can be used to represent the background region. For example, a value of 0 may represent the background, and values 128 and 255 may represent the first and second regions of interest (e.g., foreground objects). Widely spaced values like these would be suitable for lossy compression. Alternatively, values 1 and 2 may be used for the regions of interest, and value 0 for the background. Contiguous values like these would be suitable for lossless compression, where there is no risk of introducing deviations into the values.
[0081] In some embodiments, the packing unit 120 may generate two or more packed frames. The first packed frame may include two or more block segmentation masks 12. The second packed frame may include block image data 13. The two or more packed frames are passed to the video encoder 130. The video encoder 130 may encode a first bitstream comprising the first packed frames and a second bitstream comprising the second packed frames. The compression of the first bitstream may be lossless, and the compression of the second bitstream may be lossy.
[0082] It is not essential that the pixel blocks are the same size in all views. In some embodiments, some or all pixel blocks in a view may be of different sizes. Compression and decompression of packed frames can be performed using any suitable algorithm known in the art, such as H.264 or various MPEG codecs.
[0083] In some embodiments, the block segmentation mask 12 and block image data 13 do not need to be packed consecutively. For example, the block segmentation mask of the first view may be immediately followed by the block image data of the first view, and then the block segmentation mask and block image data of the second view, and so on.
[0084] The storage medium may include volatile and non-volatile computer memory such as RAM, PROM, EPROM, and EEPROM. The various storage mediums may be mounted within a computing device or be portable so that one or more programs stored in the storage medium are loaded into a processor.
[0085] Modifications of the disclosed embodiments can be understood and implemented by those skilled in the art in carrying out the claimed invention, based on a review of the drawings, the detailed description of the invention, and the appended claims. In the claims, the term “having” does not preclude other elements or steps, and the indefinite article “a” or “an” does not preclude plurality. A single processor or other unit can fulfill the functions of several items enumerated in the claims. The mere fact that certain means are described in different dependent claims does not imply that combinations of these means cannot be used advantageously. Where a computer program is described above, the computer program may be stored or distributed on a suitable medium, for example, an optical storage medium or a solid-state medium supplied together with or as part of other hardware, but may also be distributed in other forms, for example, via the Internet or other wired or wireless telecommunications systems. Where the term “adapted to” is used in the claims or specification, the term “adapted to” is equivalent to the term “configured to.” No reference numeral in the claims should be construed as limiting in scope.
Claims
1. 1. A method for encoding image or video data having two or more views of a scene, comprising the steps of: obtaining a respective view block segmentation mask and view block image data for each of the two or more views; generating at least one packed frame including two or more of the block segmentation masks and the block image data of the two or more views; and encoding the at least one packed frame into at least one bitstream. Each view is divided into blocks of pixels, each block of pixels in each of the views is represented by pixels in that view's respective block segmentation mask; the block segmentation mask indicates which blocks of pixels belong to a region of interest of the view; the region of interest is only a portion of the view; A method according to claim 1, wherein said block image data consists only of blocks of pixels that belong to said region of interest.
2. 2. The method of claim 1 , wherein the at least one packed frame comprises a packed frame having a first neighboring portion and a second neighboring portion, the first neighboring portion comprising the block segmentation masks of the two or more views, and the second neighboring portion comprising the block image data of the two or more views.
3. 3. A method according to claim 1 or 2, wherein the blocks of pixels in the block image data of a view are all the same size within that view, and optionally the blocks of pixels are all the same size in the block image data of all views.
4. 4. The method of claim 1, wherein the blocked image data of each different view is packed into the at least one packed frame in a block interleaved arrangement in which a first block of pixels of a first view is consecutively followed by a first block of pixels of a second view.
5. 4. The method of claim 1, wherein the blocked image data of each different view is packed into the at least one packed frame in a row-interleaved configuration, where a block of pixels of a first row of a first view is consecutively followed by a block of pixels of a first row of a second view.
6. 6. The method of claim 1, wherein encoding the at least one packed frame into the at least one bitstream uses a video compression algorithm, optionally using a standard video compression algorithm such as H.264 or HEVC.
7. selecting a quality factor of said video compression algorithm such that at least said block segmentation mask is reconstructable without errors from said at least one bitstream; and / or determining a number of quantization levels to be used in the video compression algorithm such that at least the block segmentation mask is reconstructable without error from the at least one bitstream; 7. The method of claim 6, comprising:
8. 8. The method of claim 1, further comprising the steps of quantizing the block segmentation mask to a first number of quantization levels and quantizing the block image data to a second number of quantization levels, the first number being different from the second number.
9. the at least one packed frame having a third portion, the third portion having depth data for the two or more views; and / or the at least one packed frame having a fourth portion, the fourth portion having transparency data for the two or more views; 9. The method according to any one of claims 1 to 8.
10. 1. A method for decoding image or video data having two or more views of a scene, comprising the steps of: receiving at least one bitstream in which at least one packed frame is encoded, the packed frame including, for each of the two or more views, a block segmentation mask for that view and block image data for that view; Each view is divided into blocks of pixels, for each view, the block image data consists only of blocks of pixels that belong to a region of interest in that view, and the block segmentation mask indicates the location of those blocks of pixels in that view; each block of pixels in each of the views is represented by pixels in that view's respective block segmentation mask; the region of interest is only a portion of the view; The method further comprises: decoding the at least one bitstream to obtain the at least one packed frame; reconstructing at least one of the two or more views by placing the block image data of the at least one view according to the positions indicated by the block segmentation mask for the at least one view; The method according to claim 1,
11. The method according to any one of claims 1 to 10, for use in live streaming multi-view video.
12. A computer program which, when executed by a computer, causes the computer to carry out the method according to any one of claims 1 to 11.
13. 1. An encoder configured to encode image or video data having two or more views of a scene, comprising: an input configured to obtain, for each of the two or more views, a respective view block segmentation mask and view block image data, Each view is divided into blocks of pixels, each block of pixels in each of the views is represented by pixels in that view's respective block segmentation mask; the block segmentation mask indicates which blocks of pixels belong to a region of interest of the view; the region of interest is only a portion of the view; an input unit, in which the block image data consists of only blocks of pixels that belong to the region of interest; a packing unit configured to generate at least one packed frame including two or more of the block segmentation masks and the block image data of the two or more views; a video encoder configured to encode the at least one packed frame into at least one bitstream; An encoder having
14. 1. A decoder configured to decode image or video data having two or more views of a scene, comprising: an input configured to receive at least one bitstream in which at least one packed frame including a respective block segmentation mask for each of the two or more views and block image data for the view is encoded, the bitstream including: Each view is divided into blocks of pixels, each block of pixels in each of the views is represented by pixels in that view's respective block segmentation mask; for each view, the block image data consists only of blocks of pixels that belong to a region of interest in that view, and the block segmentation mask indicates the location of those blocks of pixels in that view; an input, the region of interest being only a portion of the view; a video decoder configured to decode the at least one bitstream to obtain the at least one packed frame; and a reconstruction unit configured to reconstruct at least one of the two or more views by placing the block image data of the at least one view according to the positions indicated by the block segmentation mask for the at least one view; A decoder having
15. At least one bitstream encoded with image or video data having two or more views of a scene, at least one packed frame including, for each of two or more views, a respective block segmentation mask for that view and block image data for that view; Each view is divided into blocks of pixels, each block of pixels in each of the views is represented by pixels in that view's respective block segmentation mask; for each view, the block image data consists only of blocks of pixels that belong to a region of interest in that view, and the block segmentation mask indicates the location of those blocks of pixels in that view; The region of interest is only a portion of the view.
