METHOD AND CIRCUIT OF ASSIGNING SELECTED DEPTH VALUES TO RGB SUBPIXELS AND RECOVERING SELECTED DEPTH VALUES FROM RGB SUBPIXELS FOR COLORED DEPTH FRAME PACKING AND DEPACKING

20190320202 ยท 2019-10-17

    Inventors

    Cpc classification

    International classification

    Abstract

    A method comprises: obtaining two depth values from each of a first pixel depth value and a fourth pixel depth value, and obtaining one depth value from each of a second pixel depth value and a third pixel depth value; and assigning the two depth values obtained from the first pixel depth value to the R-subpixel and B-subpixel values of the first pixel, assigning the depth value obtained from the second pixel depth value to the R-subpixel, G-subpixel and B-subpixel values of the second pixel, assigning the depth value obtained from the third pixel depth value to the R-subpixel, G-subpixel and B-subpixel values of the third pixel, and assigning the two depth values obtained from the fourth pixel depth value to the G-subpixel value of the first pixel and the R-subpixel, G-subpixel and B-subpixel values of the fourth pixel.

    Claims

    1. A method of assigning selected depth values to RGB subpixels for a colored depth frame packing and depacking, wherein an RGB format comprises an R subpixel, a G subpixel and a B subpixel in order, a RGB depth frame comprises a group of four pixels, the R subpixels, G subpixels and B subpixels of the group of four pixels are vertically or horizontally arranged, the group of four pixels comprises a first pixel, a second pixel, a third pixel and a fourth pixel, the first pixel is located neighboring the second pixel and the third pixel, the fourth pixel is located neighboring the second pixel and the third pixel, and geometrical positions of the first pixel, the second pixel, the third pixel and the fourth pixel correspondingly have a first pixel depth value, a second pixel depth value, a third pixel depth value and a fourth pixel depth value, respectively, the method comprising: obtaining two depth values from each of the first pixel depth value and the fourth pixel depth value, and obtaining one depth value from each of the second pixel depth value and the third pixel depth value, wherein the six depth values obtained from the first pixel depth value, the second pixel depth value, the third pixel depth value and the fourth pixel depth value have interleaved positions; and assigning one of the two depth values obtained from the first pixel depth value to an R-subpixel value of the first pixel in a converted RGB format, assigning the other one of the two depth values obtained from the first pixel depth value to a B-subpixel value of the first pixel in the converted RGB format, assigning the depth value obtained from the second pixel depth value to an R-subpixel value, a G-subpixel value and a B-subpixel value of the second pixel in the converted RGB format, assigning the depth value obtained from the third pixel depth value to an R-subpixel value, a G-subpixel value and a B-subpixel value of the third pixel in the converted RGB format, assigning one of the two depth values obtained from the fourth pixel depth value to a G-subpixel value of the first pixel in the converted RGB format, and assigning the other one of the two depth values obtained from the fourth pixel depth value to an R-subpixel value, a G-subpixel value and a B-subpixel value of the fourth pixel in the converted RGB format.

    2. The method according to claim 1, wherein the step of obtaining the depth values is to obtain depth values of geometrical positions corresponding to the R subpixel and the B subpixel of the first pixel from the first pixel depth value, to obtain a depth value of a geometrical position corresponding to the G subpixel of the second pixel from the second pixel depth value, to obtain a depth value of a geometrical position corresponding to the G subpixel of the third pixel from the third pixel depth value, and to obtain depth values of geometrical positions corresponding to the R subpixel and the B subpixel of the fourth pixel from the fourth pixel depth value.

    3. The method according to claim 2, wherein the step of assigning to the pixels in the converted RGB format is to assign the depth value of the geometrical position corresponding to the R subpixel of the first pixel obtained from the first pixel depth value to the R-subpixel value of the first pixel in the converted RGB format, to assign the depth value of the geometrical position corresponding to the B subpixel of the first pixel obtained from the first pixel depth value to the B-subpixel value of the first pixel in the converted RGB format, to assign the depth value of the geometrical position corresponding to the G subpixel of the second pixel obtained from the second pixel depth value to the R-subpixel value, the G-subpixel value and the B-subpixel value of the second pixel in the converted RGB format, to assign the depth value of the geometrical position corresponding to the G subpixel of the third pixel obtained from the third pixel depth value to the R-subpixel value, the G-subpixel value and the B-subpixel value of the third pixel in the converted RGB format, to assign the depth value of the geometrical position corresponding to the R subpixel of the fourth pixel obtained from the fourth pixel depth value to the G-subpixel value of the first pixel in the converted RGB format, and to assign the depth value of the geometrical position corresponding to the B subpixel of the fourth pixel obtained from the fourth pixel depth value to the R-subpixel value, the G-subpixel value and the B-subpixel value of the fourth pixel in the converted RGB format.

    4. A method of assigning selected depth values to RGB subpixels for a colored depth frame packing and depacking, wherein an RGB format comprises an R subpixel, a G subpixel and a B subpixel in order, a RGB depth frame comprises a group of four pixels, the R subpixels, G subpixels and B subpixels of the group of four pixels are vertically or horizontally arranged, the group of four pixels comprises a first pixel, a second pixel, a third pixel and a fourth pixel, the first pixel is located neighboring the second pixel and the third pixel, the fourth pixel is located neighboring the second pixel and the third pixel, and geometrical positions of the first pixel, the second pixel, the third pixel and the fourth pixel correspondingly have a first pixel depth value, a second pixel depth value, a third pixel depth value and a fourth pixel depth value, respectively, the method comprising: obtaining two depth values from each of the first pixel depth value, the second pixel depth value, the third pixel depth value and the fourth pixel depth value; and assigning one of the two depth values obtained from the first pixel depth value to an R-subpixel value of the first pixel in a converted RGB format, assigning the other one of the two depth values obtained from the first pixel depth value to a B-subpixel value of the first pixel in the converted RGB format, assigning one of the two depth values obtained from the second pixel depth value to a G-subpixel value of the second pixel in the converted RGB format, assigning the other one of the two depth values obtained from the second pixel depth value to a B-subpixel value of the second pixel in the converted RGB format, assigning one of the two depth values obtained from the third pixel depth value to an R-subpixel value, a G-subpixel value and a B-subpixel value of the third pixel in the converted RGB format, assigning the other one of the two depth values obtained from the third pixel depth value to a G-subpixel value of the first pixel in the converted RGB format, assigning one of the two depth values obtained from the fourth pixel depth value to an R-subpixel value of the second pixel in the converted RGB format, and assigning the other one of the two depth values obtained from the fourth pixel depth value to an R-subpixel value, a G-subpixel value and a B-subpixel value of the fourth pixel in the converted RGB format.

    5. The method according to claim 4, wherein the step of obtaining the depth values is to obtain depth values of geometrical positions corresponding to the R subpixel and the B subpixel of the first pixel from the first pixel depth value, to obtain depth values of geometrical positions corresponding to the G subpixel and the B subpixel of the second pixel from the second pixel depth value, to obtain depth values of geometrical positions corresponding to the R subpixel and the G subpixel of the third pixel from the third pixel depth value, and to obtain depth values of geometrical positions corresponding to the R subpixel and the B subpixel of the fourth pixel from the fourth pixel depth value.

    6. The method according to claim 5, wherein the step of assigning to the pixels in the converted RGB format is to assign the depth value of the geometrical position corresponding to the R subpixel of the first pixel obtained from the first pixel depth value to the R-subpixel value of the first pixel in the converted RGB format, to assign the depth value of the geometrical position corresponding to the B subpixel of the first pixel obtained from the first pixel depth value to the B-subpixel value of the first pixel in the converted RGB format, to assign the depth value of the geometrical position corresponding to the G subpixel of the second pixel obtained from the second pixel depth value to the G-subpixel value of the second pixel in the converted RGB format, to assign the depth value of the geometrical position corresponding to the B subpixel of the second pixel obtained from the second pixel depth value to the B-subpixel value of the second pixel in the converted RGB format, to assign the depth value of the geometrical position corresponding to the R subpixel of the third pixel obtained from the third pixel depth value to the R-subpixel value, the G-subpixel value and the B-subpixel value of the third pixel in the converted RGB format, to assign the depth value of the geometrical position corresponding to the G subpixel of the third pixel obtained from the third pixel depth value to the G-subpixel value of the first pixel in the converted RGB format, to assign the depth value of the geometrical position corresponding to the R subpixel of the fourth pixel obtained from the fourth pixel depth value to the R-subpixel value of the second pixel in the converted RGB format, and to assign the depth value of the geometrical position corresponding to the B subpixel of the fourth pixel obtained from the fourth pixel depth value to the R-subpixel value, the G-subpixel value and the B-subpixel value of the fourth pixel in the converted RGB format.

    7. A method of assigning selected depth values to RGB subpixels for a colored depth frame packing and depacking, wherein an RGB format comprises an R subpixel, a G subpixel and a B subpixel in order, a RGB depth frame comprises a group of four pixels, the R subpixels, G subpixels and B subpixels of the group of four pixels are vertically or horizontally arranged, the group of four pixels comprises a first pixel, a second pixel, a third pixel and a fourth pixel, the first pixel is located neighboring the second pixel and the third pixel, the fourth pixel is located neighboring the second pixel and the third pixel, and geometrical positions of the first pixel, the second pixel, the third pixel and the fourth pixel correspondingly have a first pixel depth value, a second pixel depth value, a third pixel depth value and a fourth pixel depth value, respectively, the method comprising: obtaining two depth values from each of the first pixel depth value, the second pixel depth value, the third pixel depth value and the fourth pixel depth value; and assigning one of the two depth values obtained from the first pixel depth value to an R-subpixel value of the first pixel in a converted RGB format, assigning the other one of the two depth values obtained from the first pixel depth value to a G-subpixel value of the first pixel in the converted RGB format, assigning one of the two depth values obtained from the second pixel depth value to a B-subpixel value of the first pixel in the converted RGB format, assigning the other one of the two depth values obtained from the second pixel depth value to an R-subpixel value, a G-subpixel value and a B-subpixel value of the second pixel in the converted RGB format, assigning one of the two depth values obtained from the third pixel depth value to an R-subpixel value of the third pixel in the converted RGB format, assigning the other one of the two depth values obtained from the third pixel depth value to a G-subpixel value of the third pixel in the converted RGB format, assigning one of the two depth values obtained from the fourth pixel depth value to a B-subpixel value of the third pixel in the converted RGB format, and assigning the other one of the two depth values obtained from the fourth pixel depth value to an R-subpixel value, a G-subpixel value and a B-subpixel value of the fourth pixel in the converted RGB format.

    8. The method according to claim 7, wherein the step of obtaining the depth values is to obtain depth values of geometrical positions corresponding to the R subpixel and the G subpixel of the first pixel from the first pixel depth value, to obtain depth values of geometrical positions corresponding to the R subpixel and the B subpixel of the second pixel from the second pixel depth value, to obtain depth values of geometrical positions corresponding to the R subpixel and the G subpixel of the third pixel from the third pixel depth value, and to obtain depth values of geometrical positions corresponding to the R subpixel and the B subpixel of the fourth pixel from the fourth pixel depth value.

    9. The method according to claim 8, wherein the step of assigning to the pixels in the converted RGB format is to assign the depth value of the geometrical position corresponding to the R subpixel of the first pixel obtained from the first pixel depth value to the R-subpixel value of the first pixel in the converted RGB format, to assign the depth value of the geometrical position corresponding to the G subpixel of the first pixel obtained from the first pixel depth value to the G-subpixel value of the first pixel in the converted RGB format, to assign the depth value of the geometrical position corresponding to the R subpixel of the second pixel obtained from the second pixel depth value to the B-subpixel value of the first pixel in the converted RGB format, to assign the depth value of the geometrical position corresponding to the B subpixel of the second pixel obtained from the second pixel depth value to the R-subpixel value, the G-subpixel value and the B-subpixel value of the second pixel in the converted RGB format, to assign the depth value of the geometrical position corresponding to the R subpixel of the third pixel obtained from the third pixel depth value to the R-subpixel value of the third pixel in the converted RGB format, to assign the depth value of the geometrical position corresponding to the G subpixel of the third pixel obtained from the third pixel depth value to the G-subpixel value of the third pixel in the converted RGB format, to assign the depth value of the geometrical position corresponding to the R subpixel of the fourth pixel obtained from the fourth pixel depth value to the B-subpixel value of the third pixel in the converted RGB format, and to assign the depth value of the geometrical position corresponding to the B subpixel of the fourth pixel obtained from the fourth pixel depth value to the R-subpixel value, the G-subpixel value and the B-subpixel value of the fourth pixel in the converted RGB format.

    10. A method of assigning selected depth values to RGB subpixels for a colored depth frame packing and depacking, wherein an RGB format comprises an R subpixel, a G subpixel and a B subpixel in order, a RGB depth frame comprises a group of four pixels, the R subpixels, G subpixels and B subpixels of the group of four pixels are vertically or horizontally arranged, the group of four pixels comprises a first pixel, a second pixel, a third pixel and a fourth pixel, the first pixel is located neighboring the second pixel and the third pixel, the fourth pixel is located neighboring the second pixel and the third pixel, and geometrical positions of the first pixel, the second pixel, the third pixel and the fourth pixel correspondingly have a first pixel depth value, a second pixel depth value, a third pixel depth value and a fourth pixel depth value, respectively, the method comprising: obtaining one depth value from each of the first pixel depth value, the second pixel depth value, the third pixel depth value and the fourth pixel depth value, wherein the two depth values obtained from the first pixel depth value and the third pixel depth value have interleaved positions, and the two depth values obtained from the second pixel depth value and the fourth pixel depth value have interleaved positions; and assigning the depth value obtained from the first pixel depth value to an R-subpixel value, a G-subpixel value and a B-subpixel value of the first pixel in a converted RGB format, assigning the depth value obtained from the second pixel depth value to an R-subpixel value, a G-subpixel value and a B-subpixel value of the second pixel in the converted RGB format, assigning the depth value obtained from the third pixel depth value to an R-subpixel value, a G-subpixel value and a B-subpixel value of the third pixel in the converted RGB format, assigning the depth value obtained from the fourth pixel depth value to an R-subpixel value, a G-subpixel value and a B-subpixel value of the fourth pixel in the converted RGB format.

    11. The method according to claim 10, wherein the step of obtaining the depth values is to obtain a depth value of a geometrical position corresponding to the R subpixel of the first pixel from the first pixel depth value, to obtain a depth value of a geometrical position corresponding to the G subpixel of the second pixel from the second pixel depth value, to obtain a depth value of a geometrical position corresponding to the G subpixel of the third pixel from the third pixel depth value, and to obtain a depth value of a geometrical position corresponding to the B subpixel of the fourth pixel from the fourth pixel depth value.

    Description

    BRIEF DESCRIPTION OF THE DRAWINGS

    [0029] The disclosure will become more fully understood from the detailed description and accompanying drawings, which are given for illustration only, and thus are not limitative of the present disclosure, and wherein:

    [0030] FIGS. 1A and 1B are schematic diagrams showing the conversions between RGB format and YUV (YCbCr) format of the subpixels of the depth vertical pixels and the depth horizontal pixels, respectively;

    [0031] FIGS. 2A and 2B are schematic diagrams showing the depth vertical packages and the depth horizontal packages transmitted in YUV444 format, YUV422 format, and YUV420 format;

    [0032] FIG. 3A is a flow chart showing a method of assigning selected depth values to RGB subpixels for colored depth frame packing and depacking according to an embodiment of the disclosure;

    [0033] FIG. 3B is a schematic block diagram showing a circuit of assigning selected depth values to RGB subpixels for colored depth frame packing and depacking according to an embodiment of the disclosure;

    [0034] FIG. 4A is a schematic diagram showing a group of four pixels in the depth frame according to an embodiment of the disclosure;

    [0035] FIGS. 4B and 4C are schematic diagrams showing the RGB format of the group of four pixels and the corresponding depth values of the geometrical positions thereof according to an embodiment of the disclosure;

    [0036] FIGS. 5A and 5B are schematic diagrams showing the conversion and inverse conversion in color space between RGB format and YCbCr format in the video coding system according to different embodiments of this disclosure;

    [0037] FIG. 6A is a flow chart showing a method of recovering the selected depth values from the RGB subpixels for colored depth frame packing and depacking according to an embodiment of this disclosure;

    [0038] FIG. 6B is a block diagram showing a circuit of recovering the selected depth values from the RGB subpixels for colored depth frame packing and depacking according to an embodiment of this disclosure;

    [0039] FIG. 7A is a flow chart showing a method of assigning selected depth values to RGB subpixels for colored depth frame packing and depacking according to another embodiment of the disclosure;

    [0040] FIGS. 7B and 7C are schematic diagrams showing the RGB format of a group of four pixels and the corresponding depth values of the geometrical positions thereof according to another embodiment of the disclosure;

    [0041] FIG. 7D is a flow chart showing a method of recovering the selected depth values from the RGB subpixels for colored depth frame packing and depacking according to another embodiment of the disclosure;

    [0042] FIG. 8A is a flow chart showing a method of assigning selected depth values to RGB subpixels for colored depth frame packing and depacking according to another embodiment of the disclosure;

    [0043] FIG. 8B is a schematic diagram showing the RGB format of a group of four pixels and the corresponding depth values of the geometrical positions thereof according to another embodiment of the disclosure;

    [0044] FIG. 8C is a flow chart showing a method of recovering the selected depth values from the RGB subpixels for colored depth frame packing and depacking according to another embodiment of the disclosure;

    [0045] FIG. 9A is a flow chart showing a method of assigning selected depth values to RGB subpixels for colored depth frame packing and depacking according to another embodiment of the disclosure;

    [0046] FIG. 9B is a schematic diagram showing the RGB format of a group of four pixels and the corresponding depth values of the geometrical positions thereof according to another embodiment of the disclosure; and

    [0047] FIG. 9C is a flow chart showing a method of recovering the selected depth values from the RGB subpixels for colored depth frame packing and depacking according to another embodiment of the disclosure.

    DETAILED DESCRIPTION OF THE DISCLOSURE

    [0048] The present disclosure will be apparent from the following detailed description, which proceeds with reference to the accompanying drawings, wherein the same references relate to the same elements.

    [0049] The method and circuit of assigning selected depth values to RGB subpixels (conversion) and recovering the selected depth values from the RGB subpixels (inverse conversion) of this disclosure can be applied to the packing and depacking of 3D depth system. In addition, the assigning method, the recovering method and the circuits thereof of the present disclosure can be applied to the compression and transmission of gray scale image signals. This disclosure can be applied to the above-mentioned high performance video compression and decompression system, and be preferably applied to the packing and depacking techniques of the 3D image system disclosed by the inventors in U.S. patent application Ser. Nos. 14/504,901, 14/504,936, 14/505,117 and 14/505,153, wherein each of the above references is incorporated herein in its entirety by reference.

    [0050] In the conventional high performance video compression and decompression system, the image data are transformed from the RGB format to the YCbCr (YUV) format, and then transmitted to the receiving end. After the receiving end receives the image data in YCbCr (YUV) format, the image data are transformed from the YCbCr (YUV) format to the RGB format. This disclosure still utilizes the above packing and depacking procedures. In order to achieve a better conversion to recover the original depth values, this disclosure will assign (deposit) the selected depth values in the corresponding geometrical positions of the RGB subpixels in a group of four pixels of the depth frame to the corresponding RGB subpixels, and then convert the RGB format to the YCbCr 4:2:2, YCbCr 4:2:0 or YCbCr 4:0:0 format. The image data is then coded and transmitted. After the receiving end receives the image data in YCbCr 4:2:2, YCbCr 4:2:0 or YCbCr 4:0:0 format, the image data in YCbCr 4:2:2, YCbCr 4:2:0 or YCbCr 4:0:0 format are decompressed and converted to the RGB format. Afterwards, the recovering (inverse conversion) method of this disclosure is performed to recover the depth values so as to obtain the above selected depth values. This procedures can improve the distortion around the area having large (or dramatic) depth gap. Accordingly, the assigning method of this disclosure is the procedure of assigning (depositing) the selected depth values to the positions of the RGB subpixels, and the recovering method of this disclosure is the procedure of recovering the selected depth values from the RGB format, which is decompressed and inverse converted in chrominance space. Different embodiments will be described hereinafter for illustrating the method and circuit of assigning selected depth values to RGB subpixels and recovering the selected depth values from the RGB subpixels for colored depth frame packing and depacking of this disclosure.

    [0051] In the following descriptions, the coding and decoding system adopts YCbCr 4:0:0 format.

    [0052] FIG. 3A is a flow chart showing a method of assigning selected depth values to RGB subpixels for colored depth frame packing and depacking according to an embodiment of the disclosure, and FIG. 3B is a schematic block diagram showing a circuit 1a of assigning selected depth values to RGB subpixels for colored depth frame packing and depacking according to an embodiment of the disclosure.

    [0053] The gray-level image data is a depth frame, which can be originally in the RGB format. The RGB format includes an R subpixel, a G subpixel and a B subpixel. The image data in the RGB format may include at least a group of four pixels. In other words, each group includes four neighboring pixels. Therefore, the pixels of all groups in the image data can be converted to the YCbCr format before the coding and transmitting processes. The four pixels of each group can be arranged in vertical or in horizontal and can be a first pixel, a second pixel, a third pixel and a fourth pixel. The first pixel is arranged neighboring the second pixel and the third pixel, and the fourth pixel is arranged neighboring the second pixel and the third pixel. In this embodiment, four pixels in one group includes twelve subpixels. The R, G and B subpixels of each pixel are arranged in vertical, which means that the R, G and B subpixels of each pixel are arranged in one column. The R, G and B subpixels of each pixel are arranged in horizontal, which means that the R, G and B subpixels of each pixel are arranged in one row. The geometrical positions of the first pixel, the second pixel, the third pixel and the fourth pixel correspondingly have a first pixel depth value, a second pixel depth value, a third pixel depth value and a fourth pixel depth value, respectively. Since each pixel has multiple subpixels arranged in horizontal or in vertical, the first pixel depth value, the second pixel depth value, the third pixel depth value and the fourth pixel depth value, which have geometrical positions corresponding to the first pixel, the second pixel, the third pixel and the fourth pixel, respectively, are corresponding to the three depth values of the R subpixel, the G subpixel and the B subpixel.

    [0054] The conversion method of FIG. 3A can be applied to the four pixels arranged in vertical and/or in horizontal, wherein the coding and decoding system adopts YCbCr 4:0:0 format. As shown in FIG. 3A, the method of assigning selected depth values to RGB subpixels for a colored depth frame packing and depacking comprises a step S01 and a step S02. The step S01 is to obtain one depth value from each of the first pixel depth value, the second pixel depth value, the third pixel depth value and the fourth pixel depth value, wherein the two depth values obtained from the first pixel depth value and the third pixel depth value have interleaved positions, and the two depth values obtained from the second pixel depth value and the fourth pixel depth value have interleaved positions. To be noted, the depth values having interleaved positions mean that the depth values are not located at the same column or row. The step S02 is to assign the depth value obtained from the first pixel depth value to an R-subpixel value, a G-subpixel value and a B-subpixel value of the first pixel in a converted RGB format, to assign the depth value obtained from the second pixel depth value to an R-subpixel value, a G-subpixel value and a B-subpixel value of the second pixel in the converted RGB format, to assign the depth value obtained from the third pixel depth value to an R-subpixel value, a G-subpixel value and a B-subpixel value of the third pixel in the converted RGB format, and to assign the depth value obtained from the fourth pixel depth value to an R-subpixel value, a G-subpixel value and a B-subpixel value of the fourth pixel in the converted RGB format. The step S01 is to obtain the depth value corresponding to the geometrical position of the R subpixel of the first pixel from the first pixel depth value, to obtain the depth value corresponding to the geometrical position of the G subpixel of the second pixel from the second pixel depth value, to obtain the depth value corresponding to the geometrical position of the G subpixel of the third pixel from the third pixel depth value, and to obtain the depth value corresponding to the geometrical position of the B subpixel of the fourth pixel from the fourth pixel depth value.

    [0055] In addition, as shown in FIG. 3B, the circuit 1a of this embodiment comprises an obtaining unit 11 and a depositing unit 12. The obtaining unit 11 is configured for obtaining one depth value from each of the first pixel depth value, the second pixel depth value, the third pixel depth value and the fourth pixel depth value. The two depth values obtained from the first pixel depth value and the third pixel depth value have interleaved positions, and the two depth values obtained from the second pixel depth value and the fourth pixel depth value have interleaved positions. The depositing unit 12 is configured for assigning the depth value obtained from the first pixel depth value to an R-subpixel value, a G-subpixel value and a B-subpixel value of the first pixel in a converted RGB format, assigning the depth value obtained from the second pixel depth value to an R-subpixel value, a G-subpixel value and a B-subpixel value of the second pixel in the converted RGB format, assigning the depth value obtained from the third pixel depth value to an R-subpixel value, a G-subpixel value and a B-subpixel value of the third pixel in the converted RGB format, assigning the depth value obtained from the fourth pixel depth value to an R-subpixel value, a G-subpixel value and a B-subpixel value of the fourth pixel in the converted RGB format. In this embodiment, the obtaining unit 11 and the depositing unit 12 can be carried out by hardware circuits or firmware. In addition, the circuit 1a may comprise a memory unit (not shown), which is electrically connected with the obtaining unit 11 and the depositing unit 12, for storing the subpixel values and depth values before and after the assigning step and/or the recovering step. In one embodiment, the circuit 1a may include, for example, an adder, a subtractor, a multiplier, and/or a divider.

    [0056] FIG. 4A is a schematic diagram showing a group of four pixels in the depth frame according to an embodiment of the disclosure, and FIGS. 4B and 4C are schematic diagrams showing the RGB format of the group of four pixels and the corresponding depth values of the geometrical positions thereof according to an embodiment of the disclosure. In this embodiment, FIG. 4B shows four pixels arranged in vertical and four pixel depth values, and FIG. 4C shows four pixels arranged in horizontal and four pixel depth values.

    [0057] As shown in FIG. 4A, the size (resolution) of the depth frame is, for example, H W. Each group of four pixels comprises four neighboring pixels {C.sub.i,j, C.sub.i+1,j, C.sub.i,j+1, C.sub.i+1,j+1}, and each pixel comprises three subpixels (e.g. R, G and B subpixels). The R, G and B subpixels of each pixel can be arranged in vertical as shown in FIG. 4B, wherein the first pixel comprises {R.sub.i,j, G.sub.i,j, B.sub.i,j}, the second pixel comprises {R.sub.i+1,j, G.sub.i+1,j, B.sub.i+1,j}, the third pixel comprises {R.sub.i,j+1, G.sub.i,j+1, B.sub.i,j+1}, and the fourth pixel comprises {R.sub.i+1,j+1, G.sub.i+1,j+1, B.sub.i+1,j+1}. Alternatively, the R, G and B subpixels of each pixel can be arranged in horizontal as shown in FIG. 4C, wherein the first pixel comprises {R.sub.i,j, G.sub.i,j, B.sub.i,j}, the second pixel comprises {R.sub.i,j+1, G.sub.i,j+1, B.sub.i,j+1}, the third pixel comprises {R.sub.i+1,j, G.sub.i+1,j, B.sub.i+1,j}, and the fourth pixel comprises {R.sub.i+1,j+1, G.sub.i+1,j+1, B.sub.i+1,j+1}. The geometrical positions of the first pixel, the second pixel, the third pixel and the fourth pixel correspondingly have a first pixel depth value, a second pixel depth value, a third pixel depth value and a fourth pixel depth value, respectively. Since each pixel comprises three subpixels, each pixel depth value corresponding to the geometrical position also comprises three depth values. In the vertical arrangement (FIG. 4B), the first pixel depth value is {D.sub.3i,j, D.sub.3i+1,j, D.sub.3i+2,j}, the second pixel depth value is {D.sub.3i+3j, D.sub.3i+4j, D.sub.3i+5j}, the third pixel depth value is {D.sub.3i,j+1, D.sub.3i+1,j+1, D.sub.3i+2,j+1}, and the fourth pixel depth value is {D.sub.3i+3,j+1, D.sub.3i+4,j, D.sub.3i+5,j}. Accordingly, the size thereof becomes 3HW. In the horizontal arrangement (FIG. 4C), the first pixel depth value is {D.sub.i,3j, D.sub.i,3j+1, D.sub.i,3j+2)}, the second pixel depth value is {D.sub.i,3j+3, D.sub.i,3j+4, D.sub.i,3j+5}, the third pixel depth value is {D.sub.i+1,3j, D.sub.i+1,3j+1, D.sub.i+1,3j+2)}, and the fourth pixel depth value is {D.sub.i+1,3j+3, D.sub.i+1,3j+4, D.sub.i+1,3j+5}. Accordingly, the size thereof becomes H3W. Herein, i=0, 2, 4 . . . , (H2), and j=0, 2, 4 . . . , (W2).

    [0058] Referring to FIG. 4B, in the RGB format, the first pixel comprises three subpixels (1) arranged in vertical at the up-left corner, the second pixel comprises three subpixels (2) arranged in vertical at the down-left corner, the third pixel comprises three subpixels (3) arranged in vertical at the up-right corner, and the fourth pixel comprises three subpixels (4) arranged in vertical at the down-right corner. Referring to FIG. 4C, in the RGB format, the first pixel comprises three subpixels (1) arranged in horizontal at the up-left corner, the second pixel comprises three subpixels (2) arranged in horizontal at the up-right corner, the third pixel comprises three subpixels (3) arranged in horizontal at the down-left corner, and the fourth pixel comprises three subpixels (4) arranged in horizontal at the down-right corner. This disclosure is not limited thereto. In some embodiments, the positions of the first to fourth pixels can be changed, and any configuration, which matches the rules that the first pixel is located neighboring the second pixel and the third pixel and the fourth pixel is located neighboring the second pixel and the third pixel, is acceptable.

    [0059] Specifically, when the coding and decoding system adopts the YCbCr 4:0:0 format, in the four pixels of the embodiment as shown in FIGS. 4B and 4C, the obtaining unit 11 obtains the depth value (D.sub.3i,j in FIG. 4B, and D.sub.i,3j in FIG. 4C) of the geometrical position corresponding to the R subpixel of the first pixel from the first pixel depth value, the depth value (D.sub.3i+4,j in FIG. 4B, and D.sub.i,3j+4 in FIG. 4C) of the geometrical position corresponding to the G subpixel of the second pixel from the second pixel depth value, the depth value (D.sub.3i+1,j+1 in FIG. 4B, and D.sub.i+1,3j+1 in FIG. 4C) of the geometrical position corresponding to the G subpixel of the third pixel from the third pixel depth value, and the depth value (D.sub.3i+5,j+1 in FIG. 4B, and D.sub.i+1,3j+5 in FIG. 4C) of the geometrical position corresponding to the B subpixel of the fourth pixel from the fourth pixel depth value. In other words, four depth values D.sub.3i,j, D.sub.3i+4,j, D.sub.3i+1,j+1 and D.sub.3i+5,j+1 are obtained from the vertically arranged pixel depth values, or four depth values D.sub.i,3j, D.sub.i,3j+4, D.sub.i+1,3j+1 and D.sub.i+1,3j+5 are obtained from the horizontally arranged pixel depth values. In this case, the depth values D.sub.3i,j and D.sub.3i+1,j+1 have interleaved positions, and the depth values D.sub.i,3j+4 and D.sub.i+1,3j+5 have interleaved positions. In other words, only four depth values are selected from the vertically or horizontally arranged pixel depth values, and then used in the following packing and depacking processes.

    [0060] Next, the depositing unit 12 is configured for assigning the depth value obtained from the first pixel depth value to an R-subpixel value, a G-subpixel value and a B-subpixel value of the first pixel in a converted RGB format, assigning the depth value obtained from the second pixel depth value to an R-subpixel value, a G-subpixel value and a B-subpixel value of the second pixel in the converted RGB format, assigning the depth value obtained from the third pixel depth value to an R-subpixel value, a G-subpixel value and a B-subpixel value of the third pixel in the converted RGB format, assigning the depth value obtained from the fourth pixel depth value to an R-subpixel value, a G-subpixel value and a B-subpixel value of the fourth pixel in the converted RGB format. Specifically, in the packing step for the case of FIG. 4B (vertical arrangement), the four selected depth values are assigned (deposited) to the twelve RGB subpixels as follow:


    R.sub.i,j=G.sub.i,j=B.sub.i,j=D.sub.3i,j,(1)


    R.sub.i+1,j=G.sub.i+1,j=B.sub.i+1,j=D.sub.3i+4,j,(2)


    R.sub.i,j+1=G.sub.i,j+1=B.sub.i,j+1=D.sub.3i+1,j+1,(3)


    R.sub.i+1,j+1=G.sub.i+1,j+1=B.sub.i+1,j+1=D.sub.3i+5,j+1(4)

    [0061] Alternatively, in the packing step for the case of FIG. 4C (horizontal arrangement), the four selected depth values are assigned (deposited) to the twelve RGB subpixels as follow:


    R.sub.i,j=G.sub.i,j=B.sub.i,j=D.sub.i,3j,(5)


    R.sub.i,j+1=G.sub.i,j+1=B.sub.i,j+1=D.sub.i,3j+4,(6)


    R.sub.i+1,j=G.sub.i+1,j=B.sub.i+1,j=D.sub.i+1,3j+1,(7)


    R.sub.i+1,j+1=G.sub.i+1,j+1=B.sub.i+1,j+1=D.sub.i+1,3j+5(8)

    [0062] Accordingly, the twelve subpixel values in the converted RGB format can be obtained according to the selected four depth values.

    [0063] FIGS. 5A and 5B are schematic diagrams showing the conversion and inverse conversion in color space between RGB format and YCbCr format in the video coding system according to different embodiments of this disclosure.

    [0064] Referring to FIGS. 4B and 4C in view of FIGS. 5A and 5B, since the above equations (1)(4) or (5)(8) are to assign the same depth value to the RGB subpixel values of one pixel, all Chroma parameter values (Cb, Cr) will be equal to 128 after processed by the conversion matrix of RGB to YCbCr Chroma space conversion (Table 1). Accordingly, the four RGB format pixels having the selected depth values can be converted to obtain four YCbCr format data of {Y.sub.i,j, 128, 128}, {Y.sub.i,j+1, 128, 128}, {Y.sub.i+1,j, 128, 128} and {Y.sub.i+1,j+1, 128, 128}. Normally, as shown in FIG. 5A, with ignoring the coding error, the four YCbCr format data of {Y.sub.i,j, 128, 128}, {Y.sub.i,j+1, 128, 128}, {Y.sub.i+1,j, 128, 128} and {Y.sub.i+1,j+1, 128, 128} can be processed by the image coding system to obtain four encoded data of {Y.sub.i,j, Cb.sub.i,j, Cr.sub.i,j}, {Y.sub.i,j+1, Cb.sub.i,j, Cr.sub.i,j}, {Y.sub.i+1,j, Cb.sub.i,j, Cr.sub.i,j} and {Y.sub.i+1,j+1, Cb.sub.i,j, Cr.sub.i,j}.

    [0065] After the receiving end receives these data followed by the decompression process, four data of {Y.sub.i,j, Cb.sub.i,j, Cr.sub.i,j}, {Y.sub.i,j+1, Cb.sub.i,j, Cr.sub.i,j}, {Y.sub.i+1,j, Cb.sub.i,j, Cr.sub.i,j} and {Y.sub.i+1,j+1, Cb.sub.i,j, Cr.sub.i,j} can be obtained (see FIG. 5A). Then, the Chroma parameters are adjusted to recover and obtain the four original YCbCr format data. Afterwards, the inverse conversion matrix of YCbCr to RGB Chroma space conversion (Table 2) is applied to the obtained four original YCbCr format data for recovering the original four groups of RGB format subpixels (totally 12 subpixels) of {R.sub.i,j, G.sub.i,j, B.sub.i,j}, {R.sub.i+1,j, G.sub.i+1,j, B.sub.i+1,j}, {R.sub.i,j+1, G.sub.i,j+1, B.sub.i,j+1} and {R.sub.i+1,j+1, G.sub.i+1,j+1, B.sub.i+1,j+1}. To be noted, the recovered twelve subpixel values can satisfy the above equations (1)(4) and (5)(8) and comprise the above-mentioned four selected depth values (D.sub.3i,j, D.sub.3i+4,j, D.sub.3i+1,j+1 and D.sub.3i+5,j+1 in the vertical arrangement, and D.sub.i,3j, D.sub.i,3j+4, D.sub.i+1,3j+1 and D.sub.i+1,3j+5 in the horizontal arrangement).

    [0066] Normally, as shown in FIG. 5B, with ignoring the coding error, the four YCbCr format data of {Y.sub.i,j, 128, 128}, {Y.sub.i,j+1, 128, 128}, {Y.sub.i+1,j, 128, 128} and {Y.sub.1+1,j+1, 128, 128} can be processed by the image coding system to obtain four encoded data of {Y.sub.i,j, Cb.sub.i,j, Cr.sub.i,j}, {Y.sub.i,j+1, Cb.sub.i,j, Cr.sub.i,j}, {Y.sub.i+1,j, Cb.sub.i,j, Cr.sub.i,j} and {Y.sub.i+1,j+1, Cb.sub.i,j, Cr.sub.i,j}. After the Chroma space conversion (from YCbCr to RGB), four groups of RGB format data can be obtained (see FIG. 5B). Accordingly, the receiving end cannot directly obtain the above four data of {Y.sub.i,j, Cb.sub.i,j, Cr.sub.i,j}, {Y.sub.i,j+1, Cb.sub.i,j, Cr.sub.i,j}, {Y.sub.i+1,j, Cb.sub.i,j, Cr.sub.i,j} and {Y.sub.i+1,j+1, Cb.sub.i,j, Cr.sub.i,j} during the decomprssion procedure, but can obtain the converted four groups of RGB format data only. Thus, an additional Chroma space conversion for converting the RGB format data to the YCbCr format data is performed in advance for obtaining {Y.sub.i,j, Cb.sub.i,j, Cr.sub.i,j}, {Y.sub.i,j+1, Cb.sub.i,j, Cr.sub.i,j}, {Y.sub.i+1,j, Cb.sub.i,j, Cr.sub.i,j} and {Y.sub.i+1,j+1, Cb.sub.i,j, Cr.sub.i,j}. Then, the Chroma parameters are adjusted to recover and obtain the four original YCbCr format data of {Y.sub.i,j, 128, 128}, {Y.sub.i,j+1, 128, 128}, {Y.sub.i+1,j, 128, 128} and {Y.sub.i+1,j+1, 128, 128}. Afterwards, the inverse conversion matrix of YCbCr to RGB Chroma space conversion is applied to the obtained four original YCbCr format data for recovering the original four groups of RGB format subpixels (totally 12 subpixels) of {R.sub.i,j, G.sub.i,j, B.sub.i,j}, {R.sub.i+1,j, G.sub.i+1,j, B.sub.i+1,j}, {R.sub.i,j+1, G.sub.i,j+1, B.sub.i,j+1} and {R.sub.i+1,j+1, G.sub.i+1,j+1, B.sub.i+1,j+1}. To be noted, the recovered twelve subpixel values can satisfy the above equations (1)(4) and (5)(8) and comprise the above-mentioned four selected depth values (D.sub.3i,j, D.sub.3i+4,j, D.sub.3i+1,j+1 and D.sub.3i+5,j+1 in the vertical arrangement, and D.sub.i,3j, D.sub.i,3j+4, D.sub.i+1,3j+1 and D.sub.i+1,3j+5 in the horizontal arrangement).

    [0067] Accordingly, the four selected depth values can be directly obtained without adjustment by the method of recovering the selected depth values from the RGB subpixels for colored depth frame packing and depacking of this disclosure. The detailed content of the method of recovering the selected depth values from the RGB subpixels will be described hereinafter with reference to FIGS. 6A and 6B in view of FIGS. 4B and 4C.

    [0068] FIG. 6A is a flow chart showing a method of recovering the selected depth values from the RGB subpixels for colored depth frame packing and depacking according to an embodiment of this disclosure, and FIG. 6B is a block diagram showing a circuit 2a of recovering the selected depth values from the RGB subpixels for colored depth frame packing and depacking according to an embodiment of this disclosure. The recovering method of FIG. 6A can be applied to the four pixels arranged in vertical or in horizontal, wherein the coding and decoding system adopts YCbCr 4:0:0 format. The recovering (inverse conversion) method of FIG. 6A is corresponding to the assigning (conversion) method of FIG. 3A.

    [0069] As mentioned above, after the processes of the video compression and decompression system and the Chroma space conversion and inverse conversion as shown in FIGS. 5A and 5B, the twelve original RGB format subpixels of {R.sub.i,j, G.sub.i,j, B.sub.i,j}, {R.sub.i+1,j, G.sub.i+1,j, B.sub.i+1,j}, {R.sub.i,j+1, G.sub.i,j+1, B.sub.i,j+1} and {R.sub.i+1,j+1, G.sub.i+1,j+1, B.sub.i+1,j+1} can be obtained. The twelve subpixel values can satisfy the above equations (1)(4) and (5)(8) and comprise the above-mentioned four selected depth values (D.sub.3i,j, D.sub.3i+4,j, D.sub.3i+1,j+1 and D.sub.3i+5,j+1 in the vertical arrangement, and D.sub.i,3j, D.sub.i,3j+4, D.sub.i+1,3j+1 and D.sub.i+1,3j+5 in the horizontal arrangement). Accordingly, the method of recovering the selected depth values from the RGB subpixels of this disclosure can recover the obtained RGB format data to obtain four selected depth values.

    [0070] As shown in FIG. 6A, the method of recovering the selected depth values from the RGB subpixels for colored depth frame packing and depacking comprises a step T01 and a step T02. The step T01 is to obtain the R-subpixel value of the first pixel of the group of four pixels in the RGB format, to obtain the G-subpixel value of the second pixel of the group of four pixels in the RGB format, to obtain the G-subpixel value of the third pixel of the group of four pixels in the RGB format, and to obtain the B-subpixel value of the fourth pixel of the group of four pixels in the RGB format. The step T02 is to assign the R-subpixel value of the first pixel to a geometrical position in the first pixel depth value corresponding to the R-subpixel value of the first pixel, to assign the G-subpixel value of the second pixel to a geometrical position in the second pixel depth value corresponding to the G-subpixel value of the second pixel, to assign the G-subpixel value of the third pixel to a geometrical position in the third pixel depth value corresponding to the G-subpixel value of the third pixel, and to assign the B-subpixel value of the fourth pixel to a geometrical position in the fourth pixel depth value corresponding to the B-subpixel value of the fourth pixel.

    [0071] Specifically, when the coding and decoding system adopts the YCbCr 4:0:0 format, in the four pixels of the embodiment as shown in FIG. 6B, the circuit 2a comprises an obtaining unit 21 and a depositing unit 22. The obtaining unit 21 is electrically connected with the depositing unit 22. The obtaining unit 21 is configured for obtaining the R-subpixel value of the first pixel of the group of four pixels in the RGB format, obtaining the G-subpixel value of the second pixel of the group of four pixels in the RGB format, obtaining the G-subpixel value of the third pixel of the group of four pixels in the RGB format, and obtaining the B-subpixel value of the fourth pixel of the group of four pixels in the RGB format. The depositing unit 22 is configured for assigning the R-subpixel value of the first pixel to a geometrical position in the first pixel depth value corresponding to the R-subpixel value of the first pixel, assigning the G-subpixel value of the second pixel to a geometrical position in the second pixel depth value corresponding to the G-subpixel value of the second pixel, assigning the G-subpixel value of the third pixel to a geometrical position in the third pixel depth value corresponding to the G-subpixel value of the third pixel, and assigning the B-subpixel value of the fourth pixel to a geometrical position in the fourth pixel depth value corresponding to the B-subpixel value of the fourth pixel. In this embodiment, the obtaining unit 21 and the depositing unit 22 can be carried out by hardware circuits or firmware. In addition, the circuit 2a may comprise a memory unit (not shown), which is electrically connected with the obtaining unit 21 and the depositing unit 22, for storing the subpixel values and depth values before and after the assigning step and/or the recovering step. In one embodiment, the circuit 2a may include, for example, an adder, a subtractor, a multiplier, and/or a divider.

    [0072] The recovering method will be described hereinafter with reference to FIGS. 4B and 4C. Specifically, in the depacking step for the case of FIG. 4B (vertical arrangement), the subpixel values of the twelve RGB subpixels obtained by the Chroma space inverse conversion of the receiving end can be recovered to obtain the four selected depth values as follow:


    D.sub.3i,j=R.sub.i,j,(9)


    D.sub.3i+4,j=G.sub.i+1,j,(10)


    D.sub.3i+1,j+1=G.sub.i,j+1,(11)


    D.sub.3i+5j+1=B.sub.i+1,j+1.(12)

    [0073] In the depacking step for the case of FIG. 4C (horizontal arrangement), the subpixel values of the twelve RGB subpixels obtained by the Chroma space inverse conversion of the receiving end can be recovered to obtain the four selected depth values as follow:


    D.sub.i,3j=R.sub.i,j,(13)


    D.sub.i,3j+4=G.sub.i,j+1,(14)


    D.sub.i+1,3j+1=G.sub.i+1,j,(15)


    D.sub.i+1,3j+5=B.sub.i+1,j+1(16)

    [0074] Accordingly, the RGB format data obtained by the Chroma space inverse conversion of the receiving end can be directly recovered without any adjustment to obtain the above-mentioned four selected depth values. The other eight depth values can be obtained by interpolation method according to the four selected depth values and the related conversion information, thereby obtaining a better conversion to recover the original depth values. Compared with the conventional art, which replaces the lacked Chroma values by the remained neighboring Chroma values, this embodiment can directly recover multiple depth values of the image data from the obtained RGB format data, thereby improving the distortion around the area having large (or dramatic) depth gap. The detailed technical content of the interpolation method can be referred to Taiwan Patent Application No. 106135377 filed by the inventor of this disclosure, wherein the above reference is incorporated herein in its entirety by reference.

    [0075] The embodiment in which the coding and decoding system adopts YCbCr 4:2:0 format will be described hereinafter.

    [0076] FIG. 7A is a flow chart showing a method of assigning selected depth values to RGB subpixels for colored depth frame packing and depacking according to another embodiment of the disclosure.

    [0077] The four pixels of each group can be arranged in vertical or in horizontal, and the four pixels comprises a first pixel, a second pixel, a third pixel and a fourth pixel. The first pixel is located neighboring the second pixel and the third pixel, and the fourth pixel is located neighboring the second pixel and the third pixel. In this embodiment, each group of four pixels totally comprises twelve subpixels. The R subpixel, the G subpixel and the B subpixel of each pixel can be arranged in vertical, which means that the R subpixel, the G subpixel and the B subpixel of each pixel of each pixel are disposed in the same column. Alternatively, the R subpixel, the G subpixel and the B subpixel of each pixel can be arranged in horizontal, which means that the R subpixel, the G subpixel and the B subpixel of each pixel of each pixel are disposed in the same row. In addition, the geometrical positions of the first pixel, the second pixel, the third pixel and the fourth pixel correspondingly have a first pixel depth value, a second pixel depth value, a third pixel depth value and a fourth pixel depth value, respectively. In other words, the geometrical position of the first pixel correspondingly has a first pixel depth value, the geometrical position of the second pixel correspondingly has a second pixel depth value, the geometrical position of the third pixel correspondingly has a third pixel depth value, and the geometrical position of the fourth pixel correspondingly has a fourth pixel depth value. Since each pixel has vertically or horizontally arranged subpixels, each of the first pixel depth value, the second pixel depth value, the third pixel depth value and the fourth pixel depth value at the geometrical positions corresponding to the first pixel, the second pixel, the third pixel and the fourth pixel has three depth values corresponding to the R subpixel, the G subpixel and the B subpixel.

    [0078] The conversion method of FIG. 7A can be applied to the four pixels arranged in vertical or in horizontal, wherein the coding and decoding system adopts YCbCr 4:2:0 format. As shown in FIG. 7A, the method of assigning selected depth values to RGB subpixels for a colored depth frame packing and depacking comprises a step U01 and a step U02. The step U01 is to obtain two depth values from each of the first pixel depth value and the fourth pixel depth value, and to obtain one depth value from each of the second pixel depth value and the third pixel depth value, wherein the six depth values obtained from the first pixel depth value, the second pixel depth value, the third pixel depth value and the fourth pixel depth value have interleaved positions. To be noted, the depth values having interleaved positions mean that the depth values are not located at the same column or row. The step U02 is to assign one of the two depth values obtained from the first pixel depth value to an R-subpixel value of the first pixel in a converted RGB format, to assign the other one of the two depth values obtained from the first pixel depth value to a B-subpixel value of the first pixel in the converted RGB format, to assign the depth value obtained from the second pixel depth value to an R-subpixel value, a G-subpixel value and a B-subpixel value of the second pixel in the converted RGB format, to assign the depth value obtained from the third pixel depth value to an R-subpixel value, a G-subpixel value and a B-subpixel value of the third pixel in the converted RGB format, to assign one of the two depth values obtained from the fourth pixel depth value to a G-subpixel value of the first pixel in the converted RGB format, and to assign the other one of the two depth values obtained from the fourth pixel depth value to an R-subpixel value, a G-subpixel value and a B-subpixel value of the fourth pixel in the converted RGB format.

    [0079] In the step U01 of obtaining the depth values, the depth values of the geometrical positions corresponding to the R subpixel and the B subpixel of the first pixel are obtained from the first pixel depth value, the depth value of the geometrical position corresponding to the G subpixel of the second pixel is obtained from the second pixel depth value, the depth value of the geometrical position corresponding to the G subpixel of the third pixel is obtained from the third pixel depth value, and the depth values of the geometrical positions corresponding to the R subpixel and the B subpixel of the fourth pixel are obtained from the fourth pixel depth value. In the step U02 of assigning to the converted RGB format, the depth value obtained from the first pixel depth value corresponding to the geometrical position of the R subpixel of the first pixel is assigned to the R-subpixel value of the first pixel in the converted RGB format, the depth value obtained from the first pixel depth value corresponding to the geometrical position of the B subpixel of the first pixel is assigned to the B-subpixel value of the first pixel in the converted RGB format, the depth value obtained from the second pixel depth value corresponding to the geometrical position of the G subpixel of the second pixel is assigned to the R-subpixel value, the G-subpixel value and the B-subpixel value of the second pixel in the converted RGB format, the depth value obtained from the third pixel depth value corresponding to the geometrical position of the G subpixel of the third pixel is assigned to the R-subpixel value, the G-subpixel value and the B-subpixel value of the third pixel in the converted RGB format, the depth value obtained from the fourth pixel depth value corresponding to the geometrical position of the R subpixel of the fourth pixel is assigned to the G-subpixel value of the first pixel in the converted RGB format, and the depth value obtained from the fourth pixel depth value corresponding to the geometrical position of the B subpixel of the fourth pixel is assigned to the R-subpixel value, the G-subpixel value and the B-subpixel value of the fourth pixel in the converted RGB format.

    [0080] In addition, with reference to FIG. 3B, the obtaining unit 11 of the circuit 1a is configured for obtaining two depth values from each of the first pixel depth value and the fourth pixel depth value, and obtaining one depth value from each of the second pixel depth value and the third pixel depth value. The six depth values obtained from the first pixel depth value, the second pixel depth value, the third pixel depth value and the fourth pixel depth value have interleaved positions. The depositing unit 12 is configured for assigning one of the two depth values obtained from the first pixel depth value to an R-subpixel value of the first pixel in a converted RGB format, assigning the other one of the two depth values obtained from the first pixel depth value to a B-subpixel value of the first pixel in the converted RGB format, assigning the depth value obtained from the second pixel depth value to an R-subpixel value, a G-subpixel value and a B-subpixel value of the second pixel in the converted RGB format, assigning the depth value obtained from the third pixel depth value to an R-subpixel value, a G-subpixel value and a B-subpixel value of the third pixel in the converted RGB format, assigning one of the two depth values obtained from the fourth pixel depth value to a G-subpixel value of the first pixel in the converted RGB format, and assigning the other one of the two depth values obtained from the fourth pixel depth value to an R-subpixel value, a G-subpixel value and a B-subpixel value of the fourth pixel in the converted RGB format.

    [0081] FIGS. 7B and 7C are schematic diagrams showing the RGB format of a group of four pixels and the corresponding depth values of the geometrical positions thereof according to another embodiment of the disclosure. In this embodiment, FIG. 7B shows four pixels arranged in vertical and four pixel depth values, and FIG. 7C shows four pixels arranged in horizontal and four pixel depth values.

    [0082] In one group of four pixels of the depth frame, the R, G and B subpixels of each pixel are arranged in vertical as shown in FIG. 7B, wherein the first pixel comprises {R.sub.i,j, G.sub.i,j, B.sub.i,j}, the second pixel comprises {R.sub.i+1,j, G.sub.i+1,j, B.sub.i+1,j}, the third pixel comprises {R.sub.i,j+1, G.sub.i,j+1, B.sub.i,j+1}, and the fourth pixel comprises {R.sub.i+1,j+1, G.sub.i+1,j+1, B.sub.i+1,j+1}. Alternatively, the R, G and B subpixels of each pixel can be arranged in horizontal as shown in FIG. 7C, wherein the first pixel comprises {R.sub.i,j, G.sub.i,j, B.sub.i,j}, the second pixel comprises {R.sub.i,j+1, G.sub.i,j+1, B.sub.i,j+1}, the third pixel comprises {R.sub.i+1,j, G.sub.i+1,j, B.sub.i+1,j}, and the fourth pixel comprises {R.sub.i+1,j+1, G.sub.i+1,j+1, B.sub.i+1,j+1}. The geometrical positions of the first pixel, the second pixel, the third pixel and the fourth pixel correspondingly have a first pixel depth value, a second pixel depth value, a third pixel depth value and a fourth pixel depth value, respectively. Since each pixel comprises three subpixels, each pixel depth value corresponding to the geometrical position also comprises three depth values. In the vertical arrangement (FIG. 7B), the first pixel depth value is {D.sub.3i,j, D.sub.3i+1,j, D.sub.3i+2,j}, the second pixel depth value is {D.sub.3i+3,j, D.sub.3i+4,j, D.sub.3i+5,j}, the third pixel depth value is {D.sub.3i,j+1, D.sub.3i+1,j+1, D.sub.3i+2,j+1}, and the fourth pixel depth value is {D.sub.3i+3,j+1, D.sub.3i+4,j+1, D.sub.3i+5,j+1}. Accordingly, the size thereof becomes 3HW. In the horizontal arrangement (FIG. 7C), the first pixel depth value is {D.sub.i,3j, D.sub.i,3j+1, D.sub.i,3j+2}, the second pixel depth value is {D.sub.i,3j+3, D.sub.i,3j+4, D.sub.i,3j+5}, the third pixel depth value is {D.sub.i+1,3j, D.sub.i+1,3j+1, D.sub.i+1,3j+2}, and the fourth pixel depth value is {D.sub.i+1,3j+3, D.sub.i+1,3j+4, D.sub.i+1,3j+5}. Accordingly, the size thereof becomes H3W. Herein, i=0, 2, 4 . . . , (H2), and j=0, 2, 4 . . . , (W2).

    [0083] Specifically, when the coding and decoding system adopts the YCbCr 4:2:0 format, in the four pixels of the embodiment as shown in FIGS. 7B and 7C, the obtaining unit 11 obtains the depth values of the geometrical position corresponding to the R subpixel and the B subpixel of the first pixel from the first pixel depth value, the depth value of the geometrical position corresponding to the G subpixel of the second pixel from the second pixel depth value, the depth value of the geometrical position corresponding to the G subpixel of the third pixel from the third pixel depth value, and the depth values of the geometrical position corresponding to the R subpixel and the B subpixel of the fourth pixel from the fourth pixel depth value. In other words, six depth values D.sub.3i,j, D.sub.3i+2,j, D.sub.3i+4,j, D.sub.3i+1,j+1, D.sub.3i+3,j+1 and D.sub.3i+5,j+1 are obtained from the vertically arranged pixel depth values, or six depth values D.sub.i,3j, D.sub.i,3j+2, D.sub.i,3j+4, D.sub.i+1,3j+1, D.sub.i+1,3j+3 and D.sub.i+1,3j+5 are obtained from the horizontally arranged pixel depth values. In this case, the depth values D.sub.3i,j, D.sub.3i+2j, D.sub.3i+4,j, D.sub.3i+1,j+1, D.sub.3i+3,j+1 and D.sub.3i+5,j+1 have interleaved positions, and the depth values D.sub.i,3j, D.sub.i,3j+2, D.sub.i,3j+4, D.sub.i+1,3j+1, D.sub.i+1,3j+3 and D.sub.i+1,3j+5 have interleaved positions. In other words, only six depth values are selected from the vertically or horizontally arranged pixel depth values, and then used in the following packing and depacking processes.

    [0084] Next, the depositing unit 12 is configured for assigning the depth value obtained from the first pixel depth value corresponding to the geometrical position of the R subpixel of the first pixel to the R-subpixel value of the first pixel in the converted RGB format, assigning the depth value obtained from the first pixel depth value corresponding to the geometrical position of the B subpixel of the first pixel to the B-subpixel value of the first pixel in the converted RGB format, assigning the depth value obtained from the second pixel depth value corresponding to the geometrical position of the G subpixel of the second pixel to the R-subpixel value, the G-subpixel value and the B-subpixel value of the second pixel in the converted RGB format, assigning the depth value obtained from the third pixel depth value corresponding to the geometrical position of the G subpixel of the third pixel to the R-subpixel value, the G-subpixel value and the B-subpixel value of the third pixel in the converted RGB format, assigning the depth value obtained from the fourth pixel depth value corresponding to the geometrical position of the R subpixel of the fourth pixel to the G-subpixel value of the first pixel in the converted RGB format, and assigning the depth value obtained from the fourth pixel depth value corresponding to the geometrical position of the B subpixel of the fourth pixel to the R-subpixel value, the G-subpixel value and the B-subpixel value of the fourth pixel in the converted RGB format. Specifically, in the packing step for the case of FIG. 7B (vertical arrangement), the six selected depth values are assigned (deposited) to the twelve RGB subpixels as follow:


    R.sub.i,j=D.sub.3i,j,(17)


    G.sub.i,j=D.sub.3i+3,j+1,(18)


    B.sub.i,j=D.sub.3i+1,j,(19)


    R.sub.i+1,j=G.sub.i+1,j=B.sub.i+1,j=D.sub.3i+4,j,(20)


    R.sub.i,j+1=G.sub.i,j+B.sub.i,j+1=D.sub.3i+1,j+1,(21)


    R.sub.i+1,j+1=G.sub.i+1,j+1=B.sub.i+1,j+1=D.sub.3i+5,j+1,(22)

    [0085] Alternatively, in the packing step for the case of FIG. 7C (horizontal arrangement), the six selected depth values are assigned (deposited) to the twelve RGB subpixels as follow:


    R.sub.i,j=D.sub.i,3j,(23)


    G.sub.i,j=D.sub.i+1,3j+3,(24)


    B.sub.i,j=D.sub.i,3j+2,(25)


    R.sub.i,j+1=G.sub.i,j+=B.sub.i,j+1=D.sub.i,3j+4,(26)


    R.sub.i+1,j=G.sub.i+1,j=B.sub.i+1,j=D.sub.i+1,3j+1,(27)


    R.sub.i+1,j+1=G.sub.i+1,j+1=B.sub.i+1,j+1=D.sub.i+1,3j+5,(28)

    [0086] Accordingly, the twelve subpixel values in the assigned (converted) RGB format can be obtained according to the selected six depth values.

    [0087] Referring to FIGS. 7B and 7C in view of FIGS. 5A and 5B, since the above equations (17)(22) or (23)(28) are to assign the same depth value to the RGB subpixel values of the second pixel, the third pixel and the fourth pixel, all Chroma parameter values (Cb, Cr) of these three groups will be equal to 128 after processed by the conversion matrix of RGB to YCbCr Chroma space conversion (Table 1). Accordingly, the four RGB format pixels having the selected depth values can be converted to obtain four YCbCr format data of {Y.sub.i,j, Cb.sub.i,j, Cr.sub.i,j}, {Y.sub.i,j+1, 128, 128}, {Y.sub.i+1,j, 128, 128} and {Y.sub.i+1,j+1, 128, 128}. Normally, as shown in FIG. 5A, with ignoring the coding error, the four YCbCr format data of {Y.sub.i,j, Cb.sub.i,j, Cr.sub.i,j}, {Y.sub.i,j+1, 128, 128}, {Y.sub.i+1,j, 128, 128} and {Y.sub.i+1,j+1, 128, 128} can be processed by the image coding system to obtain four encoded data of {Y.sub.i,j, Cb.sub.i,j, Cr.sub.i,j}, {Y.sub.i,j+1, Cb.sub.i,j, Cr.sub.i,j}, {Y.sub.i+1,j, Cb.sub.i,j, Cr.sub.i,j} and {Y.sub.i+1,j+1, Cb.sub.i,j, Cr.sub.i,j}. During the coding process, the image system provides two sampling modes including a direct subsampling mode and an average subsampling mode. In the direct subsampling mode, Cb.sub.i,j=Cb.sub.i,j and Cr.sub.i,j=Cr.sub.i,j; in the average subsampling mode, Cb.sub.i,j=Cb.sub.i,j/4+96 and Cr.sub.i,j=Cr.sub.i,j/4+96.

    [0088] After the receiving end receives these data followed by the decompression process, four data of {Y.sub.i,j, Cb.sub.i,j, Cr.sub.i,j}, {Y.sub.i,j+1, Cb.sub.i,j, Cr.sub.i,j}, {Y.sub.i+1,j, Cb.sub.i,j, Cr.sub.i,j} and {Y.sub.i+1,j+1, Cb.sub.i,j, Cr.sub.i,j} can be obtained (see FIG. 5A). Then, the Chroma parameters are adjusted to recover and obtain the four original YCbCr format data. If the coding system adopts the direct subsampling mode, the Chroma parameter adjustment in the depacking process can utilize the equations of Cb.sub.i,j=Cb.sub.i,j and Cr.sub.i,j=Cr.sub.i,j for obtaining the four original YCbCr format data of {Y.sub.i,j, Cb.sub.i,j, Cr.sub.i,j}, {Y.sub.i,j+1, 128, 128}, {Y.sub.i+1,j+1, 128, 128} and {Y.sub.i+1,j+1, 128, 128}. If the coding system adopts the average subsampling mode, the Chroma parameter adjustment in the depacking process can utilize the equations of Cb.sub.i,j=4Cb.sub.i,j384 and Cr.sub.i,j=4Cr.sub.i,j384 for obtaining the four original YCbCr format data. To be noted, the decoding system of the receiving end of FIG. 5A should be acknowledged of the selected sampling mode in the coding process (the direct subsampling mode or the average subsampling mode). Afterwards, the inverse conversion matrix of YCbCr to RGB Chroma space conversion (Table 2) is applied to the obtained four original YCbCr format data for recovering the original four groups of RGB format subpixels (totally 12 subpixels) of {R.sub.i,j, G.sub.i,j, B.sub.i,j}, {R.sub.i+1,j, G.sub.i+1,j, B.sub.i,j+1}, {R.sub.i,j+1, G.sub.i,j+1, B.sub.i,j+1} and {R.sub.i+1,j+1, G.sub.i+1,j+1, B.sub.i+1,j+1}. To be noted, the recovered twelve subpixel values can satisfy the above equations (17)(22) and (23)(28) and comprise the above-mentioned six selected depth values (D.sub.3i,j, D.sub.3i+2,j, D.sub.3i+4,j, D.sub.3i+1,j+1, D.sub.3i+3,j+1 and D.sub.3i+5,j+1 in the vertical arrangement, and D.sub.i,3j, D.sub.i,3j+2, D.sub.i,3j+4, D.sub.i+1,3j+1, D.sub.i+1,3j+3 and D.sub.i+1,3j+5 in the horizontal arrangement).

    [0089] Normally, as shown in FIG. 5B, with ignoring the coding error, the four YCbCr format data of {Y.sub.i,j, Cb.sub.i,j, Cr.sub.i,j}, {Y.sub.i,j+1, 128, 128}, {Y.sub.i+1,j, 128, 128} and {Y.sub.i+1,j+1, 128, 128} can be processed by the image coding system to obtain four encoded data of {Y.sub.i,j, Cb.sub.i,j, Cr.sub.i,j}, {Y.sub.i,j+1, Cb.sub.i,j, Cr.sub.i,j}, {Y.sub.i+1,j, Cb.sub.i,j, Cr.sub.i,j} and {Y.sub.i+1,j+1, Cb.sub.i,j, Cr.sub.i,j}. During the coding process, the image system provides two sampling modes including a direct subsampling mode and an average subsampling mode. In the direct subsampling mode, Cb.sub.i,j=Cb.sub.i,j and Cr.sub.i,j=Cr.sub.i,j; in the average subsampling mode, Cb.sub.i,j=Cb.sub.i,j/4+96 and Cr.sub.i,j=Cr.sub.i,j/4+96. After the Chroma space conversion (from YCbCr to RGB), four groups of RGB format data can be obtained (see FIG. 5B).

    [0090] Accordingly, the receiving end cannot directly obtain the above four data of {Y.sub.i,j, Cb.sub.i,j, Cr.sub.i,j}, {Y.sub.i,j+1, Cb.sub.i,j, Cr.sub.i,j}, {Y.sub.i+1,j, Cb.sub.i,j, Cr.sub.i,j}custom-character{Y.sub.i+1,j+1, Cb.sub.i,j, Cr.sub.i,j} during the decomprssion procedure, but can obtain the converted four groups of RGB format data only. Thus, an additional Chroma space conversion for converting the RGB format data to the YCbCr format data is performed in advance for obtaining {Y.sub.i,j, Cb.sub.i,j, Cr.sub.i,j}, {Y.sub.i,j+1, Cb.sub.i,j, Cr.sub.i,j}, {Y.sub.i+1,j, Cb.sub.i,j, Cr.sub.i,j} and {Y.sub.i+1,j+1, Cb.sub.i,j, Cr.sub.i,j}. Then, the Chroma parameters are adjusted to recover and obtain the four original YCbCr format data. If the coding system adopts the direct subsampling mode, the Chroma parameter adjustment in the depacking process can utilize the equations of Cb.sub.i,j=Cb.sub.i,j and Cr.sub.i,j=Cr.sub.i,j for obtaining the four original YCbCr format data of {Y.sub.i,j, Cb.sub.i,j, Cr.sub.i,j}, {Y.sub.i,j+1, 128, 128}, {Y.sub.i+1,j, 128, 128} and {Y.sub.i+1,j+1, 128, 128}. If the coding system adopts the average subsampling mode, the Chroma parameter adjustment in the depacking process can utilize the equations of Cb.sub.i,j=4Cb.sub.i,j384 and Cr.sub.i,j=4Cr.sub.i,j384 for obtaining the four original YCbCr format data. To be noted, the decoding system of the receiving end of FIG. 5B should be acknowledged of the selected sampling mode in the coding process (the direct subsampling mode or the average subsampling mode). Afterwards, the inverse conversion matrix of YCbCr to RGB Chroma space conversion is applied to the obtained four original YCbCr format data for recovering the original four groups of RGB format subpixels (totally 12 subpixels) of {R.sub.i,j, G.sub.i,j, B.sub.i,j}, {R.sub.i+1,j, G.sub.i+1,j, B.sub.i+1,j}, {R.sub.i,j+1, G.sub.i,j+1, B.sub.i,j+1} and {R.sub.i+1,j+1, G.sub.i+1,j+1, B.sub.i+1j+1}. To be noted, the recovered twelve subpixel values can satisfy the above equations (17)(22) and (23)(28) and comprise the above-mentioned six selected depth values (D.sub.3i,j, D.sub.3i+2,j, D.sub.3i+4,j, D.sub.3i+1,j+1, D.sub.3i+3,j+1 and D.sub.3i+5,j+1 in the vertical arrangement, and D.sub.i,3j, D.sub.i,3j+2, D.sub.i,3j+4, D.sub.i+1,3j+1, D.sub.i+1,3j+3 and D.sub.i+1,3j+5 in the horizontal arrangement).

    [0091] Accordingly, the six selected depth values can be directly obtained without adjustment by the method of recovering the selected depth values from the RGB subpixels for colored depth frame packing and depacking of this disclosure. The detailed content of the method of recovering the selected depth values from the RGB subpixels will be described hereinafter with reference to FIGS. 7B and 7C in view of FIGS. 7D and 6B.

    [0092] FIG. 7D is a flow chart showing a method of recovering the selected depth values from the RGB subpixels for colored depth frame packing and depacking according to another embodiment of the disclosure. The recovering method of FIG. 7D can be applied to the four pixels arranged in vertical or in horizontal, wherein the coding and decoding system adopts YCbCr 4:2:0 format. The recovering (inverse conversion) method of FIG. 7D is corresponding to the assigning (conversion) method of FIG. 7A.

    [0093] As mentioned above, after the processes of the video compression and decompression system and the Chroma space conversion and inverse conversion as shown in FIGS. 5A and 5B, the twelve original RGB format subpixels of {R.sub.i,j, G.sub.i,j, B.sub.i,j}, {R.sub.i+1,j, G.sub.i+1,j, B.sub.i+1,j}, {R.sub.i,j+1, G.sub.i,j+1, B.sub.i,j+1} and {R.sub.i+1,j+1, G.sub.i+1,j+1, B.sub.i+1j+1} can be obtained. The twelve subpixel values can satisfy the above equations (17)(22) and (23)(28) and comprise the above-mentioned six selected depth values (D.sub.3i,j, D.sub.3i+2,j, D.sub.3i+4,j, D.sub.3i+1,j+1, D.sub.3i+3,j+1 and D.sub.3i+5,j+1 in the vertical arrangement, and D.sub.i,3j, D.sub.i,3j+2, D.sub.i,3j+4, D.sub.i+1,3j+1, D.sub.i+1,3j+3 and D.sub.i+1,3j+5 in the horizontal arrangement). Accordingly, the method of recovering the selected depth values from the RGB subpixels of this disclosure can recover the obtained RGB format data to obtain six selected depth values.

    [0094] As shown in FIG. 7D, the method of recovering the selected depth values from the RGB subpixels for colored depth frame packing and depacking comprises a step V01 and a step V02. The step V01 is to obtain the R-subpixel value, the G-subpixel value and the B-subpixel value of the first pixel of the group of four pixels in the RGB format, to obtain the G-subpixel value of the second pixel of the group of four pixels in the RGB format, to obtain the G-subpixel value of the third pixel of the group of four pixels in the RGB format, and to obtain the B-subpixel value of the fourth pixel of the group of four pixels in the RGB format. The step V02 is to assign the R-subpixel value of the first pixel to a geometrical position in the first pixel depth value corresponding to the R-subpixel value of the first pixel, to assign the G-subpixel value of the first pixel to a geometrical position in the fourth pixel depth value corresponding to the R-subpixel value of the fourth pixel, to assign the B-subpixel value of the first pixel to a geometrical position in the first pixel depth value corresponding to the B-subpixel value of the first pixel, to assign the G-subpixel value of the second pixel to a geometrical position in the second pixel depth value corresponding to the G-subpixel value of the second pixel, to assign the G-subpixel value of the third pixel to a geometrical position in the third pixel depth value corresponding to the G-subpixel value of the third pixel, and to assign the B-subpixel value of the fourth pixel to a geometrical position in the fourth pixel depth value corresponding to the B-subpixel value of the fourth pixel.

    [0095] Specifically, when the coding and decoding system adopts the YCbCr 4:2:0 format, in the four pixels of the embodiment as shown in FIG. 6B, the obtaining unit 21 of the circuit 2a is configured for obtaining the R-subpixel value, the G-subpixel value and the B-subpixel value of the first pixel of the group of four pixels in the RGB format, obtaining the G-subpixel value of the second pixel of the group of four pixels in the RGB format, obtaining the G-subpixel value of the third pixel of the group of four pixels in the RGB format, and obtaining the B-subpixel value of the fourth pixel of the group of four pixels in the RGB format. The depositing unit 22 is configured for assigning the R-subpixel value of the first pixel to a geometrical position in the first pixel depth value corresponding to the R-subpixel value of the first pixel, assigning the G-subpixel value of the first pixel to a geometrical position in the fourth pixel depth value corresponding to the R-subpixel value of the fourth pixel, assigning the B-subpixel value of the first pixel to a geometrical position in the first pixel depth value corresponding to the B-subpixel value of the first pixel, assigning the G-subpixel value of the second pixel to a geometrical position in the second pixel depth value corresponding to the G-subpixel value of the second pixel, assigning the G-subpixel value of the third pixel to a geometrical position in the third pixel depth value corresponding to the G-subpixel value of the third pixel, and assigning the B-subpixel value of the fourth pixel to a geometrical position in the fourth pixel depth value corresponding to the B-subpixel value of the fourth pixel.

    [0096] The recovering method will be described hereinafter with reference to FIGS. 7B and 7C. Specifically, in the depacking step for the case of FIG. 7B (vertical arrangement), the subpixel values of the twelve RGB subpixels obtained by the Chroma space inverse conversion of the receiving end can be recovered to obtain the six selected depth values as follow:


    D.sub.3i,j=R.sub.i,j,(29)


    D.sub.3i+2,j=B.sub.i,j,(30)


    D.sub.3i+4,j=G.sub.i+1,j,(31)


    D.sub.3i+1,j+1=G.sub.i,j+1,(32)


    D.sub.3i+3,j+1=G.sub.i,j,(33)


    D.sub.3i+5,j+1=B.sub.i+1,j+1.(34)

    [0097] In the depacking step for the case of FIG. 7C (horizontal arrangement), the subpixel values of the twelve RGB subpixels obtained by the Chroma space inverse conversion of the receiving end can be recovered to obtain the six selected depth values as follow:


    D.sub.i,3j=R.sub.i,j,(35)


    D.sub.i,3j+2=B.sub.i,j,(36)


    D.sub.i,3j+4=G.sub.i,j+1,(37)


    D.sub.i+1,3j+1=G.sub.i+1,(38)


    D.sub.i+1,3j+3=G.sub.i,j,(39)


    D.sub.i+1,3j+5=B.sub.i+1,j+1(40)

    [0098] Accordingly, the RGB format data obtained by the Chroma space inverse conversion of the receiving end can be directly recovered without any adjustment to obtain the above-mentioned six selected depth values. The other six depth values can be obtained by interpolation method according to the six selected depth values and the related conversion information, thereby obtaining a better conversion to recover the original depth values. Compared with the conventional art, which replaces the lacked Chroma values by the remained neighboring Chroma values, this embodiment can directly recover multiple depth values of the image data from the obtained RGB format data, thereby improving the distortion around the area having large (or dramatic) depth gap.

    [0099] The embodiment in which the coding and decoding system adopts YCbCr 4:2:2 format will be described hereinafter. The embodiment of vertical arrangement will be described first.

    [0100] FIG. 8A is a flow chart showing a method of assigning selected depth values to RGB subpixels for colored depth frame packing and depacking according to another embodiment of the disclosure.

    [0101] The four pixels comprises a first pixel, a second pixel, a third pixel and a fourth pixel. The first pixel is located neighboring the second pixel and the third pixel, and the fourth pixel is located neighboring the second pixel and the third pixel. In this embodiment, each group of four pixels totally comprises twelve subpixels. In addition, the geometrical positions of the first pixel, the second pixel, the third pixel and the fourth pixel correspondingly have a first pixel depth value, a second pixel depth value, a third pixel depth value and a fourth pixel depth value, respectively. In other words, the geometrical position of the first pixel correspondingly has a first pixel depth value, the geometrical position of the second pixel correspondingly has a second pixel depth value, the geometrical position of the third pixel correspondingly has a third pixel depth value, and the geometrical position of the fourth pixel correspondingly has a fourth pixel depth value. Since each pixel has vertically arranged subpixels, each of the first pixel depth value, the second pixel depth value, the third pixel depth value and the fourth pixel depth value at the geometrical positions corresponding to the first pixel, the second pixel, the third pixel and the fourth pixel has three depth values corresponding to the R subpixel, the G subpixel and the B subpixel.

    [0102] The conversion method of FIG. 8A can be applied to the four pixels arranged in vertical, wherein the coding and decoding system adopts YCbCr 4:2:2 format. As shown in FIG. 8A, the method of assigning selected depth values to RGB subpixels for a colored depth frame packing and depacking comprises a step W01 and a step W02. The step W01 is to obtain two depth values from each of the first pixel depth value, the second pixel depth value, the third pixel depth value and the fourth pixel depth value. The step W02 is to assign one of the two depth values obtained from the first pixel depth value to an R-subpixel value of the first pixel in a converted RGB format, to assign the other one of the two depth values obtained from the first pixel depth value to a B-subpixel value of the first pixel in the converted RGB format, to assign one of the two depth values obtained from the second pixel depth value to a G-subpixel value of the second pixel in the converted RGB format, to assign the other one of the two depth values obtained from the second pixel depth value to a B-subpixel value of the second pixel in the converted RGB format, to assign one of the two depth values obtained from the third pixel depth value to an R-subpixel value, a G-subpixel value and a B-subpixel value of the third pixel in the converted RGB format, to assign the other one of the two depth values obtained from the third pixel depth value to a G-subpixel value of the first pixel in the converted RGB format, to assign one of the two depth values obtained from the fourth pixel depth value to an R-subpixel value of the second pixel in the converted RGB format, and to assign the other one of the two depth values obtained from the fourth pixel depth value to an R-subpixel value, a G-subpixel value and a B-subpixel value of the fourth pixel in the converted RGB format.

    [0103] In the step W01 of obtaining the depth values, the depth values of the geometrical positions corresponding to the R subpixel and the B subpixel of the first pixel are obtained from the first pixel depth value, the depth values of the geometrical positions corresponding to the G subpixel and the B subpixel of the second pixel are obtained from the second pixel depth value, the depth values of the geometrical positions corresponding to the R subpixel and the G subpixel of the third pixel is obtained from the third pixel depth value, and the depth values of the geometrical positions corresponding to the R subpixel and the B subpixel of the fourth pixel are obtained from the fourth pixel depth value. In the step W02 of assigning to the converted RGB format, the depth value obtained from the first pixel depth value corresponding to the geometrical position of the R subpixel of the first pixel is assigned to the R-subpixel value of the first pixel in the converted RGB format, the depth value obtained from the first pixel depth value corresponding to the geometrical position of the B subpixel of the first pixel is assigned to the B-subpixel value of the first pixel in the converted RGB format, the depth value obtained from the second pixel depth value corresponding to the geometrical position of the G subpixel of the second pixel is assigned to the G-subpixel value of the second pixel in the converted RGB format, the depth value obtained from the second pixel depth value corresponding to the geometrical position of the B subpixel of the second pixel is assigned to the B-subpixel value of the second pixel in the converted RGB format, the depth value obtained from the third pixel depth value corresponding to the geometrical position of the R subpixel of the third pixel is assigned to the R-subpixel value, the G-subpixel value and the B-subpixel value of the third pixel in the converted RGB format, the depth value obtained from the third pixel depth value corresponding to the geometrical position of the G subpixel of the third pixel is assigned to the G-subpixel value of the first pixel in the converted RGB format, the depth value obtained from the fourth pixel depth value corresponding to the geometrical position of the R subpixel of the fourth pixel is assigned to the R-subpixel value of the second pixel in the converted RGB format, and the depth value obtained from the fourth pixel depth value corresponding to the geometrical position of the B subpixel of the fourth pixel is assigned to the R-subpixel value, the G-subpixel value and the B-subpixel value of the fourth pixel in the converted RGB format.

    [0104] In addition, with reference to FIG. 3B, the obtaining unit 11 of the circuit 1a is configured for obtaining two depth values from each of the first pixel depth value, the second pixel depth value, the third pixel depth value and the fourth pixel depth value. The depositing unit 12 is configured for assigning one of the two depth values obtained from the first pixel depth value to an R-subpixel value of the first pixel in a converted RGB format, assigning the other one of the two depth values obtained from the first pixel depth value to a B-subpixel value of the first pixel in the converted RGB format, assigning one of the two depth values obtained from the second pixel depth value to a G-subpixel value of the second pixel in the converted RGB format, assigning the other one of the two depth values obtained from the second pixel depth value to a B-subpixel value of the second pixel in the converted RGB format, assigning one of the two depth values obtained from the third pixel depth value to an R-subpixel value, a G-subpixel value and a B-subpixel value of the third pixel in the converted RGB format, assigning the other one of the two depth values obtained from the third pixel depth value to a G-subpixel value of the first pixel in the converted RGB format, assigning one of the two depth values obtained from the fourth pixel depth value to an R-subpixel value of the second pixel in the converted RGB format, and assigning the other one of the two depth values obtained from the fourth pixel depth value to an R-subpixel value, a G-subpixel value and a B-subpixel value of the fourth pixel in the converted RGB format.

    [0105] FIG. 8B is a schematic diagram showing the RGB format of a group of four pixels and the corresponding depth values of the geometrical positions thereof according to another embodiment of the disclosure. In this embodiment, FIG. 8B shows four pixels arranged in vertical and four pixel depth values.

    [0106] In one group of four pixels of the depth frame, the R, G and B subpixels of each pixel are arranged in vertical as shown in FIG. 8B, wherein the first pixel comprises {R.sub.i,j, G.sub.i,j, B.sub.i,j}, the second pixel comprises {R.sub.i+1,j, G.sub.i+1,j, B.sub.i+1,j}, the third pixel comprises {R.sub.i,j+1, G.sub.i,j+1, B.sub.i,j+1}, and the fourth pixel comprises {R.sub.i+1,j+1, G.sub.i+1,j+1, B.sub.i+1,j+1}. The geometrical positions of the first pixel, the second pixel, the third pixel and the fourth pixel correspondingly have a first pixel depth value, a second pixel depth value, a third pixel depth value and a fourth pixel depth value, respectively. Since each pixel comprises three subpixels, each pixel depth value corresponding to the geometrical position also comprises three depth values. In the vertical arrangement (FIG. 8B), the first pixel depth value is {D.sub.3i,j, D.sub.3i+1,j, D.sub.3i+2,j}, the second pixel depth value is {D.sub.3i+3,j, D.sub.3i+4,j, D.sub.3i+5,j}, the third pixel depth value is {D.sub.3i,j+1, D.sub.3i+1j+1, D.sub.3i+2j+1}, and the fourth pixel depth value is {D.sub.3i+3,j+1, D.sub.3i+4,j+1, D.sub.3i+5,j+}. Accordingly, the size thereof becomes 3HW. Herein, i=0, 2, 4 . . . , (H2), and j=0, 2, 4 . . . , (W2).

    [0107] Specifically, when the coding and decoding system adopts the YCbCr 4:2:2 format, in the four pixels of the embodiment as shown in FIG. 8B, the obtaining unit 11 obtains the depth values of the geometrical position corresponding to the R subpixel and the B subpixel of the first pixel from the first pixel depth value, the depth values of the geometrical positions corresponding to the G subpixel and the B subpixel of the second pixel from the second pixel depth value, the depth values of the geometrical positions corresponding to the R subpixel and the G subpixel of the third pixel from the third pixel depth value, and the depth values of the geometrical position corresponding to the R subpixel and the B subpixel of the fourth pixel from the fourth pixel depth value. In other words, eight depth values D.sub.3i,j, D.sub.3i+2,j, D.sub.3i+4,j, D.sub.3i+5,j, D.sub.3i,j+1, D.sub.3i+1,j+1, D.sub.3i+3,j+1 and D.sub.3i+5,j+1 are obtained from the vertically arranged pixel depth values. In this case, only eight depth values are selected from the vertically arranged pixel depth values, and then used in the following packing and depacking processes.

    [0108] Next, the depositing unit 12 is configured for assigning the depth value obtained from the first pixel depth value corresponding to the geometrical position of the R subpixel of the first pixel to the R-subpixel value of the first pixel in the converted RGB format, assigning the depth value obtained from the first pixel depth value corresponding to the geometrical position of the B subpixel of the first pixel to the B-subpixel value of the first pixel in the converted RGB format, assigning the depth value obtained from the second pixel depth value corresponding to the geometrical position of the G subpixel of the second pixel to the G-subpixel value of the second pixel in the converted RGB format, assigning the depth value obtained from the second pixel depth value corresponding to the geometrical position of the B subpixel of the second pixel to the B-subpixel value of the second pixel in the converted RGB format, assigning the depth value obtained from the third pixel depth value corresponding to the geometrical position of the R subpixel of the third pixel to the R-subpixel value, the G-subpixel value and the B-subpixel value of the third pixel in the converted RGB format, assigning the depth value obtained from the third pixel depth value corresponding to the geometrical position of the G subpixel of the third pixel to the G-subpixel value of the first pixel in the converted RGB format, assigning the depth value obtained from the fourth pixel depth value corresponding to the geometrical position of the R subpixel of the fourth pixel to the R-subpixel value of the second pixel in the converted RGB format, and assigning the depth value obtained from the fourth pixel depth value corresponding to the geometrical position of the B subpixel of the fourth pixel to the R-subpixel value, the G-subpixel value and the B-subpixel value of the fourth pixel in the converted RGB format. Specifically, in the packing step for the case of FIG. 8B (vertical arrangement), the eight selected depth values are assigned (deposited) to the twelve RGB subpixels as follow:


    R.sub.i,j=D.sub.3i,j,(41)


    G.sub.i,j=D.sub.3i+1j+1,(42)


    B.sub.i,j=D.sub.3i+2,j,(43)


    R.sub.i+1,j=D.sub.3i+3,j+1,(44)


    G.sub.i+1,j=D.sub.3i+4,j,(45)


    B.sub.i+1,j=D.sub.3i+5,j,(46)


    R.sub.i,j+1=G.sub.i,j+1=B.sub.i,j+1=D.sub.3i,j+1,(47)


    R.sub.i+1,j+1=G.sub.i+1,j+1=B.sub.i+1,j+1=D.sub.3i+5,j+1.(48)

    [0109] Accordingly, the twelve subpixel values in the assigned (converted) RGB format can be obtained according to the selected eight depth values.

    [0110] Referring to FIG. 8B in view of FIGS. 5A and 5B, since the above equations (41)(48) are to assign the same depth value to the RGB subpixel values of the third pixel and the fourth pixel, all Chroma parameter values (Cb, Cr) of these two groups will be equal to 128 after processed by the conversion matrix of RGB to YCbCr Chroma space conversion (Table 1). Accordingly, the four RGB format pixels having the selected depth values can be converted to obtain four YCbCr format data of {Y.sub.i,j, Cb.sub.i,j, Cr.sub.i,j}, {Y.sub.i,j+1, 128, 128}, {Y.sub.i+1,j, Cb.sub.i+1,j, Cr.sub.i+1,j} and {Y.sub.i+1,j+1, 128, 128}. Normally, as shown in FIG. 5A, with ignoring the coding error, the four YCbCr format data of {Y.sub.i,j, Cb.sub.i,j, Cr.sub.i,j}, {Y.sub.i,j+1, 128, 128}, {Y.sub.i+1,j, Cb.sub.i+1,j, Cr.sub.i+1,j} and {Y.sub.i+1,j+1, 128, 128} can be processed by the image coding system to obtain four encoded data of {Y.sub.i,j, Cb.sub.i,j, Cr.sub.i,j}, {Y.sub.i,j+1, Cb.sub.i,j, Cr.sub.i,j}, {Y.sub.i+1,j, Cb.sub.i,j, Cr.sub.i,j} and {Y.sub.i+1,j+1, Cb.sub.i,j, Cr.sub.i,j}. During the coding process, the image system provides two sampling modes including a direct subsampling mode and an average subsampling mode. In the direct subsampling mode, Cb.sub.i,j=Cb.sub.i,j, Cb.sub.i+1,j=Cb.sub.i+1,j, Cr.sub.i,j=Cr.sub.i,j, and Cr.sub.i+1,j=Cr.sub.i+1,j; in the average subsampling mode, Cb.sub.i,j=Cb.sub.i,j/2+64, Cb.sub.i+1,j=Cb.sub.i+1,j/2+64, Cr.sub.i,j=Cr.sub.i,j/2+64, and Cb.sub.i+1,j=Cb.sub.i+1,j/2+64.

    [0111] After the receiving end receives these data followed by the decompression process, four data of {Y.sub.i,j, Cb.sub.i,j, Cr.sub.i,j}, {Y.sub.i,j+1, Cb.sub.i,j, Cr.sub.i,j}, {Y.sub.i+1,j, Cb.sub.i,j, Cr.sub.i,j} and {Y.sub.i+1,j+1, Cb.sub.i,j, Cr.sub.i,j} can be obtained (see FIG. 5A). Then, the Chroma parameters are adjusted to recover and obtain the four original YCbCr format data. If the coding system adopts the direct subsampling mode, the Chroma parameter adjustment in the depacking process can utilize the equations of Cb.sub.i,j=Cb.sub.i,j, Cb.sub.i+1,j=Cb.sub.i+1,j, Cr.sub.i,j=Cr.sub.i,j and Cr.sub.i+1,j=Cr.sub.i+1,j for obtaining the four original YCbCr format data of {Y.sub.i,j, Cb.sub.i,j, Cr.sub.i,j}, {Y.sub.i,j+1, 128, 128}, {Y.sub.i+1,j, Cb.sub.i+1,j, Cr.sub.i+1,j} and {Y.sub.i+1,j+1, 128, 128}. If the coding system adopts the average subsampling mode, the Chroma parameter adjustment in the depacking process can utilize the equations of Cb.sub.i,j=2Cb.sub.i,j128, Cb.sub.i+1,j=2Cb.sub.i+1,j128, Cr.sub.i,j=2Cr.sub.i,j128 and Cb.sub.i+1,j=2Cb.sub.i+1,j128 for obtaining the four original YCbCr format data. To be noted, the decoding system of the receiving end of FIG. 5A should be acknowledged of the selected sampling mode in the coding process (the direct subsampling mode or the average subsampling mode). Afterwards, the inverse conversion matrix of YCbCr to RGB Chroma space conversion (Table 2) is applied to the obtained four original YCbCr format data for recovering the original four groups of RGB format subpixels (totally 12 subpixels) of {R.sub.i,j, G.sub.i,j, B.sub.i,j}, {R.sub.i+1,j, G.sub.i+1,j, B.sub.i+1,j}, {R.sub.i,j+1, G.sub.i,j+1, B.sub.i,j+1} and {R.sub.i+1,j+1, G.sub.i+1,j+1, B.sub.i+1,j+1}. To be noted, the recovered twelve subpixel values can satisfy the above equations (41)(48) and comprise the above-mentioned eight selected depth values (D.sub.3i,j, D.sub.3i+2,j, D.sub.3i+4,j, D.sub.3i+5,j, D.sub.3i,j+1, D.sub.3i+1,j+1, D.sub.3i+3,j+1 and D.sub.3i+5,j+1 in the vertical arrangement).

    [0112] Normally, as shown in FIG. 5B, with ignoring the coding error, the four YCbCr format data of {Y.sub.i,j, Cb.sub.i,j, Cr.sub.i,j}, {Y.sub.i,j+1, 128, 128}, {Y.sub.i+1,j, Cb.sub.i+1,j, Cr.sub.i+1,j} and {Y.sub.i+1,j+1, 128, 128} can be processed by the image coding system to obtain four encoded data of {Y.sub.i,j, Cb.sub.i,j, Cr.sub.i,j}, {Y.sub.i,j+1, Cb.sub.i,j, Cr.sub.i,j}, {Y.sub.i+1,j, Cb.sub.i,j, Cr.sub.i,j} and {Y.sub.i+1,j+1, Cb.sub.i,j, Cr.sub.i,j}. During the coding process, the image system provides two sampling modes including a direct subsampling mode and an average subsampling mode. In the direct subsampling mode, Cb.sub.i,j=Cb.sub.i,j, Cb.sub.i+1,j=Cb.sub.i+1,j,Cr.sub.i,j=Cr.sub.i,j and Cr.sub.i+1,j=Cr.sub.i+1,j; in the average subsampling mode, Cb.sub.i,j=Cb.sub.i,j/2+64, Cb.sub.i+1,j=Cb.sub.i+1,j/2+64, Cr.sub.i,j=Cr.sub.i,j/2+64 and Cb.sub.i+1,j=Cb.sub.i+1,j/2+64. After the Chroma space conversion (from YCbCr to RGB), four groups of RGB format data can be obtained (see FIG. 5B).

    [0113] Accordingly, the receiving end cannot directly obtain the above four data of {Y.sub.i,j, Cb.sub.i,j, Cr.sub.i,j}, {Y.sub.i,j+1, Cb.sub.i,j, Cr.sub.i,j}, {Y.sub.i+1,j, Cb.sub.i,j, Cr.sub.i,j} and {Y.sub.i+1,j+1, Cb.sub.i,j, Cr.sub.i,j} during the decomprssion procedure, but can obtain the converted four groups of RGB format data only. Thus, an additional Chroma space conversion for converting the RGB format data to the YCbCr format data is performed in advance for obtaining {Y.sub.i,j, Cb.sub.i,j, Cr.sub.i,j}, {Y.sub.i,j+1, Cb.sub.i,j, Cr.sub.i,j}, {Y.sub.i+1,j, Cb.sub.i,j, Cr.sub.i,j} and {Y.sub.i+1,j+1, Cb.sub.i,j, Cr.sub.i,j}. Then, the Chroma parameters are adjusted to recover and obtain the four original YCbCr format data. If the coding system adopts the direct subsampling mode, the Chroma parameter adjustment in the depacking process can utilize the equations of Cb.sub.i,j=Cb.sub.i,j, Cb.sub.i+1,j=Cb.sub.i+1,j, Cr.sub.i,j=Cr.sub.i,j and Cr.sub.i+1,j=Cr.sub.i+1,j for obtaining the four original YCbCr format data of {Y.sub.i,j, Cb.sub.i,j, Cr.sub.i,j}, {Y.sub.i,j+1, 128, 128}, {Y.sub.i+1,j, 128, 128} and {Y.sub.i+1,j+1, 128, 128}. If the coding system adopts the average subsampling mode, the Chroma parameter adjustment in the depacking process can utilize the equations of Cb.sub.i,j=2Cb.sub.i,j128, Cb.sub.i+1,j=2Cb.sub.i+1,j-128, Cr.sub.i,j=2Cr.sub.i,j128 and Cb.sub.i+1,j=2Cb.sub.i+1,j128 for obtaining the four original YCbCr format data. To be noted, the decoding system of the receiving end of FIG. 5B should be acknowledged of the selected sampling mode in the coding process (the direct subsampling mode or the average subsampling mode). Afterwards, the inverse conversion matrix of YCbCr to RGB Chroma space conversion is applied to the obtained four original YCbCr format data for recovering the original four groups of RGB format subpixels (totally 12 subpixels) of {R.sub.i,j, G.sub.i,j, B.sub.i,j}, {R.sub.i+1,j, G.sub.i+1,j, B.sub.i+1,j}, {R.sub.i,j+1, G.sub.i,j+1, B.sub.i,j+1} and {R.sub.i+1,j+1, G.sub.i+1,j+1, B.sub.i+1,j+1}. To be noted, the recovered twelve subpixel values can satisfy the above equations (41)(48) and comprise the above-mentioned eight selected depth values (D.sub.3i,j, D.sub.3i+2,j, D.sub.3i+4,j, D.sub.3i+5,j, D.sub.3i,j+1, D.sub.3i+1,j+1, D.sub.3i+3,j+1 and D.sub.3i+5,j+1 in the vertical arrangement).

    [0114] Accordingly, the eight selected depth values can be directly obtained without adjustment by the method of recovering the selected depth values from the RGB subpixels for colored depth frame packing and depacking of this disclosure. The detailed content of the method of recovering the selected depth values from the RGB subpixels will be described hereinafter with reference to FIG. 8B in view of FIGS. 8C and 6B.

    [0115] FIG. 8C is a flow chart showing a method of recovering the selected depth values from the RGB subpixels for colored depth frame packing and depacking according to another embodiment of the disclosure. The recovering method of FIG. 8C can be applied to the four pixels arranged in vertical, wherein the coding and decoding system adopts YCbCr 4:2:2 format. The recovering (inverse conversion) method of FIG. 8C is corresponding to the assigning (conversion) method of FIG. 8A.

    [0116] As mentioned above, after the processes of the video compression and decompression system and the Chroma space conversion and inverse conversion as shown in FIGS. 5A and 5B, the twelve original RGB format subpixels of {R.sub.i,j, G.sub.i,j, B.sub.i,j}, {R.sub.i+1,j, G.sub.i+1,j, B.sub.i+1,j}, {R.sub.i,j+1, G.sub.i,j+1, B.sub.i,j+1} and {R.sub.i+1,j+1, G.sub.i+1,j+1, B.sub.i+1,j+1} can be obtained. The twelve subpixel values can satisfy the above equations (41)(48) and comprise the above-mentioned eight selected depth values (D.sub.3i,j, D.sub.3i+2,j, D.sub.3i+4,j, D.sub.3i+5,j, D.sub.3i,j+1, D.sub.3i+1,j+1, D.sub.3i+3,j+1 and D.sub.3i+5,j+1 in the vertical arrangement). Accordingly, the method of recovering the selected depth values from the RGB subpixels of this disclosure can recover the obtained RGB format data to obtain eight selected depth values.

    [0117] As shown in FIG. 8C, the method of recovering the selected depth values from the RGB subpixels for colored depth frame packing and depacking comprises a step X01 and a step X02. The step X01 is to obtain the R-subpixel value, the G-subpixel value and the B-subpixel value of the first pixel of the group of four pixels in the RGB format, to obtain the R-subpixel value, the G-subpixel value and the B-subpixel value of the second pixel of the group of four pixels in the RGB format, to obtain the R-subpixel value of the third pixel of the group of four pixels in the RGB format, and to obtain the B-subpixel value of the fourth pixel of the group of four pixels in the RGB format. The step X02 is to assign the R-subpixel value of the first pixel to a geometrical position in the first pixel depth value corresponding to the R-subpixel value of the first pixel, to assign the G-subpixel value of the first pixel to a geometrical position in the third pixel depth value corresponding to the G-subpixel value of the third pixel, to assign the B-subpixel value of the first pixel to a geometrical position in the first pixel depth value corresponding to the B-subpixel value of the first pixel, to assign the R-subpixel value of the second pixel to a geometrical position in the fourth pixel depth value corresponding to the R-subpixel value of the fourth pixel, to assign the G-subpixel value of the second pixel to a geometrical position in the second pixel depth value corresponding to the G-subpixel value of the second pixel, to assign the B-subpixel value of the second pixel to a geometrical position in the second pixel depth value corresponding to the B-subpixel value of the second pixel, to assign the R-subpixel value of the third pixel to a geometrical position in the third pixel depth value corresponding to the R-subpixel value of the third pixel, and to assign the B-subpixel value of the fourth pixel to a geometrical position in the fourth pixel depth value corresponding to the B-subpixel value of the fourth pixel.

    [0118] Specifically, when the coding and decoding system adopts the YCbCr 4:2:2 format, in the four pixels of the embodiment as shown in FIG. 6B, the obtaining unit 21 of the circuit 2a is configured for obtaining the R-subpixel value, the G-subpixel value and the B-subpixel value of the first pixel of the group of four pixels in the RGB format, obtaining the R-subpixel value, the G-subpixel value and the B-subpixel value of the second pixel of the group of four pixels in the RGB format, obtaining the R-subpixel value of the third pixel of the group of four pixels in the RGB format, and obtaining the B-subpixel value of the fourth pixel of the group of four pixels in the RGB format. The depositing unit 22 is configured for assigning the R-subpixel value of the first pixel to a geometrical position in the first pixel depth value corresponding to the R-subpixel value of the first pixel, assigning the G-subpixel value of the first pixel to a geometrical position in the third pixel depth value corresponding to the G-subpixel value of the third pixel, assigning the B-subpixel value of the first pixel to a geometrical position in the first pixel depth value corresponding to the B-subpixel value of the first pixel, assigning the R-subpixel value of the second pixel to a geometrical position in the fourth pixel depth value corresponding to the R-subpixel value of the fourth pixel, assigning the G-subpixel value of the second pixel to a geometrical position in the second pixel depth value corresponding to the G-subpixel value of the second pixel, assigning the B-subpixel value of the second pixel to a geometrical position in the second pixel depth value corresponding to the B-subpixel value of the second pixel, assigning the R-subpixel value of the third pixel to a geometrical position in the third pixel depth value corresponding to the R-subpixel value of the third pixel, and assigning the B-subpixel value of the fourth pixel to a geometrical position in the fourth pixel depth value corresponding to the B-subpixel value of the fourth pixel.

    [0119] The recovering method will be described hereinafter with reference to FIG. 8B. Specifically, in the depacking step for the case of FIG. 8B (vertical arrangement), the subpixel values of the twelve RGB subpixels obtained by the Chroma space inverse conversion of the receiving end can be recovered to obtain the eight selected depth values as follow:


    D.sub.3i,j=R.sub.i,j,(49)


    D.sub.3i+2j=B.sub.i,j,(50)


    D.sub.3i+4,j=G.sub.i+1,j,(51)


    D.sub.3i+5,j=B.sub.i+1,j(52)


    D.sub.3i,j+1=R.sub.i,j+1,(53)


    D.sub.3i+1,j+1=G.sub.i,j,(54)


    D.sub.3i+3,j+1=R.sub.i+1,j,(55)


    D.sub.3i+5,j+1=B.sub.i+1,j+1(56)

    [0120] Accordingly, the RGB format data obtained by the Chroma space inverse conversion of the receiving end can be directly recovered without any adjustment to obtain the above-mentioned eight selected depth values. The other four depth values can be obtained by interpolation method according to the eight selected depth values and the related conversion information, thereby obtaining a better conversion to recover the original depth values. Compared with the conventional art, which replaces the lacked Chroma values by the remained neighboring Chroma values, this embodiment can directly recover multiple depth values of the image data from the obtained RGB format data, thereby improving the distortion around the area having large (or dramatic) depth gap.

    [0121] The embodiment of horizontal arrangement in which the coding and decoding system adopts YCbCr 4:2:2 format will be described hereinafter.

    [0122] FIG. 9A is a flow chart showing a method of assigning selected depth values to RGB subpixels for colored depth frame packing and depacking according to another embodiment of the disclosure.

    [0123] The four pixels of each group comprises a first pixel, a second pixel, a third pixel and a fourth pixel. The first pixel is located neighboring the second pixel and the third pixel, and the fourth pixel is located neighboring the second pixel and the third pixel. In this embodiment, each group of four pixels totally comprises twelve subpixels. In addition, the geometrical positions of the first pixel, the second pixel, the third pixel and the fourth pixel correspondingly have a first pixel depth value, a second pixel depth value, a third pixel depth value and a fourth pixel depth value, respectively. In other words, the geometrical position of the first pixel correspondingly has a first pixel depth value, the geometrical position of the second pixel correspondingly has a second pixel depth value, the geometrical position of the third pixel correspondingly has a third pixel depth value, and the geometrical position of the fourth pixel correspondingly has a fourth pixel depth value. Since each pixel has horizontally arranged subpixels, each of the first pixel depth value, the second pixel depth value, the third pixel depth value and the fourth pixel depth value at the geometrical positions corresponding to the first pixel, the second pixel, the third pixel and the fourth pixel has three depth values corresponding to the R subpixel, the G subpixel and the B subpixel.

    [0124] The conversion method of FIG. 9A can be applied to the four pixels arranged in horizontal, wherein the coding and decoding system adopts YCbCr 4:2:2 format. As shown in FIG. 9A, the method of assigning selected depth values to RGB subpixels for a colored depth frame packing and depacking comprises a step Y01 and a step Y02. The step Y01 is to obtain two depth values from each of the first pixel depth value, the second pixel depth value, the third pixel depth value and the fourth pixel depth value. The step Y02 is to assign one of the two depth values obtained from the first pixel depth value to an R-subpixel value of the first pixel in a converted RGB format, to assign the other one of the two depth values obtained from the first pixel depth value to a G-subpixel value of the first pixel in the converted RGB format, to assign one of the two depth values obtained from the second pixel depth value to a B-subpixel value of the first pixel in the converted RGB format, to assign the other one of the two depth values obtained from the second pixel depth value to an R-subpixel value, a G-subpixel value and a B-subpixel value of the second pixel in the converted RGB format, to assign one of the two depth values obtained from the third pixel depth value to an R-subpixel value of the third pixel in the converted RGB format, to assign the other one of the two depth values obtained from the third pixel depth value to a G-subpixel value of the third pixel in the converted RGB format, to assign one of the two depth values obtained from the fourth pixel depth value to a B-subpixel value of the third pixel in the converted RGB format, and to assign the other one of the two depth values obtained from the fourth pixel depth value to an R-subpixel value, a G-subpixel value and a B-subpixel value of the fourth pixel in the converted RGB format.

    [0125] In the step Y01 of obtaining the depth values, the depth values of the geometrical positions corresponding to the R subpixel and the G subpixel of the first pixel are obtained from the first pixel depth value, the depth values of the geometrical positions corresponding to the R subpixel and the B subpixel of the second pixel are obtained from the second pixel depth value, the depth values of the geometrical positions corresponding to the R subpixel and the G subpixel of the third pixel is obtained from the third pixel depth value, and the depth values of the geometrical positions corresponding to the R subpixel and the B subpixel of the fourth pixel are obtained from the fourth pixel depth value. In the step Y02 of assigning to the converted RGB format, the depth value obtained from the first pixel depth value corresponding to the geometrical position of the R subpixel of the first pixel is assigned to the R-subpixel value of the first pixel in the converted RGB format, the depth value obtained from the first pixel depth value corresponding to the geometrical position of the G subpixel of the first pixel is assigned to the G-subpixel value of the first pixel in the converted RGB format, the depth value obtained from the second pixel depth value corresponding to the geometrical position of the R subpixel of the second pixel is assigned to the B-subpixel value of the first pixel in the converted RGB format, the depth value obtained from the second pixel depth value corresponding to the geometrical position of the B subpixel of the second pixel is assigned to the R-subpixel value, the G-subpixel value and the B-subpixel value of the second pixel in the converted RGB format, the depth value obtained from the third pixel depth value corresponding to the geometrical position of the R subpixel of the third pixel is assigned to the R-subpixel value of the third pixel in the converted RGB format, the depth value obtained from the third pixel depth value corresponding to the geometrical position of the G subpixel of the third pixel is assigned to the G-subpixel value of the third pixel in the converted RGB format, the depth value obtained from the fourth pixel depth value corresponding to the geometrical position of the R subpixel of the fourth pixel is assigned to the B-subpixel value of the third pixel in the converted RGB format, and the depth value obtained from the fourth pixel depth value corresponding to the geometrical position of the B subpixel of the fourth pixel is assigned to the R-subpixel value, the G-subpixel value and the B-subpixel value of the fourth pixel in the converted RGB format.

    [0126] In addition, with reference to FIG. 3B, the obtaining unit 11 of the circuit 1a is configured for obtaining two depth values from each of the first pixel depth value, the second pixel depth value, the third pixel depth value and the fourth pixel depth value. The depositing unit 12 is configured for assigning one of the two depth values obtained from the first pixel depth value to an R-subpixel value of the first pixel in a converted RGB format, assigning the other one of the two depth values obtained from the first pixel depth value to a G-subpixel value of the first pixel in the converted RGB format, assigning one of the two depth values obtained from the second pixel depth value to a B-subpixel value of the first pixel in the converted RGB format, assigning the other one of the two depth values obtained from the second pixel depth value to an R-subpixel value, a G-subpixel value and a B-subpixel value of the second pixel in the converted RGB format, assigning one of the two depth values obtained from the third pixel depth value to an R-subpixel value of the third pixel in the converted RGB format, assigning the other one of the two depth values obtained from the third pixel depth value to a G-subpixel value of the third pixel in the converted RGB format, assigning one of the two depth values obtained from the fourth pixel depth value to a B-subpixel value of the third pixel in the converted RGB format, and assigning the other one of the two depth values obtained from the fourth pixel depth value to an R-subpixel value, a G-subpixel value and a B-subpixel value of the fourth pixel in the converted RGB format.

    [0127] FIG. 9B is a schematic diagram showing the RGB format of a group of four pixels and the corresponding depth values of the geometrical positions thereof according to another embodiment of the disclosure. In this embodiment, FIG. 9B shows four pixels arranged in horizontal and four pixel depth values.

    [0128] In one group of four pixels of the depth frame, the R, G and B subpixels of each pixel are arranged in horizontal as shown in FIG. 9B, wherein the first pixel comprises {R.sub.i,j, G.sub.i,j, B.sub.i,j}, the second pixel comprises {R.sub.i,j+1, G.sub.i,j+1, B.sub.i,j+1}, the third pixel comprises {R.sub.i+1,j, G.sub.i+1,j, B.sub.i+1,j}, and the fourth pixel comprises {R.sub.i+1,j+1, G.sub.i+1,j+1, B.sub.i+1,j+1}. The geometrical positions of the first pixel, the second pixel, the third pixel and the fourth pixel correspondingly have a first pixel depth value, a second pixel depth value, a third pixel depth value and a fourth pixel depth value, respectively. Since each pixel comprises three subpixels, each pixel depth value corresponding to the geometrical position also comprises three depth values. In the horizontal arrangement (FIG. 9B), the first pixel depth value is {D.sub.i,3j, D.sub.i,3j+1, D.sub.i,3j+2}, the second pixel depth value is {D.sub.i,3j+3, D.sub.i,3j+4, D.sub.i,3j+5}, the third pixel depth value is {D.sub.i+1,3j, D.sub.i+1,3j+1, D.sub.i+1,3j+2}, and the fourth pixel depth value is {D.sub.i+1,3j+3, D.sub.i+1,3j+4, D.sub.i+1,3j+5}. Accordingly, the size thereof becomes H3W. Herein, i=0, 2, 4 . . . , (H2), and j=0, 2, 4 . . . , (W2).

    [0129] Specifically, when the coding and decoding system adopts the YCbCr 4:2:2 format, in the four pixels of the embodiment as shown in FIG. 9B, the obtaining unit 11 obtains the depth values of the geometrical position corresponding to the R subpixel and the G subpixel of the first pixel from the first pixel depth value, the depth values of the geometrical positions corresponding to the R subpixel and the B subpixel of the second pixel from the second pixel depth value, the depth values of the geometrical positions corresponding to the R subpixel and the G subpixel of the third pixel from the third pixel depth value, and the depth values of the geometrical position corresponding to the R subpixel and the B subpixel of the fourth pixel from the fourth pixel depth value. In other words, eight depth values D.sub.i,3j, D.sub.i,3j+1, D.sub.i,3j+3, D.sub.i,3j+5, D.sub.i+1,3j, D.sub.i+1,3j+1, D.sub.i+1,3j+3 and D.sub.i+1,3j+5 are obtained from the horizontally arranged pixel depth values. In this case, only eight depth values are selected from the horizontally arranged pixel depth values, and then used in the following packing and depacking processes.

    [0130] Next, the depositing unit 12 is configured for assigning the depth value obtained from the first pixel depth value corresponding to the geometrical position of the R subpixel of the first pixel to the R-subpixel value of the first pixel in the converted RGB format, assigning the depth value obtained from the first pixel depth value corresponding to the geometrical position of the G subpixel of the first pixel to the G-subpixel value of the first pixel in the converted RGB format, assigning the depth value obtained from the second pixel depth value corresponding to the geometrical position of the R subpixel of the second pixel to the B-subpixel value of the first pixel in the converted RGB format, assigning the depth value obtained from the second pixel depth value corresponding to the geometrical position of the B subpixel of the second pixel to the R-subpixel value, the G-subpixel value and the B-subpixel value of the second pixel in the converted RGB format, assigning the depth value obtained from the third pixel depth value corresponding to the geometrical position of the R subpixel of the third pixel to the R-subpixel value of the third pixel in the converted RGB format, assigning the depth value obtained from the third pixel depth value corresponding to the geometrical position of the G subpixel of the third pixel to the G-subpixel value of the third pixel in the converted RGB format, assigning the depth value obtained from the fourth pixel depth value corresponding to the geometrical position of the R subpixel of the fourth pixel to the B-subpixel value of the third pixel in the converted RGB format, and assigning the depth value obtained from the fourth pixel depth value corresponding to the geometrical position of the B subpixel of the fourth pixel to the R-subpixel value, the G-subpixel value and the B-subpixel value of the fourth pixel in the converted RGB format. Specifically, in the packing step for the case of FIG. 9B (horizontal arrangement), the eight selected depth values are assigned (deposited) to the twelve RGB subpixels as follow:


    R.sub.i,j=D.sub.i,3j,(57)


    G.sub.i,j=D.sub.i,3j+1,(58)


    B.sub.i,j=D.sub.i,3j+3,(59)


    R.sub.i+1,j=D.sub.i+1,3j,(60)


    G.sub.i+1,j=D.sub.i+1,3j+1,(61)


    B.sub.i+1,j=D.sub.i+1,3j+3,(62)


    R.sub.i,j+1=G.sub.i,j+1=B.sub.i,j+1=D.sub.i,3j+5,(63)


    R.sub.i+1,j+1=G.sub.i+1,j+1=B.sub.i+1,j+1=D.sub.i+1,3j+5(64)

    [0131] Accordingly, the twelve subpixel values in the assigned (converted) RGB format can be obtained according to the selected eight depth values.

    [0132] Referring to FIG. 9B in view of FIGS. 5A and 5B, since the above equations (57)(64) are to assign the same depth value to the RGB subpixel values of the second pixel and the fourth pixel, all Chroma parameter values (Cb, Cr) of these two groups will be equal to 128 after processed by the conversion matrix of RGB to YCbCr Chroma space conversion (Table 1). Accordingly, the four RGB format pixels having the selected depth values can be converted to obtain four YCbCr format data of {Y.sub.i,j, Cb.sub.i,j, Cr.sub.i,j}, {Y.sub.i,j+1, 128, 128}, {Y.sub.i+1,j, Cb.sub.i+1,j, Cr.sub.i+1,j} and {Y.sub.i+1,j+1, 128, 128}. Normally, as shown in FIG. 5A, with ignoring the coding error, the four YCbCr format data of {Y.sub.i,j, Cb.sub.i,j, Cr.sub.i,j}, {Y.sub.i,j+1, 128, 128}, {Y.sub.i+1,j, Cb.sub.i+1,j, Cr.sub.i+1,j} and {Y.sub.i+1,j+1, 128, 128} can be processed by the image coding system to obtain four encoded data of {Y.sub.i,j, Cb.sub.i,j, Cr.sub.i,j}, {Y.sub.i,j+1, Cb.sub.i,j, Cr.sub.i,j}, {Y.sub.i+1,j, Cb.sub.i,j, Cr.sub.i,j} and {Y.sub.i+1,j+1, Cb.sub.i,j, Cr.sub.i,j}. During the coding process, the image system provides two sampling modes including a direct subsampling mode and an average subsampling mode. In the direct subsampling mode, Cb.sub.i,j=Cb.sub.i,j, Cb.sub.i+1,j=Cb.sub.i+1,j, Cr.sub.i,j=Cr.sub.i,j, and Cr.sub.i+1,j=Cr.sub.i+1,j; in the average subsampling mode, Cb.sub.i,j=Cb.sub.i,j/2+64, Cb.sub.i+1,j=Cb.sub.i+1,j/2+64, Cr.sub.i,j=Cr.sub.i,j/2+64, and Cb.sub.i+1,j=Cb.sub.i+1,j/2+64.

    [0133] After the receiving end receives these data followed by the decompression process, four data of {Y.sub.i,j, Cb.sub.i,j, Cr.sub.i,j}, {Y.sub.i,j+1, Cb.sub.i,j, Cr.sub.i,j}, {Y.sub.i+1,j, Cb.sub.i,j, Cr.sub.i,j} and {Y.sub.i+1,j+1, Cb.sub.i,j, Cr.sub.i,j} can be obtained (see FIG. 5A). Then, the Chroma parameters are adjusted to recover and obtain the four original YCbCr format data. If the coding system adopts the direct subsampling mode, the Chroma parameter adjustment in the depacking process can utilize the equations of Cb.sub.i,j=Cb.sub.i,j, Cb.sub.i+1,j=Cb.sub.i+1,j, Cr.sub.i,j=Cr.sub.i,j, and Cr.sub.i+1,j=Cr.sub.i+1,j for obtaining the four original YCbCr format data of {Y.sub.i,j, Cb.sub.i,j, Cr.sub.i,j}, {Y.sub.i,j+1, 128, 128}, {Y.sub.i+1,j, Cb.sub.i+1,j, Cr.sub.i+1,j} and {Y.sub.i+1,j+1, 128, 128}. If the coding system adopts the average subsampling mode, the Chroma parameter adjustment in the depacking process can utilize the equations of Cb.sub.i,j=2Cb.sub.i,j128, Cb.sub.i+1,j=2Cb.sub.i+1,j128, Cr.sub.i,j=2Cr.sub.i,j128, and Cb.sub.i+1,j=2Cb.sub.i+1,j128 for obtaining the four original YCbCr format data. To be noted, the decoding system of the receiving end of FIG. 5A should be acknowledged of the selected sampling mode in the coding process (the direct subsampling mode or the average subsampling mode). Afterwards, the inverse conversion matrix of YCbCr to RGB Chroma space conversion (Table 2) is applied to the obtained four original YCbCr format data for recovering the original four groups of RGB format subpixels (totally 12 subpixels) of {R.sub.i,j, G.sub.i,j, B.sub.i,j}, {R.sub.i+1,j, G.sub.i+1,j, B.sub.i+1,j}, {R.sub.i,j+1, G.sub.i,j+1, B.sub.i,j+1} and {R.sub.i+1,j+1, G.sub.i+1,j+1, B.sub.i+1,j+1}. To be noted, the recovered twelve subpixel values can satisfy the above equations (57)(64) and comprise the above-mentioned eight selected depth values (D.sub.i,3j, D.sub.i,3j+1, D.sub.i,3j+3, D.sub.i,3j+5, D.sub.i+1,3j, D.sub.i+1,3j+1, D.sub.i+1,3j+3 and D.sub.i+1,3j+5 in the horizontal arrangement).

    [0134] Normally, as shown in FIG. 5B, with ignoring the coding error, the four YCbCr format data of {Y.sub.i,j, Cb.sub.i,j, Cr.sub.i,j}, {Y.sub.i,j+1, 128, 128}, {Y.sub.i+1,j, Cb.sub.i+1,j, Cr.sub.i+1,j} and {Y.sub.i+1,j+1, 128, 128} can be processed by the image coding system to obtain four encoded data of {Y.sub.i,j, Cb.sub.i,j, Cr.sub.i,j}, {Y.sub.i,j+1, Cb.sub.i,j, Cr.sub.i,j}, {Y.sub.i+1,j, Cb.sub.i,j, Cr.sub.i,j} and {Y.sub.i+1,j+1, Cb.sub.i,j, Cr.sub.i,j}. During the coding process, the image system provides two sampling modes including a direct subsampling mode and an average subsampling mode. In the direct subsampling mode, Cb.sub.i,j=Cb.sub.i,j, Cb.sub.i+1,j=Cb.sub.i+1,j, Cr.sub.i,j=Cr.sub.i,j, and Cr.sub.i+1,j=Cr.sub.i+1,j; in the average subsampling mode, Cb.sub.i,j=Cb.sub.i,j/2+64, Cb.sub.i+1,j=Cb.sub.i+1,j/2+64, Cr.sub.i,j=Cr.sub.i,j/2+64, and Cb.sub.i+1,j=Cb.sub.i+1,j/2+64. After the Chroma space conversion (from YCbCr to RGB), four groups of RGB format data can be obtained (see FIG. 5B).

    [0135] Accordingly, the receiving end cannot directly obtain the above four data of {Y.sub.i,j, Cb.sub.i,j, Cr.sub.i,j}, {Y.sub.i,j+1, Cb.sub.i,j, Cr.sub.i,j}, {Y.sub.i+1,j, Cb.sub.i,j, Cr.sub.i,j} and {Y.sub.i+1,j+1, Cb.sub.i,j, Cr.sub.i,j} during the decomprssion procedure, but can obtain the converted four groups of RGB format data only. Thus, an additional Chroma space conversion for converting the RGB format data to the YCbCr format data is performed in advance for obtaining {Y.sub.i,j, Cb.sub.i,j, Cr.sub.i,j}, {Y.sub.i,j+1, Cb.sub.i,j, Cr.sub.i,j}, {Y.sub.i+1,j, Cb.sub.i,j, Cr.sub.i,j} and {Y.sub.i+1,j+1, Cb.sub.i,j, Cr.sub.i,j}. Then, the Chroma parameters are adjusted to recover and obtain the four original YCbCr format data. If the coding system adopts the direct subsampling mode, the Chroma parameter adjustment in the depacking process can utilize the equations of Cb.sub.i,j=Cb.sub.i,j, Cb.sub.i+1,j=Cb.sub.i+1,j, Cr.sub.i,j=Cr.sub.i,j, and Cr.sub.i+1,j=Cr.sub.i+1,j for obtaining the four original YCbCr format data of {Y.sub.i,j, Cb.sub.i,j, Cr.sub.i,j}, {Y.sub.i,j+1, 128, 128}, {Y.sub.i+1,j, 128, 128} and {Y.sub.i+1,j+1, 128, 128}. If the coding system adopts the average subsampling mode, the Chroma parameter adjustment in the depacking process can utilize the equations of Cb.sub.i,j=2Cb.sub.i,j128, Cb.sub.i+1,j=2Cb.sub.i+1,j128, Cr.sub.i,j=2Cr.sub.i,j128, and Cb.sub.i+1,j=2Cb.sub.i+1,j128 for obtaining the four original YCbCr format data. To be noted, the decoding system of the receiving end of FIG. 5B should be acknowledged of the selected sampling mode in the coding process (the direct subsampling mode or the average subsampling mode). Afterwards, the inverse conversion matrix of YCbCr to RGB Chroma space conversion is applied to the obtained four original YCbCr format data for recovering the original four groups of RGB format subpixels (totally 12 subpixels) of {R.sub.i,j, G.sub.i,j, B.sub.i,j}, {R.sub.i+1,j, G.sub.i+1,j, B.sub.i+1,j, B.sub.i+1,j, R.sub.i,j+1, G.sub.i,j+1, B.sub.i,j+1} and {R.sub.i+1,j+1, G.sub.i+1,j+1, B.sub.i+1,j+1}. To be noted, the recovered twelve subpixel values can satisfy the above equations (57)(64) and comprise the above-mentioned eight selected depth values (D.sub.i,3j, D.sub.i,3j+1, D.sub.i,3j+3, D.sub.i,3j+5, D.sub.i+1,3j, D.sub.i+1,3j+1, D.sub.i+1,3j+3 and D.sub.i+1,3j+5 in the horizontal arrangement).

    [0136] Accordingly, the eight selected depth values can be directly obtained without adjustment by the method of recovering the selected depth values from the RGB subpixels for colored depth frame packing and depacking of this disclosure. The detailed content of the method of recovering the selected depth values from the RGB subpixels will be described hereinafter with reference to FIG. 9B in view of FIGS. 9C and 6B.

    [0137] FIG. 9C is a flow chart showing a method of recovering the selected depth values from the RGB subpixels for colored depth frame packing and depacking according to another embodiment of the disclosure. The recovering method of FIG. 9C can be applied to the four pixels arranged in horizontal, wherein the coding and decoding system adopts YCbCr 4:2:2 format. The recovering (inverse conversion) method of FIG. 9C is corresponding to the assigning (conversion) method of FIG. 9A.

    [0138] As mentioned above, after the processes of the video compression and decompression system and the Chroma space conversion and inverse conversion as shown in FIGS. 5A and 5B, the twelve original RGB format subpixels of {R.sub.i,j, G.sub.i,j, B.sub.i,j}, {R.sub.i+1,j, G.sub.i+1,j, B.sub.i+1,j}, {R.sub.i,j+1, G.sub.i,j+1, B.sub.i,j+1} and {R.sub.i+1j+1, G.sub.i+1,j+1, B.sub.i+1,j+1} can be obtained. The twelve subpixel values can satisfy the above equations (57)(64) and comprise the above-mentioned eight selected depth values (D.sub.i,3j, D.sub.i,3j+1, D.sub.i,3+3, D.sub.i,3j+5, D.sub.i+1,3j, D.sub.i+1,3j+1, D.sub.i+1,3j+3 and D.sub.i+1,3j+5 in the horizontal arrangement). Accordingly, the method of recovering the selected depth values from the RGB subpixels of this disclosure can recover the obtained RGB format data to obtain eight selected depth values.

    [0139] As shown in FIG. 9C, the method of recovering the selected depth values from the RGB subpixels for colored depth frame packing and depacking comprises a step Z01 and a step Z02. The step Z01 is to obtain the R-subpixel value, the G-subpixel value and the B-subpixel value of the first pixel of the group of four pixels in the RGB format, to obtain the B-subpixel value of the second pixel of the group of four pixels in the RGB format, to obtain the R-subpixel value, the G-subpixel value and the B-subpixel value of the third pixel of the group of four pixels in the RGB format, and to obtain the B-subpixel value of the fourth pixel of the group of four pixels in the RGB format. The step Z02 is to assign the R-subpixel value of the first pixel to a geometrical position in the first pixel depth value corresponding to the R-subpixel value of the first pixel, to assign the G-subpixel value of the first pixel to a geometrical position in the first pixel depth value corresponding to the G-subpixel value of the first pixel, to assign the B-subpixel value of the first pixel to a geometrical position in the second pixel depth value corresponding to the R-subpixel value of the second pixel, to assign the B-subpixel value of the second pixel to a geometrical position in the second pixel depth value corresponding to the B-subpixel value of the second pixel, to assign the R-subpixel value of the third pixel to a geometrical position in the third pixel depth value corresponding to the R-subpixel value of the third pixel, to assign the G-subpixel value of the third pixel to a geometrical position in the third pixel depth value corresponding to the G-subpixel value of the third pixel, to assign the B-subpixel value of the third pixel to a geometrical position in the fourth pixel depth value corresponding to the R-subpixel value of the fourth pixel, and to assign the B-subpixel value of the fourth pixel to a geometrical position in the fourth pixel depth value corresponding to the B-subpixel value of the fourth pixel.

    [0140] Specifically, when the coding and decoding system adopts the YCbCr 4:2:2 format, in the four pixels of the embodiment as shown in FIG. 6B, the obtaining unit 21 of the circuit 2a is configured for obtaining the R-subpixel value, the G-subpixel value and the B-subpixel value of the first pixel of the group of four pixels in the RGB format, obtaining the B-subpixel value of the second pixel of the group of four pixels in the RGB format, obtaining the R-subpixel value, the G-subpixel value and the B-subpixel value of the third pixel of the group of four pixels in the RGB format, and obtaining the B-subpixel value of the fourth pixel of the group of four pixels in the RGB format. The depositing unit 22 is configured for assigning the R-subpixel value of the first pixel to a geometrical position in the first pixel depth value corresponding to the R-subpixel value of the first pixel, assigning the G-subpixel value of the first pixel to a geometrical position in the first pixel depth value corresponding to the G-subpixel value of the first pixel, assigning the B-subpixel value of the first pixel to a geometrical position in the second pixel depth value corresponding to the R-subpixel value of the second pixel, assigning the B-subpixel value of the second pixel to a geometrical position in the second pixel depth value corresponding to the B-subpixel value of the second pixel, assigning the R-subpixel value of the third pixel to a geometrical position in the third pixel depth value corresponding to the R-subpixel value of the third pixel, assigning the G-subpixel value of the third pixel to a geometrical position in the third pixel depth value corresponding to the G-subpixel value of the third pixel, assigning the B-subpixel value of the third pixel to a geometrical position in the fourth pixel depth value corresponding to the R-subpixel value of the fourth pixel, and assigning the B-subpixel value of the fourth pixel to a geometrical position in the fourth pixel depth value corresponding to the B-subpixel value of the fourth pixel.

    [0141] The recovering method will be described hereinafter with reference to FIG. 9B. Specifically, in the depacking step for the case of FIG. 9B (horizontal arrangement), the subpixel values of the twelve RGB subpixels obtained by the Chroma space inverse conversion of the receiving end can be recovered to obtain the eight selected depth values as follow:


    D.sub.i,3j=R.sub.i,j,(65)


    D.sub.i,3j+1=G.sub.i,j,(66)


    D.sub.i,3j+3=B.sub.i,j,(67)


    D.sub.i,3j+5=B.sub.i,j+1,(68)


    D.sub.i+1,3j=R.sub.i+1,j,(69)


    D.sub.i+1,3j+1=G.sub.i+1,j,(70)


    D.sub.i+1,3j+3=B.sub.i+1,j,(71)


    D.sub.i+1,3j+5=B.sub.i+1,j+1(72)

    [0142] Accordingly, the RGB format data obtained by the Chroma space inverse conversion of the receiving end can be directly recovered without any adjustment to obtain the above-mentioned eight selected depth values. The other four depth values can be obtained by interpolation method according to the eight selected depth values and the related conversion information, thereby obtaining a better conversion to recover the original depth values. Compared with the conventional art, which replaces the lacked Chroma values by the remained neighboring Chroma values, this embodiment can directly recover multiple depth values of the image data from the obtained RGB format data, thereby improving the distortion around the area having large (or dramatic) depth gap.

    [0143] To be noted, the parameters listed in the matrix of Table 1 and Table 2 are for an example only, and the parameters in the matrix can be different in different video compression and transmission system. For example, the following Table 3 and Table 4 are the conversion matrix and inverse conversion matrix of RGB format to YCbCr format used in different video compression and transmission system. The user can calculate with the following Table 3 and Table 4 in view of the above embodiments to obtain the corresponding results.

    TABLE-US-00003 TABLE 3 conversion from RGB to YUV [00003] [ Y i U i U i ] = [ 0.2999 0.587 0.114 - 0.169 - 0.331 0.500 0.500 - 0.419 - 0.081 ] [ R i G i B i ] + [ 0 128 128 ]

    TABLE-US-00004 TABLE 4 inverse conversion from YUV to RGB [00004] [ R i G i B i ] = [ 1 0.00093 1.401687 1 - 0.3437 - 0.71417 1 2.0173 0.00099 ] + [ Y i U i - 128 V i - 128 ]

    [0144] To sum up, in the method and circuit of assigning selected depth values to RGB subpixels and recovering the selected depth values from the RGB subpixels for colored depth frame packing and depacking of this disclosure, the procedures of the conversion and inverse conversion between RGB format and YCbCr format in the conventional video compression system can be still used. Moreover, when the method and circuit of assigning selected depth values to RGB subpixels and recovering the selected depth values from the RGB subpixels applied to the packing and depacking of the conventional video compression and transmission system, multiple depth values can be directly recovered from the received RGB format without any adjustment. Compared with the conventional technology, which replaces the lacked chrominance values with the remained neighboring chrominance values, this disclosure can directly recover multiple depth values of the image data from the received RGB format, thereby improving the distortion around the area having large (or dramatic) depth gap.

    [0145] Although the disclosure has been described with reference to specific embodiments, this description is not meant to be construed in a limiting sense. Various modifications of the disclosed embodiments, as well as alternative embodiments, will be apparent to persons skilled in the art. It is, therefore, contemplated that the appended claims will cover all modifications that fall within the true scope of the disclosure.