3D data decoding device and 3D data encoding device

By converting two-dimensional geometry images into one-dimensional signals and associating color difference components with coordinate components, the 3D data decoding and encoding devices enhance encoding efficiency and quality, addressing inefficiencies in existing mesh displacement image methods.

JP2024151844AInactive Publication Date: 2024-10-25SHARP KK
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
JP2023065585
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-04-13
Publication Date
2024-10-25
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing 3D data encoding and decoding methods, particularly in mesh displacement images using the YCbCr4:2:0 format, face inefficiencies due to unclear image selection, scanning methods, and fixed correspondence between mesh displacements and image components, leading to suboptimal encoding efficiency and quality.

Method used

A 3D data decoding device that decodes mesh displacement images by converting a two-dimensional geometry image into a one-dimensional signal, utilizing a displacement unmapping unit to generate mesh displacement based on coordinate position correspondence, and a 3D data encoding device that encodes mesh displacement images by associating color difference components with coordinate components, optimizing the encoding process.

Benefits of technology

This approach reduces distortion in mesh displacement images and enables high-quality encoding and decoding of 3D data, improving encoding efficiency and image quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024151844000001_ABST
    Figure 2024151844000001_ABST
Patent Text Reader

Abstract

To encode and decode mesh displacement images as images in YCbCr4:2:0 format, thereby reducing distortion caused by encoding and enabling high-quality encoding and decoding of 3D data in encoding and decoding 3D data using a video encoding method.SOLUTION: A 3D data decoding device includes an image decoding unit that decodes a mesh displaced image from encoded data, and a displacement unmapping unit that generates a mesh displacement from the mesh displaced image. The displacement unmapping unit converts a two-dimensional image into a one-dimensional signal according to a correspondence between coordinate positions, and generates the mesh displacement on the basis of displacement mapping information that associates first and second color difference components of the mesh displaced image with coordinate components of the mesh displacement, and a two-axis usage flag that indicates whether to assign the same coordinate axis to the first color difference component and the second color difference component.SELECTED DRAWING: Figure 5
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] An embodiment of the present invention relates to a 3D data encoding device and a 3D data decoding device. [Background technology]

[0002] In order to efficiently transmit or record 3D data, there are 3D data encoding devices that convert the 3D data into a 2D image, encode it using a video encoding method, and generate encoded data, and 3D data decoding devices that decode the encoded data into a 2D image and reconstruct the 3D data.

[0003] Specific examples of 3D data encoding methods include MPEG-I's ISO / IEC 23090-5 V3C (Volumetric Video-based Coding) and V-PCC (Video-based Point Cloud Compression). V3C can encode and decode point clouds consisting of point positions and attribute information. Furthermore, it is also used for encoding and decoding multi-viewpoint images and mesh images by ISO / IEC 23090-12 (MPEG Immersive Video, MIV) and ISO / IEC 23090-29 (Video-based Dynamic Mesh Coding, V-DMC), which is currently being standardized. The latest draft document of the V-DMC method is disclosed in Non-Patent Document 1.

[0004] In these 3D data coding methods, the geometry and attributes that make up the 3D data are encoded and decoded as images using video coding methods such as H.265 / HEVC (High Efficiency Video Coding) and H.266 / VVC (Versatile Video Coding).

[0005] In the case of a point cloud, the geometry image is the depth to the projection plane, and the attribute image is the image of the attributes projected onto the projection plane.

[0006] 3D data (mesh) as in Non-Patent Document 1 is composed of a base mesh, mesh displacement, mesh displacement array, and texture mapping image. A vertex coding method such as Draco can be used for the base mesh, the geometry image is a mesh displacement image obtained by two-dimensionalizing the mesh displacement, and the attribute image is a texture mapping image. As described above, these are coded and decoded using a video coding method such as HEVC or VVC. Non-Patent Document 2 discloses an example in which 420 video coding is used for mesh displacement. [Prior art documents] [Non-patent literature]

[0007] [Non-Patent Document 1] WD 2.0 of V-DMC (ISO_IEC_WD_23090-29_v2.0_d10_clean), ISO / IEC JTC 1 / SC 29 / WG 7 N0546, January 2023 [Non-Patent Document 2] [V-DMC][New] 2D displacement vector coding for subdivided 3D mesh, ISO / IEC JTC 1 / SC 29 / WG 7 m62232, January 2023 Summary of the Invention [Problem to be solved by the invention]

[0008] The method of encoding and decoding a mesh displacement image as an image in YCbCr4:2:0 format in Non-Patent Document 2 has the problem that it is unclear which 2D image to use, the scanning method, the method of deriving the correspondence, etc. Also, there is a problem that the encoding efficiency is not optimal because the correspondence between the mesh displacement and the image component is fixedly determined.

[0009] The present invention aims to encode and decode mesh displacement images as images in YCbCr4:2:0 format in encoding and decoding 3D data using a video encoding method, thereby reducing distortion caused by encoding and enabling high-quality encoding and decoding of 3D data. [Means for solving the problem]

[0010] In order to solve the above problem, a 3D data decoding device according to one embodiment of the present invention is a 3D data decoding device that decodes encoded data, and includes an image decoding unit that decodes a mesh displacement image from a geometry image in which the Unit Type of the encoded data is V3C_GVD, and a displacement undapping unit that generates a mesh displacement from the mesh displacement image, wherein the displacement undapping unit inversely quantizes a two-dimensional image of the geometry image and converts it into a one-dimensional signal according to a correspondence between coordinate positions using a Z scan, thereby generating the mesh displacement.

[0011] In the above 3D data decoding device, The displacement unmapper characterizes the mesh displacement using a correspondence relationship between coordinate positions, including a case where the same coordinate axis is assigned to the first chrominance component and the second chrominance component.

[0012] The displacement unmapping unit converts a two-dimensional image into a one-dimensional signal according to the correspondence of coordinate positions, and generates the mesh displacement based on displacement mapping information that associates the first and second color difference components of the mesh displacement image with the coordinate components of the mesh displacement, and a two-axis usage flag that indicates whether to assign the same coordinate axis to the first color difference component and the second color difference component.

[0013] In order to solve the above problems, a 3D data encoding device according to one embodiment of the present invention is a 3D data encoding device that encodes 3D data, and includes a displacement mapping unit that generates a mesh displacement image from a mesh displacement, and an image encoding unit that encodes the mesh displacement image, wherein the displacement mapping unit converts a one-dimensional signal into a two-dimensional image according to a chrominance component identifier, and generates the mesh displacement image based on displacement mapping information that associates first and second chrominance components of the mesh displacement image with coordinate components of the mesh displacement, and a two-axis usage flag that indicates whether to assign the same coordinate axis to the first chrominance component and the second chrominance component. Effect of the Invention

[0014] According to one aspect of the present invention, distortion caused by encoding of mesh displacement images can be reduced, and 3D data can be encoded and decoded with high quality. [Brief description of the drawings]

[0015] [Figure 1] 1 is a schematic diagram showing the configuration of a 3D data transmission system according to an embodiment of the present invention. [Diagram 2] FIG. 2 is a diagram showing a hierarchical structure of data in an encoded stream. [Diagram 3] FIG. 2 is a functional block diagram showing a schematic configuration of a 3D data decoding device 31. [Figure 4] FIG. 2 is a functional block diagram showing a configuration of a base mesh decoding unit 303. [Diagram 5] FIG. 2 is a functional block diagram showing the configuration of a mesh displacement decoding unit 305. [Figure 6] FIG. 2 is a functional block diagram showing the configuration of a mesh reconstruction unit 307. [Figure 7] 13 is an example of a syntax for transmitting coordinate transformation parameters and displacement mapping parameters at the sequence level (ASPS). [Figure 8] 13 is an example of a syntax for transmitting coordinate transformation parameters and displacement mapping parameters at the picture / frame level (AFPS). [Figure 9] 13 is a diagram for explaining the operation of a displacement unmapper 3052 and a displacement mapper 1074. FIG. [Figure 10] 13 is a diagram for explaining the operation of a displacement unmapper 3052 and a displacement mapper 1074. FIG. [Figure 11] FIG. 13 is a diagram for explaining the operation of the mesh reconstructing unit 307. [Figure 12] 1 is a functional block diagram showing a schematic configuration of a 3D data encoding device 11. FIG. [Figure 13] FIG. 2 is a functional block diagram showing a configuration of a base mesh encoding unit 103. [Figure 14] FIG. 2 is a functional block diagram showing a configuration of a mesh displacement encoding unit 107. [Figure 15] FIG. 2 is a functional block diagram showing the configuration of a mesh separation unit 115. [Figure 16] 11 is a diagram for explaining the operation of the mesh separating unit 115. FIG. [Figure 17] 13 is an example of a syntax for transmitting displacement mapping parameters for each decomposition level at the sequence level (ASPS). [Figure 18] 13 is an example of a syntax for transmitting displacement mapping parameters for each decomposition level at the picture / frame level (AFPS). DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0016] Hereinafter, an embodiment of the present invention will be described with reference to the drawings.

[0017] FIG. 1 is a schematic diagram showing the configuration of a 3D data transmission system 1 according to this embodiment.

[0018] The 3D data transmission system 1 is a system that transmits an encoded stream obtained by encoding 3D data to be encoded, decodes the transmitted encoded stream, and displays the 3D data. The 3D data transmission system 1 includes a 3D data encoding device 11, a network 21, a 3D data decoding device 31, and a 3D data display device 41.

[0019] 3D data T is input to the 3D data encoding device 11.

[0020] The network 21 transmits the encoded stream Te generated by the 3D data encoding device 11 to the 3D data decoding device 31. The network 21 is the Internet, a wide area network (WAN), a local area network (LAN), or a combination of these. The network 21 is not necessarily limited to a bidirectional communication network, and may be a unidirectional communication network that transmits broadcast waves such as terrestrial digital broadcasting and satellite broadcasting. Furthermore, the network 21 may be replaced by a storage medium on which the encoded stream Te is recorded, such as a DVD (Digital Versatile Disc: registered trademark) or a BD (Blu-ray Disc: registered trademark).

[0021] The 3D data decoding device 31 decodes each of the encoded streams Te transmitted by the network 21, and generates one or more decoded 3D data Td.

[0022] The 3D data display device 41 displays all or part of one or more pieces of decoded 3D data Td generated by the 3D data decoding device 31. The 3D data display device 41 includes a display device such as a liquid crystal display or an organic EL (Electro-luminescence) display. Display forms include stationary, mobile, HMD, and the like. Furthermore, when the 3D data decoding device 31 has high processing power, it displays high quality images, and when it has only lower processing power, it displays images that do not require high processing power or display power.

[0023] <operator> The operators used in this specification are listed below.

[0024] >> is a right bit shift, << is a left bit shift, & is a bitwise AND, | is a bitwise OR, |= is the OR assignment operator, and || indicates logical OR.

[0025] x?y:z is a ternary operator that takes y if x is true (non-zero) and z if x is false (zero). Let y..z denote the set of integers from y to z.

[0026] <Structure of the coding stream Te> Before going into a detailed description of the 3D data encoding device 11 and the 3D data decoding device 31 according to this embodiment, the data structure of the encoded stream Te generated by the 3D data encoding device 11 and decoded by the 3D data decoding device 31 will be described.

[0027] 2 is a diagram showing a hierarchical structure of data in the coded stream Te. The coded stream Te has a data structure of either a V3C sample stream or a V3C unit stream. The V3C sample stream includes a sample stream header and a V3C unit. The V3C unit stream includes a V3C unit.

[0028] A V3C unit includes a V3C unit header and a V3C unit payload. The beginning of a V3C unit (=V3C unit header) is a Unit Type, which is an ID that indicates the type of V3C unit, and takes a value indicated by a label such as V3C_VPS, V3C_AD, V3C_AVD, V3C_GVD, or V3C_OVD.

[0029] If the Unit Type is V3C_VPS (Video Parameter Set), it contains the V3C parameter set.

[0030] If the Unit Type is V3C_AD (Atlas Data), it includes the VPS ID, atlasID, sample stream nal header, and multiple NAL units. The ID (Idenfication) is an integer value equal to or greater than 0.

[0031] A NAL unit is a set of NALUnitType, layerID, TemporalID, and RBSP (Raw byte sequence payload).

[0032] NAL units are identified by NALUnitType, which includes ASPS (Atlas Sequence Parameter Set), AAPS (Atlas Adaptation Parameter Set), ATL (Atlas Tile layer), SEI (Supplemental Enhancement Information), etc.

[0033] The ATL includes an ATL header and an ATL data unit, and the ATL data unit includes information such as the position and size of a patch, such as patch information data.

[0034] The SEI includes payloadType, which indicates the type of SEI, payloadSize, which indicates the size (number of bytes) of the SEI, and sei_payload, which is the data of the SEI.

[0035] If the Unit Type is V3C_AVD (Attribute Video Data), it includes the VPS ID, atlasID, attrIdx of the attribute image ID, partIdx of the partition ID, mapIdx of the map ID, auxFlag indicating whether it is auxiliary data or not, and video stream. The video stream indicates data encoded by HEVC, VVC, etc. In V-DMC, it corresponds to a texture image.

[0036] If the Unit Type is V3C_GVD (Geometry Video Data), it includes VPS ID, atlasID, mapIdx, auxFlag, and video stream. In V-DMC, it corresponds to mesh displacement.

[0037] If the Unit Type is V3C_OVD (Occumancy Video Data), it includes the VPS ID, atlasID, and video stream.

[0038] If the Unit Type is V3C_MD (Mesh data), it contains the VPS ID, atlasID, and mesh_payload. In V-DMC, it corresponds to the base mesh.

[0039] (Configuration of 3D data decoding device according to the first embodiment) 3 is a functional block diagram showing a schematic configuration of a 3D data decoding device 31 according to the first embodiment. The 3D data decoding device 31 is composed of a demultiplexing unit 301, an atlas information decoding unit 302, a base mesh decoding unit 303, a mesh displacement decoding unit 305, a mesh reconstruction unit 307, an attribute decoding unit 306, and a color space conversion unit 308. The 3D data decoding device 31 inputs encoded data of 3D data, and outputs atlas information, meshes, and attribute images.

[0040] The demultiplexing unit 301 inputs encoded data multiplexed in a byte stream format, ISOBMFF (ISO Base Media File Format), etc., demultiplexes it, and outputs an atlas information encoded stream (V3C_AD Atlas Data stream, NAL unit), a base mesh encoded stream (V3C_MD mesh_payload), a mesh displacement encoded stream (V3C_GVD video stream), and an attribute image encoded stream (V3C_AVD video stream).

[0041] The atlas information decoding unit 302 receives the atlas information encoded stream output from the demultiplexing unit 301 and decodes the atlas information.

[0042] The base mesh decoder 303 decodes the base mesh coded stream that has been coded using vertex coding (a 3D data compression coding method, for example, Draco), and outputs a base mesh. The base mesh will be described later.

[0043] The mesh displacement decoding unit 305 decodes the mesh displacement coded stream coded using VVC, HEVC, or the like, and outputs the mesh displacement.

[0044] A mesh reconstructing unit 307 receives the base mesh and the mesh displacement, and reconstructs the mesh in the 3D space.

[0045] The attribute decoding unit 306 decodes an attribute image coded stream coded by VVC, HEVC, or the like, and outputs an attribute image in the YCbCr format. The attribute image may be a texture image expanded on the UV axis (a texture mapping image converted by the UV atlas method).

[0046] The color space conversion unit 308 converts the color space of the attribute image from the YCbCr format to the RGB format. Note that the attribute image encoded stream encoded in the RGB format may be decoded and the color space conversion may be omitted.

[0047] (Decoding the base mesh) FIG. 4 is a functional block diagram showing the configuration of the base mesh decoding unit 303. The base mesh decoding unit 303 is composed of a mesh decoding unit 3031, a motion information decoding unit 3032, a mesh motion compensation unit 3033, a reference mesh memory 3034, a switch 3035, and a switch 3036. The base mesh decoding unit 303 may be configured to include a base mesh inverse quantization unit (not shown) before the output of the base mesh. When the base mesh to be decoded is coded (intra-coded) without referring to other base meshes (for example, base meshes that have already been coded and decoded), the switches 3035 and 3036 are connected to the side that does not perform motion compensation. On the other hand, when the base mesh to be decoded is coded (inter-coded) with reference to other base meshes, the switches 3035 and 3036 are connected to the side that performs motion compensation. When motion compensation is performed, the target vertex coordinates are derived by referring to the vertex coordinates and motion information that have already been decoded.

[0048] The mesh decoding unit 3031 decodes the intra-coded base mesh coded stream and outputs the base mesh. Draco or the like is used as the coding method.

[0049] The motion information decoding unit 3032 decodes the inter-coded base mesh coded stream and outputs motion information for each vertex of a reference mesh, which will be described later. Entropy coding, such as arithmetic coding, is used as the coding method.

[0050] The mesh motion compensation unit 3033 performs motion compensation on each vertex of the reference mesh input from the reference mesh memory 3034 based on the motion information, and outputs a motion-compensated mesh.

[0051] The reference mesh memory 3034 is a memory that holds decoded meshes for reference in subsequent decoding processes.

[0052] (Mesh displacement decoding) FIG. 5 is a functional block diagram showing the configuration of the mesh displacement decoding unit 305. The mesh displacement decoding unit 305 is composed of a displacement unmapper 3052 (image unpacker, displacement decoding unit), an inverse quantizer 3053, an inverse transformer 3054, and a coordinate system transformer 3055. The displacement unmapper may also be called a displacement mapping unit. As shown in the figure, the mesh displacement decoding unit 305 may further include an image decoder 3051, or the mesh displacement decoding unit 305 may not include the image decoder 3051 and may use the video decoder 31 to decode the displacement image (displacement sequence). The mesh displacement decoding unit 305 may also not include the inverse quantizer 3053 and may be configured so that image quality control is performed only by the video decoder 31.

[0053] The atlas information decoder 302 decodes, from the encoded data, coordinate system conversion information (asps_vdmc_ext_displacement_coordinate_system, afps_vdmc_ext_displacement_coordinate_system) indicating the coordinate system, and displacement mapping information (asps_vdmc_ext_displacement_chroma_location_type, afps_vdmc_ext_displacement_chroma_location_type) indicating the correspondence between the mesh displacement and the image component, a two-axis usage flag (asps_vdmc_ext_displacement_two_dimensional_flag, afps_vdmc_ext_displacement_two_dimensional_flag), and an extension axis selection flag (asps_vdmc_ext_displacement_coordinate_flag, afps_vdmc_ext_displacement_coordinate_flag).

[0054] The displacement mapping information can be said to be information (identifier) ​​that associates an image component with a coordinate component of the mesh displacement. Alternatively, the displacement mapping information can be said to be information (identifier) ​​that associates a chrominance image component with a coordinate component of the mesh displacement. Note that a gating flag may be provided separately, and each piece of coordinate system conversion information may be decoded only when the gating flag is 1. Examples of the gating flag are asps_vdmc_ext_displacement_coordinate_system_update_flag and afps_vdmc_ext_displacement_coordinate_system_update_flag. A gating flag may also be provided for the displacement mapping information, and the displacement mapping information may be decoded only when the gating flag is 1. Examples of the gating flag are asps_vdmc_ext_displacement_chroma_location_flag and afps_vdmc_ext_displacement_chroma_location_flag.

[0055] (Coordinate System) The following two types of coordinate systems are used for mesh displacement (3D vector).

[0056] Cartesian coordinate system: A Cartesian coordinate system that is commonly defined throughout the entire 3D space. (X,Y,Z) coordinate system. A Cartesian coordinate system whose direction does not change at the same time (within the same frame, within the same tile).

[0057] Local coordinate system: A Cartesian coordinate system defined for each region or vertex in 3D space. A Cartesian coordinate system whose direction can change at the same time (within the same frame, the same tile). Normal (D), tangent (U), bi-tangent (V) coordinate system. In other words, it is a Cartesian coordinate system consisting of the first axis (D) indicated by the normal vector n_vec at a certain vertex (a surface that contains the certain vertex), and the second axis (U) and third axis (V) indicated by two tangent vectors t_vec and b_vec that are perpendicular to the normal vector n_vec. n_vec, t_vec, and b_vec are three-dimensional vectors. The (D, U, V) coordinate system may also be called the (n, t, b) coordinate system.

[0058] (Decoding and deriving sequence-level control parameters) Here, the control parameters used in the mesh displacement decoding unit 305 will be described.

[0059] Figure 7 shows an example of syntax for transmitting coordinate system transformation parameters and displacement mapping parameters at the sequence level (ASPS: Atlas Sequence Parameter Set). In ASPS, coordinate system transformation parameters and displacement mapping parameters are transmitted using the asps_vdmc_extension() syntax. The semantics of each field are as follows:

[0060] asps_vdmc_ext_displacement_coordinate_system_update_flag: A flag indicating whether to update the mesh displacement coordinate system. If this flag is true (e.g., 1), the mesh displacement coordinate system is updated based on the value of asps_vdmc_ext_displacement_coordinate_system, which will be described later. If this flag is false (e.g., 0), the mesh displacement coordinate system is not updated.

[0061] asps_vdmc_ext_displacement_coordinate_system: Coordinate system transformation information indicating the coordinate system of mesh displacement. If the value is equal to a given first value (e.g. 0), it indicates a Cartesian coordinate system. If the value is equal to another second value (e.g. 1), it indicates a local coordinate system. If the syntax element does not appear, the value is inferred to be the first value (0) and the default coordinate system is the Cartesian coordinate system.

[0062] asps_vdmc_ext_displacement_chroma_location_flag: A flag indicating whether to update the mapping method between mesh displacement and image components (luminance and / or chrominance components). If this flag is true, the mapping method between mesh displacement and image components (luminance and / or chrominance components) is updated based on the value of asps_vdmc_ext_displacement_chroma_location_type described below. If this flag is false, the mapping method between mesh displacement and image components (luminance and / or chrominance components) is not updated.

[0063] asps_vdmc_ext_displacement_chroma_location_type: Displacement mapping information that indicates how to map mesh displacement and image components (luminance and / or chrominance components). Here, we explain how to further sample (thin out) specific locations of specific components when mapping to a 2D image in units of four displacement vectors using 2x2 Z scans (y, x), (y, x+1), (y+1, x), and (y+1, x+1). Note that Z-order curves (Z-order, Lebesgue curve, Morton order) that further nest Z scans may also be used (similar below). Using the scan position pos of (n, t, b), the four mesh displacement 3D vectors (n0, t0, b0), (n1, t1, b1), (n2, t2, b2), and (n3, t3, b3) may be derived as follows:

[0064] (n0, t0, b0) = (n, t, b) (pos==subpos*4 or pos%4==0 or mod 0 position) (n1, t1, b1) = (n, t, b) (pos==subpos*4+1 or pos%4==1 or mod1 position) (n2, t2, b2) = (n, t, b) (pos==subpos*4+2 or pos%4==2 or mod2 position) (n3, t3, b3) = (n, t, b) (pos==subpos*4+3 or pos%4==3 or mod3 position) Here, subpos is an integer, and % indicates the remainder (mod). modX position indicates the position where the remainder of pos by 4 is X. In two-dimensional positions, (n0, t0, b0) = (n, t, b) (x==subx*2, y==suby*2 or x%2==0 && y%2==0 or top left position) (n1, t1, b1) = (n, t, b) (x==subx*2+1, y==suby*2 or x%2==1 && y%2==0 or upper right position) (n2, t2, b2) = (n, t, b) (x==subx*2, y==suby*2+1 or x%2==0 && y%2==1 or bottom left position) (n3, t3, b3) = (n, t, b) (x==subx*2+1, y==suby*2+1 or x%2==1 && y%2==1 or bottom right position) where subx and suby are integers.

[0065] The meanings of the values ​​of asps_vdmc_ext_displacement_chroma_location_type are as follows:

[0066] asps_vdmc_ext_displacement_chroma_location_type indicates the location of the mesh displacement corresponding to the second image component (compIdx=1) and the third image component (compIdx=2) of the 420 image (420 video) used for the mesh displacement. Here, the mesh displacement location may indicate the axis type and modulus-of-two position (x%2, y%2).

[0067] t0: t-axis and (x%2, y%2) = (0, 0) t1: t-axis and (x%2, y%2) = (1, 0) t2: t-axis and (x%2, y%2) = (0, 1) t3: t-axis and (x%2, y%2) = (1, 1) b0: b-axis and (x%2, y%2) = (0, 0) b1: b-axis and (x%2, y%2) = (1, 0) b2: b-axis and (x%2, y%2) = (0, 1) b3: b-axis and (x%2, y%2) = (1, 1) A modulo-2 position is a relative position with the top left corner of a 2x2 grid being the zero point.

[0068] The two-axis usage flag (asps_vdmc_ext_displacement_two_dimensional_flag) indicates whether to assign the same coordinate axis (t axis or b axis) to the second image component (compIdx=1) and the third image component (compIdx=2) of the 420 image (420 video) used for mesh displacement. If asps_vdmc_ext_displacement_two_dimensional_flag is true, the same coordinate axis is assigned. If it is false, different coordinate axes are assigned. Here, two axes means that two axes, n and t or n and b, are coded and decoded, and three axes means that all of n, t, and b are coded and decoded.

[0069] <When the 2-axis use flag is false, 3 axes are used> If asps_vdmc_ext_displacement_two_dimensional_flag is false, compIdx=1 and compIdx=2 are assigned to different coordinate axes, t and b, respectively, and the position on the t axis (t0, t1, t2, t3) or the position on the b axis (b0, b1, b2, b3) is assigned depending on the value of asps_vdmc_ext_displacement_chroma_location_type.

[0070] Values ​​of asps_vdmc_ext_displacement_chroma_location_type: Location to assign to compIdx=1 Location to assign to compIdx=2 0: t0 b0 1: t1 b1 2: t2 b2 3: t3 b3 4: t0 b1 5: t0 b2 6: t0 b3 7: t1 b2 8: t1 b3 9: t2 b3 10: t1 b0 11: t2 b0 12: t3 b0 13: t2 b1 14: t3 b1 15: t3 b2 The allocation is not limited to the above, but may be the following: Location to assign to compIdx=1 Location to assign to compIdx=2 0: t0 b0 1: t0 b1 2: t0 b2 3: t0 b3 4: t1 b0 5: t1 b1 6: t1 b2 7: t1 b3 8: t2 b0 9: t2 b1 10: t2 b2 11: t2 b3 12: t3 b0 13: t3 b1 14: t3 b2 15: t3 b3 More specifically, if asps_vdmc_ext_displacement_two_dimensional_flag is false, 0: Of the four mesh displacement 3D vectors (n0, t0, b0), (n1, t1, b1), (n2, t2, b2), (n3, t3, b3), the first coordinate axis components n0, n1, n2, and n3 are mapped to the first image component (Y component, compIdx=0). Of the second coordinate axis components, t0 at the mod 0 position is mapped to the second image component (Cb component, hereafter compIdx=1). Of the third coordinate axis components, b0 at the mod 0 position is mapped to the third image component (Cr component, hereafter compIdx=2).

[0071] 1: Of the four mesh displacement 3D vectors, map the first coordinate axis components n0, n1, n2, and n3 to compIdx0. Of the second coordinate axis components, map t1, which is the mod 1 position, to compIdx=1. Of the third coordinate axis components, map b1, which is the mod 1 position, to compIdx=2.

[0072] 2: Of the four mesh displacement 3D vectors, the first coordinate axis components n0, n1, n2, and n3 are mapped to compIdx=0. Of the second coordinate axis components, t2 in the mod 2 position is mapped to compIdx=1. Of the third coordinate axis components, b2 in the mod 2 position is mapped to compIdx=2.

[0073] 3: Of the four mesh displacement 3D vectors, the first coordinate axis components n0, n1, n2, and n3 are mapped to compIdx=0. Of the second coordinate axis components, the mod 3 position t3 is mapped to compIdx=1. Of the third coordinate axis components, the mod 3 position b3 is mapped to compIdx=2.

[0074] 4: Of the four mesh displacement 3D vectors, the first coordinate axis components n0, n1, n2, and n3 are mapped to compIdx=0. Of the second coordinate axis components, t0, which is the mod 0 position, is mapped to compIdx=1. Of the third coordinate axis components, b1, which is the mod 1 position, is mapped to compIdx=2.

[0075] 5: Of the four mesh displacement 3D vectors, the first coordinate axis components n0, n1, n2, and n3 are mapped to compIdx=0. Of the second coordinate axis components, t0, which is the mod 0 position, is mapped to compIdx=1. Of the third coordinate axis components, b2, which is the mod 2 position, is mapped to compIdx=2.

[0076] 6: Of the four mesh displacement 3D vectors, the first coordinate axis components n0, n1, n2, and n3 are mapped to compIdx=0. Of the second coordinate axis components, t0, which is the mod 0 position, is mapped to compIdx=1. Of the third coordinate axis components, b3, which is the mod 3 position, is mapped to compIdx=2.

[0077] 7: Of the four mesh displacement 3D vectors, the first coordinate axis components n0, n1, n2, and n3 are mapped to compIdx=0. Of the second coordinate axis components, t1 in the mod 1 position is mapped to compIdx=1. Of the third coordinate axis components, b2 in the mod 2 position is mapped to compIdx=2.

[0078] 8: Of the four mesh displacement 3D vectors, the first coordinate axis components n0, n1, n2, and n3 are mapped to compIdx=0. Of the second coordinate axis components, t1 in the mod 1 position is mapped to compIdx=1. Of the third coordinate axis components, b3 in the mod 3 position is mapped to compIdx=2.

[0079] 9: Of the four mesh displacement 3D vectors, the first coordinate axis components n0, n1, n2, and n3 are mapped to compIdx=0. Of the second coordinate axis components, t2 in the mod 2 position is mapped to compIdx=1. Of the third coordinate axis components, b3 in the mod 3 position is mapped to compIdx=2.

[0080] 10: Of the four mesh displacement 3D vectors, the first coordinate axis components n0, n1, n2, and n3 are mapped to compIdx=0. Of the second coordinate axis components, t1 in the mod 1 position is mapped to compIdx=1. Of the third coordinate axis components, b0 in the mod 0 position is mapped to compIdx=2.

[0081] 11: Of the four mesh displacement 3D vectors, the first coordinate axis components n0, n1, n2, and n3 are mapped to compIdx=0. Of the second coordinate axis components, t2 in the mod 2 position is mapped to compIdx=1. Of the third coordinate axis components, b0 in the mod 0 position is mapped to compIdx=2.

[0082] 12: Of the four mesh displacement 3D vectors, the first coordinate axis components n0, n1, n2, and n3 are mapped to compIdx=0. Of the second coordinate axis components, t3, which is the mod 3 position, is mapped to compIdx=1. Of the third coordinate axis components, b0, which is the mod 0 position, is mapped to compIdx=2.

[0083] 13: Of the four mesh displacement 3D vectors, the first coordinate axis components n0, n1, n2, and n3 are mapped to compIdx = 0. Of the second coordinate axis components, t2 in the mod 2 position is mapped to compIdx = 1. Of the third coordinate axis components, b1 in the mod 1 position is mapped to compIdx = 2.

[0084] 14: Of the four mesh displacement 3D vectors, the first coordinate axis components n0, n1, n2, and n3 are mapped to compIdx=0. Of the second coordinate axis components, t3 in the mod 3 position is mapped to compIdx=1. Of the third coordinate axis components, b1 in the mod 1 position is mapped to compIdx=2.

[0085] 15: Of the four mesh displacement 3D vectors, the first coordinate axis components n0, n1, n2, and n3 are mapped to compIdx=0. Of the second coordinate axis components, t3 in the mod 3 position is mapped to compIdx=1. Of the third coordinate axis components, b2 in the mod 2 position is mapped to compIdx=2.

[0086] If the syntax element is not present, the default behavior is that corresponding to a value of 0.

[0087] <When the 2-axis use flag is true, 2 axes are used> An example will be described below in which the two-axis usage flag (asps_vdmc_ext_displacement_two_dimensional_flag) is true, the same axis of displacement is assigned to compIdx=1 and compIdx=2, and the displacement is encoded and decoded.

[0088] If asps_vdmc_ext_displacement_two_dimensional_flag is true, asps_vdmc_ext_displacement_coordinate_flag (extended axis selection flag) is further encoded or decoded. The extended axis selection flag indicates whether to use the t-axis or the b-axis when assigning the same coordinate axis. If the value is 0, the same t-axis is assigned to both compIdx=1 and compIdx=2, and if the value is 1, the same b-axis is assigned to both compIdx=1 and compIdx=2. Furthermore, if the same axis is assigned, the position within that axis is specified by asps_vdmc_ext_displacement_chroma_location_type.

[0089] More specifically, if asps_vdmc_ext_displacement_two_dimensional_flag is true and asps_vdmc_ext_displacement_coordinate_flag is 0, the same t axis is assigned to both compIdx=1 and compIdx=2, and the position on the t axis (t0, t1, t2, t3) is assigned according to the value of asps_vdmc_ext_displacement_chroma_location_type as follows:

[0090] asps_vdmc_ext_displacement_chroma_location_type: Location to assign to compIdx=1 Location to assign to compIdx=2 0: t0 t0 1: t1 t1 2: t2 t2 3: t3 t3 4: t0 t1 5: t0 t2 6: t0 t3 7: t1 t2 8: t1 t3 9: t2 t3 10: t1 t0 11: t2 t0 12: t3 t0 13: t2 t1 14: t3 t1 15: t3 t2 The allocation is not limited to the above and may be the following.

[0091] asps_vdmc_ext_displacement_chroma_location_type: Location to assign to compIdx=1 Location to assign to compIdx=2 0: t0 t1 1: t0 t2 2: t0 t3 3: t1 t2 4: t1 t3 5: t2 t3 The above is characterized by the fact that the same value is not assigned to compIdx=1 and compIdx=2. Furthermore, when compIdx=1 and compIdx=2 are swapped, the same value is not assigned. Therefore, the amount of code in the syntax can be reduced.

[0092] Similarly, more specifically, if asps_vdmc_ext_displacement_two_dimensional_flag is true and asps_vdmc_ext_displacement_coordinate_flag is 1, the same b axis is assigned to both compIdx=1 and compIdx=2, and the position within the b axis (b0, b1, b2, b3) is assigned according to the value of asps_vdmc_ext_displacement_chroma_location_type as follows:

[0093] asps_vdmc_ext_displacement_chroma_location_type: Location to assign to compIdx=1 Location to assign to compIdx=2 0: b0 b0 1: b1 b1 2: b2 b2 3: b3 b3 4: b0 b1 5: b0 b2 6: b0 b3 7: b1 b2 8: b1 b3 9: b2 b3 10: b1 b0 11: b2 b0 12: b3 b0 13: b2 b1 14: b3 b1 15: b3 b2 The allocation is not limited to the above and may be the following.

[0094] asps_vdmc_ext_displacement_chroma_location_type: Location to assign to compIdx=1 Location to assign to compIdx=2 0: b0 b1 1: b0 b2 2: b0 b3 3: b1 b2 4: b1 b3 5: b2 b3 The above is characterized by the fact that the same value is not assigned to compIdx=1 and compIdx=2. Furthermore, when compIdx=1 and compIdx=2 are swapped, the same value is not assigned. Therefore, the amount of code in the syntax can be reduced.

[0095] Here, compIdx is a variable indicating a component index, and 0, 1, and 2 may correspond to luma, chroma Cb, and chroma Cr, respectively.

[0096] Alternatively, one syntax element may be decoded from the encoded data without distinguishing between the syntax of the coordinate system transformation information and the syntax of the displacement mapping information. Specifically, asps_vdmc_ext_displacement_coordinate_system and asps_vdmc_ext_displacement_chroma_location_type may be combined into one syntax element asps_vdmc_ext_displacement_coordinate_system_and_chroma_location_type.

[0097] In addition, when asps_vdmc_ext_displacement_coordinate_system_and_chroma_location_type is afps_vdmc_ext_displacement_coordinate_system_and_chroma_location_type, similar processing can be performed by replacing each.

[0098] For example, asps_vdmc_ext_displacement_coordinate_system_and_chroma_location_type may be an N-bit integer, with the most significant bit (the lowest N bits) indicating asps_vdmc_ext_displacement_coordinate_system and the lowest N-1 bits indicating asps_vdmc_ext_displacement_chroma_location_type. N is a positive integer. For example, N=4.

[0099] asps_vdmc_ext_displacement_coordinate_system = asps_vdmc_ext_displacement_coordinate_system_and_chroma_location_type >> (N-1) asps_vdmc_ext_displacement_chroma_location_type = asps_vdmc_ext_displacement_coordinate_system_and_chroma_location_type & mask where mask = (1 << (N-1)) - 1.

[0100] Alternatively, the 3D data encoding device 11 may derive it as follows.

[0101] asps_vdmc_ext_displacement_coordinate_system_and_chroma_location_type = (asps_vdmc_ext_displacement_coordinate_system << (N-1)) | (asps_vdmc_ext_displacement_chroma_location_type asps_vdmc_ext_displacement_two_dimensional_flag: If the value is false, maps the second component of the coordinate axis to compIdx=1, maps the third component of the coordinate axis to compIdx=2, if the value is true, maps the components of the coordinate axis to compIdx=1 and compIdx=2 based on the value of asps_vdmc_ext_displacement_coordinate_flag.

[0102] asps_vdmc_ext_displacement_coordinate_flag: If the value is 0, maps the second component of the coordinate axis to compIdx=1 and compIdx=2. If the value is 1, maps the third component of the coordinate axis to compIdx=1 and compIdx=2.

[0103] (Decoding and derivation of picture / frame level control parameters) Figure 8 shows an example of a syntax for transmitting coordinate system transformation parameters and displacement mapping parameters at the picture / frame level (AFPS: Atlas Frame Parameter Set). In AFPS, coordinate system transformation parameters and displacement mapping parameters are transmitted by the afps_vdmc_extension() syntax. The semantics of each field are as follows:

[0104] afps_vdmc_ext_displacement_coordinate_system_update_flag: A flag indicating whether to update the coordinate system of the mesh displacement. If this flag is equal to true, the coordinate system of the mesh displacement is updated based on the value of afps_vdmc_ext_displacement_coordinate_system described below. If this flag is equal to false, the coordinate system of the mesh displacement is not updated.

[0105] afps_vdmc_ext_displacement_coordinate_system: Coordinate system transformation information indicating the coordinate system of the mesh displacement. If the value is equal to the first value (e.g. 0), it indicates a Cartesian coordinate system. If the value is equal to the second value (e.g. 1), it indicates a local coordinate system. If the syntax element is not present, the value is inferred as the value decoded by ASPS and the default coordinate system is the coordinate system indicated by ASPS.

[0106] afps_vdmc_ext_displacement_chroma_location_flag: A flag indicating whether to update the mapping method between mesh displacement and image components (luminance and / or chrominance components). If this flag is true, the mapping method between mesh displacement and image components (luminance and / or chrominance components) is updated based on the value of afps_vdmc_ext_displacement_chroma_location_type described below. If this flag is false, the mapping method between mesh displacement and image components (luminance and / or chrominance components) is not updated.

[0107] afps_vdmc_ext_displacement_chroma_location_type: Displacement mapping information indicating how to map mesh displacements to image components (luminance and / or chrominance components). The meaning of the values ​​is as described in the semantics of asps_vdmc_ext_displacement_chroma_location_type. If the syntax element is not present, the value is inferred as an ASPS decoded value and the default behavior is the behavior indicated by ASPS.

[0108] Also, afps_vdmc_ext_displacement_coordinate_system and afps_vdmc_ext_displacement_chroma_location_type may be combined into one syntax element afps_vdmc_ext_displacement_coordinate_system_and_chroma_location_type. For example, afps_vdmc_ext_displacement_coordinate_system_and_chroma_location_type may be an N-bit integer in which the most significant bit (the lowest N bits) indicates afps_vdmc_ext_displacement_coordinate_system and the lowest N-1 bits indicate afps_vdmc_ext_displacement_chroma_location_type. N is a positive integer.

[0109] afps_vdmc_ext_displacement_coordinate_system = afps_vdmc_ext_displacement_coordinate_system_and_chroma_location_type >> (N-1) afps_vdmc_ext_displacement_chroma_location_type = afps_vdmc_ext_displacement_coordinate_system_and_chroma_location_type & mask where mask = (1 << (N-1)) - 1.

[0110] Alternatively, the 3D data encoding device 11 may derive it as follows.

[0111] afps_vdmc_ext_displacement_coordinate_system_and_chroma_location_type = (afps_vdmc_ext_displacement_coordinate_system << (N-1)) | (afps_vdmc_ext_displacement_chroma_location_type afps_vdmc_ext_displacement_two_dimensional_flag: The meaning of the value is as described in the semantics of asps_vdmc_ext_displacement_two_dimensional_flag. If the syntax element is not present, the value is assumed to be an ASPS decoded value and the default behavior is the behavior indicated by ASPS.

[0112] afps_vdmc_ext_displacement_coordinate_flag: The meaning of the value is as explained in the semantics of asps_vdmc_ext_displacement_coordinate_flag. If the syntax element is not present, the value is presumed to be the ASPS decoded value and the default behavior is the behavior indicated by ASPS.

[0113] (Derivation of coordinate system transformation parameters) The mesh displacement decoding unit 305 derives the coordinate system transformation parameter displacementCoordinateSystem as follows:

[0114] if ( afps_vdmc_ext_displacement_coordinate_system_update_flag ) { displacementCoordinateSystem = afps_vdmc_ext_displacement_coordinate_system } else if ( asps_vdmc_ext_displacement_coordinate_system_update_flag ) { displacementCoordinateSystem = asps_vdmc_ext_displacement_coordinate_system } else { displacementCoordinateSystem = 0 } Alternatively, if the syntax element appears at multiple levels, the coordinate system transformation parameter displacementCoordinateSystem may be derived by overwriting it with the value at the lower level.

[0115] displacementCoordinateSystem = 0 if ( asps_vdmc_ext_displacement_coordinate_system_update_flag ) { displacementCoordinateSystem = asps_vdmc_ext_displacement_coordinate_system } if ( afps_vdmc_ext_displacement_coordinate_system_update_flag ) { displacementCoordinateSystem = afps_vdmc_ext_displacement_coordinate_system } (Derivation of Displacement Mapping Parameters) The mesh displacement decoding unit 305 derives the displacement mapping parameter displacementChromaLocationType as follows:

[0116] if ( afps_vdmc_ext_displacement_chroma_location_flag ) { displacementChromaLocationType = afps_vdmc_ext_displacement_chroma_location_type } else if ( asps_vdmc_ext_displacement_chroma_location_flag ) { displacementChromaLocationType = asps_vdmc_ext_displacement_chroma_location_type } else { displacementChromaLocationType = 0 } Alternatively, if the syntax element appears at multiple levels, it may be overridden by the value at the lower level to derive the displacement mapping parameter displacementChromaLocationType.

[0117] displacementChromaLocationType = 0 if ( asps_vdmc_ext_displacement_chroma_location_flag ) { displacementChromaLocationType = asps_vdmc_ext_displacement_chroma_location_type } if ( afps_vdmc_ext_displacement_chroma_location_flag ) { displacementChromaLocationType = afps_vdmc_ext_displacement_chroma_location_type } (Operation of Mesh Displacement Decoding Unit) The image decoding unit 3051 decodes a mesh displacement coded stream (V3C_GVD video stream) coded by VVC, HEVC, or the like, and outputs a decoded image (mesh displacement image, mesh displacement array) with (quantized) mesh displacement as pixel values. The color components of the geometry are represented by DecGeoChromaFormat. The image may be in YCbCr4:2:0 format. The mesh displacement image may also be a converted mesh displacement image. It may also be a residual of the mesh displacement image. Each component of a three-dimensional image is called an image component (or a color component, or a component).

[0118] The displacement unmapping unit 3052 generates a mesh displacement from a mesh displacement image. Specifically, the mesh displacement Qdisp[compIdx][pos] of a one-dimensional signal in component compIdx units is derived from gFrame[compIdx][y][x] of a mesh displacement image of a two-dimensional image according to the correspondence of coordinate positions. When deriving the one-dimensional signal, Qdisp2[compIdx][y][x] of a two-dimensional image may be derived from gFrame[compIdx][y][x] according to the correspondence of coordinate positions, and Qdisp[compIdx][pos] may be derived from Qdisp2[compIdx][y][x]. Note that gFrame may be an image array DecGeoFrames[mapIdx][frameIdx] decoded from a geometry image coding stream (video stream of V3C_GVD). The following gFrame[compIdx][y][x] may be DecGeoFrames[mapIdx][frameIdx][compIdx][y][x]. The correspondence between the coordinate positions may be a raster scan or a 2x2 Z scan, which will be described later. Also, the correspondence may be changed using a displacement mapping parameter displacementChromaLocationType or color difference sample position information, which will be described later.

[0119] In one configuration, the (quantized) mesh displacement array Qdisp2 is derived from the mesh displacement image (Fig. 9, Fig. 10) based on the value of the displacement mapping parameter displacementChromaLocationType. An example of deriving 2D mesh displacements from a 2D mesh displacement image is described below. In the case that the geometry image is a YUV420 image (DecGeoChromaFormat==1), the following applies:

[0120] For image width W and height H, (y=0..H-1, x=0..W-1), apply the following, where yc=y / 2 and xc=x / 2.

[0121] Derive the first element of the mesh displacement array, Qdisp2[0], from the luminance (Y) image component.

[0122] Qdisp2[0][y][x] = gFrame[0][y][x] The displacement unmapper 3052 samples and assigns values ​​of the geometry image gFrame to specific positions (modX positions, X=0..3) of the 2x2 Z scan at compIdx=1..2, and assigns 0 to other positions (modY positions, Y=0..3 other than X), to derive the second component Qdisp2[1] of the mesh displacement array from the chrominance (Cb) image component at compIdx=1, and the third component Qdisp2[2] of the mesh displacement array from the chrominance (Cr) image component at compIdx=2, where modX positions may be selected from the displacementChromaLocationType.

[0123] <Configuration using 3 axes> The displacement unmapper 3052 may derive Qdisp2[1] and Qdisp2[2] by the following process: In addition, the following process may be performed when the two-axis usage flag (asps_vdmc_ext_displacement_two_dimensional_flag or afps_vdmc_ext_displacement_two_dimensional_flag) is false.

[0124] if ( displacementChromaLocationType == 0 ) { Qdisp2[1][2*yc ][2*xc ] = gFrame[1][yc][xc] Qdisp2[1][2*yc+1][2*xc ] = 0 Qdisp2[1][2*yc ][2*xc+1] = 0 Qdisp2[1][2*yc+1][2*xc+1] = 0 Qdisp2[2][2*yc ][2*xc ] = gFrame[2][yc][xc] Qdisp2[2][2*yc+1][2+xc ] = 0 Qdisp2[2][2*yc ][2*xc+1] = 0 Qdisp2[2][2*yc+1][2*xc+1] = 0 } else if ( displacementChromaLocationType == 1 ) { Qdisp2[1][2*yc ][2*xc ] = 0 Qdisp2[1][2*yc+1][2*xc ] = gFrame[1][yc][xc] Qdisp2[1][2*yc ][2*xc+1] = 0 Qdisp2[1][2*yc+1][2*xc+1] = 0 Qdisp2[2][2*yc ][2*xc ] = 0 Qdisp2[2][2*yc+1][2*xc ] = gFrame[2][yc][xc] Qdisp2[2][2*yc ][2*xc+1] = 0 Qdisp2[2][2*yc+1][2*xc+1] = 0 } else if ( displacementChromaLocationType == 2 ) { Qdisp2[1][2*yc ][2*xc ] = 0 Qdisp2[1][2*yc+1][2*xc ] = 0 Qdisp2[1][2*yc ][2*xc+1] = gFrame[1][yc][xc] Qdisp2[1][2*yc+1][2*xc+1] = 0 Qdisp2[2][2*yc ][2*xc ] = 0 Qdisp2[2][2*yc+1][2*xc ] = 0 Qdisp2[2][2*yc ][2*xc+1] = gFrame[2][yc][xc] Qdisp2[2][2*yc+1][2*xc+1] = 0 } else if ( displacementChromaLocationType == 3 ) { Qdisp2[1][2*yc ][2*xc ] = 0 Qdisp2[1][2*yc+1][2*xc ] = 0 Qdisp2[1][2*yc ][2*xc+1] = 0 Qdisp2[1][2*yc+1][2*xc+1] = gFrame[1][yc][xc] Qdisp2[2][2*yc ][2*xc ] = 0 Qdisp2[2][2*yc+1][2*xc ] = 0 Qdisp2[2][2*yc ][2*xc+1] = 0 Qdisp2[2][2*yc+1][2*xc+1] = gFrame[2][yc][xc] } else if ( displacementChromaLocationType == 4 ) { Qdisp2[1][2*yc ][2*xc ] = gFrame[1][yc][xc] Qdisp2[1][2*yc+1][2*xc ] = 0 Qdisp2[1][2*yc ][2*xc+1] = 0 Qdisp2[1][2*yc+1][2*xc+1] = 0 Qdisp2[2][2*yc ][2*xc ] = 0 Qdisp2[2][2*yc+1][2*xc ] = gFrame[2][yc][xc] Qdisp2[2][2*yc ][2*xc+1] = 0 Qdisp2[2][2*yc+1][2*xc+1] = 0 } else if ( displacementChromaLocationType == 5 ) { Qdisp2[1][2*yc ][2*xc ] = gFrame[1][yc][xc] Qdisp2[1][2*yc+1][2*xc ] = 0 Qdisp2[1][2*yc ][2*xc+1] = 0 Qdisp2[1][2*yc+1][2*xc+1] = 0 Qdisp2[2][2*yc ][2*xc ] = 0 Qdisp2[2][2*yc+1][2*xc ] = 0 Qdisp2[2][2*yc ][2*xc+1] = gFrame[2][yc][xc] Qdisp2[2][2*yc+1][2*xc+1] = 0 } else if ( displacementChromaLocationType == 6 ) { Qdisp2[1][2*yc ][2*xc ] = gFrame[1][yc][xc] Qdisp2[1][2*yc+1][2*xc ] = 0 Qdisp2[1][2*yc ][2*xc+1] = 0 Qdisp2[1][2*yc+1][2*xc+1] = 0 Qdisp2[2][2*yc ][2*xc ] = 0 Qdisp2[2][2*yc+1][2*xc ] = 0 Qdisp2[2][2*yc ][2*xc+1] = 0 Qdisp2[2][2*yc+1][2*xc+1] = gFrame[2][yc][xc] } else if ( displacementChromaLocationType == 7 ) { Qdisp2[1][2*yc ][2*xc ] = 0 Qdisp2[1][2*yc+1][2*xc ] = gFrame[1][yc][xc] Qdisp2[1][2*yc ][2*xc+1] = 0 Qdisp2[1][2*yc+1][2*xc+1] = 0 Qdisp2[2][2*yc ][2*xc ] = 0 Qdisp2[2][2*yc+1][2*xc ] = 0 Qdisp2[2][2*yc ][2*xc+1] = gFrame[2][yc][xc] Qdisp2[2][2*yc+1][2*xc+1] = 0 } else if ( displacementChromaLocationType == 8 ) { Qdisp2[1][2*yc ][2*xc ] = 0 Qdisp2[1][2*yc+1][2*xc ] = gFrame[1][yc][xc] Qdisp2[1][2*yc ][2*xc+1] = 0 Qdisp2[1][2*yc+1][2*xc+1] = 0 Qdisp2[2][2*yc ][2*xc ] = 0 Qdisp2[2][2*yc+1][2*xc ] = 0 Qdisp2[2][2*yc ][2*xc+1] = 0 Qdisp2[2][2*yc+1][2*xc+1] = gFrame[2][yc][xc] } else if ( displacementChromaLocationType == 9 ) { Qdisp2[1][2*yc ][2*xc ] = 0 Qdisp2[1][2*yc+1][2*xc ] = 0 Qdisp2[1][2*yc ][2*xc+1] = gFrame[1][yc][xc] Qdisp2[1][2*yc+1][2*xc+1] = 0 Qdisp2[2][2*yc ][2*xc ] = 0 Qdisp2[2][2*yc+1][2*xc ] = 0 Qdisp2[2][2*yc ][2*xc+1] = 0 Qdisp2[2][2*yc+1][2*xc+1] = gFrame[2][yc][xc] } else if ( displacementChromaLocationType == 10 ) { Qdisp2[1][2*yc ][2*xc ] = 0 Qdisp2[1][2*yc+1][2*xc ] = gFrame[1][yc][xc] Qdisp2[1][2*yc ][2*xc+1] = 0 Qdisp2[1][2*yc+1][2*xc+1] = 0 Qdisp2[2][2*yc ][2*xc ] = gFrame[2][yc][xc] Qdisp2[2][2*yc+1][2*xc ] = 0 Qdisp2[2][2*yc ][2*xc+1] = 0 Qdisp2[2][2*yc+1][2*xc+1] = 0 } else if ( displacementChromaLocationType == 11 ) { Qdisp2[1][2*yc ][2*xc ] = 0 Qdisp2[1][2*yc+1][2*xc ] = 0 Qdisp2[1][2*yc ][2*xc+1] = gFrame[1][yc][xc] Qdisp2[1][2*yc+1][2*xc+1] = 0 Qdisp2[2][2*yc ][2*xc ] = gFrame[2][yc][xc] Qdisp2[2][2*yc+1][2*xc ] = 0 Qdisp2[2][2*yc ][2*xc+1] = 0 Qdisp2[2][2*yc+1][2*xc+1] = 0 } else if ( displacementChromaLocationType == 12 ) { Qdisp2[1][2*yc ][2*xc ] = 0 Qdisp2[1][2*yc+1][2*xc ] = 0 Qdisp2[1][2*yc ][2*xc+1] = 0 Qdisp2[1][2*yc+1][2*xc+1] = gFrame[1][yc][xc] Qdisp2[2][2*yc ][2*xc ] = gFrame[2][yc][xc] Qdisp2[2][2*yc+1][2*xc ] = 0 Qdisp2[2][2*yc ][2*xc+1] = 0 Qdisp2[2][2*yc+1][2*xc+1] = 0 } else if ( displacementChromaLocationType == 13 ) { Qdisp2[1][2*yc ][2*xc ] = 0 Qdisp2[1][2*yc+1][2*xc ] = 0 Qdisp2[1][2*yc ][2*xc+1] = gFrame[1][yc][xc] Qdisp2[1][2*yc+1][2*xc+1] = 0 Qdisp2[2][2*yc ][2*xc ] = 0 Qdisp2[2][2*yc+1][2*xc ] = gFrame[2][yc][xc] Qdisp2[2][2*yc ][2*xc+1] = 0 Qdisp2[2][2*yc+1][2*xc+1] = 0 } else if ( displacementChromaLocationType == 14 ) { Qdisp2[1][2*yc ][2*xc ] = 0 Qdisp2[1][2*yc+1][2*xc ] = 0 Qdisp2[1][2*yc ][2*xc+1] = 0 Qdisp2[1][2*yc+1][2*xc+1] = gFrame[1][yc][xc] Qdisp2[2][2*yc ][2*xc ] = 0 Qdisp2[2][2*yc+1][2*xc ] = gFrame[2][yc][xc] Qdisp2[2][2*yc ][2*xc+1] = 0 Qdisp2[2][2*yc+1][2*xc+1] = 0 } else if ( displacementChromaLocationType == 15 ) { Qdisp2[1][2*yc][2*xc] = 0 Qdisp2[1][2*yc+1][2*xc ] = 0 Qdisp2[1][2*yc ][2*xc+1] = 0 Qdisp2[1][2*yc+1][2*xc+1] = gFrame[1][yc][xc] Qdisp2[2][2*yc][2*xc] = 0 Qdisp2[2][2*yc+1][2*xc ] = 0 Qdisp2[2][2*yc ][2*xc+1] = gFrame[2][yc][xc] Qdisp2[2][2*yc+1][2*xc+1] = 0 } The displacement unmapper 3052 may derive Qdisp2[1] and Qdisp2[2] by the following process.

[0125] for (compIdx = 1; compIdx < 3; compIdx++) { if ( (x%2, y%2) == the location to assign to compIdx in displacementChromaLocationType ) { Qdisp2[compIdx][y][x] = gFrame[compIdx][yc][xc] } else { Qdisp2[compIdx][y][x] = 0 } } if ( (x%2, y%2) == the location to assign to compIdx in displacementChromaLocationType ) The determination may be performed by referring to the table value using displacementChromaLocationType and compIdx as follows:

[0126] if ( ((x%2)+(y%2)*2) == tbl[displacementChromaLocationType][compIdx-1]) A table could be, for example, tbl[] = {{0, 0}, {1, 1}, {2, 2}, {3, 3}, {0, 1}, {0, 2}. {0, 3}, {1, 2}, {1, 3}, {2, 3}, {1, 0}, {2, 0}, {3, 0}, {2, 1}, {3, 1}, {3, 2}}, where elements 0, 1, 2, 3 in the table indicate relative positions within a subblock (here, within a 2x2 block).

[0127] The displacement unmapping unit is characterized in that it associates two-dimensional coordinates by referring to a table. The table may be referred to using a component index, or the elements of the table may be relative positions in a subblock. It is also determined whether the relative positions in the subblock correspond to the coordinate values ​​(x, y). If the determination indicates correspondence, the value gFrame of the geometry image is derived as a mesh displacement, but if the determination indicates no correspondence, 0 (Qdisp2[compIdx][y][x] = 0) may be used instead of the value gFrame of the decoded geometry image. By referring to the table, it is possible to easily process complex correspondences such as Z scans. In addition, by using 0, it is possible to apply it to images such as 420 images that have less information than 444 images without any problems. In addition, the above table configuration and the configuration for filling 0 may also be used in a configuration for switching between the following two axes or three axes.

[0128] <Configuration for switching between 2-axis and 3-axis> Depending on the value of the two-axis usage flag (asps_vdmc_ext_displacement_two_dimensional_flag or afps_vdmc_ext_displacement_two_dimensional_flag), the displacement unmapper 3052 may derive Qdisp2[1] and Qdisp2[2] by the following process: coordinate_flag indicates the extended axis selection flag (asps_vdmc_ext_displacement_coordinate_flag, afps_vdmc_ext_displacement_coordinate_flag).

[0129] for (compIdx = 1; compIdx < 3; compIdx++) { if ( (x%2, y%2) == the location to assign to compIdx in displacementChromaLocationType ) { if (2-axis use flag is true) { Qdisp2[coordinate_flag + 1][y][x] = gFrame[compIdx][yc][xc] } else { Qdisp2[compIdx][y][x] = gFrame[compIdx][yc][xc] } } else { Qdisp2[compIdx][y][x] = 0 } } The determination of if ((x%2, y%2) == the position to be assigned to compIdx in displacementChromaLocationType) may be performed by referencing the table value using displacementChromaLocationType and compIdx as follows:

[0130] if ( ((x%2)+(y%2)*2) == tbl[displacementChromaLocationType][compIdx-1]) A table could be, for example, tbl[] = {{0, 0}, {1, 1}, {2, 2}, {3, 3}, {0, 1}, {0, 2}. {0, 3}, {1, 2}, {1, 3}, {2, 3}, {1, 0}, {2, 0}, {3, 0}, {2, 1}, {3, 1}, {3, 2}}.

[0131] Furthermore, a value indicating compIdx may be included in the table, and compIdx may be determined at the same time.

[0132] if ( (compIdx-1== tbl2[displacementChromaLocationType][0] && ((x%2)+(y%2)*2) == tbl2[displacementChromaLocationType][1]) || (compIdx-1== tbl2[displacementChromaLocationType][2] && ((x%2)+(y%2)*2) == tbl2[displacementChromaLocationType][3]) Here, the table is tbl2[] = { {0, 0, 0, 0},{0, 0, 1, 0},{0, 0, 1, 1},{0, 0, 1, 2},{0, 0, 1, 3},{0, 1, 1, 0}, {0, 1, 1, 1},{0, 1, 1, 2},{0, 1, 1, 3},{0, 2, 1, 0},{0, 2, 1, 1},{0, 2, 1, 2}, {0, 2, 1, 3},{0, 3, 1, 0},{0, 3, 1, 1},{0, 3, 1, 2},{0, 3, 1, 3},{0, 0, 0, 1}, {0, 0, 0, 2},{0, 0, 0, 3},{0, 1, 0, 0},{0, 1, 0, 2},{0, 1, 0, 3},{0, 1, 0, 0}, {0, 2, 0, 0},{0, 2, 0, 1},{0, 2, 0, 3},{0, 3, 0, 0},{0, 3, 0, 1},{0, 3, 0, 2}}.

[0133] As described above, when the two-axis usage flag (asps_vdmc_ext_displacement_two_dimensional_flag or afps_vdmc_ext_displacement_two_dimensional_flag) is true, displacementChromaLocationType=0..3, in which the same position is assigned to compIdx=1 and compIdx=2, may be prohibited.

[0134] Alternatively, the second component (compIdx=1) and the third component (compIdx=2) may be used to decode and derive individual displacement mapping parameters. displacementChromaLocationType[0] and displacementChromaLocationType[1] are used. Note that when displacementChromaLocationType[compIdx-1]=X, the value of gFrame is assigned to the modX position, and 0 is assigned to all other modY positions (Y=0..3 other than X).

[0135] For image width W and height H, (y=0..H-1, x=0..W-1), apply the following, where yc=y / 2 and xc=x / 2.

[0136] Qdisp2[0][y][x] = gFrame[0][y][x] for (compIdx=1; compIdx<3; compIdx++) { if ( displacementChromaLocationType[compIdx-1] == 0 ) { Qdisp2[compIdx][2*yc ][2*xc ] = gFrame[compIdx][yc][xc] Qdisp2[compIdx][2*yc ][2*xc+1] = 0 Qdisp2[compIdx][2*yc+1][2*xc ] = 0 Qdisp2[compIdx][2*yc+1][2*xc+1] = 0 } else if ( displacementChromaLocationType[compIdx-1] == 1 ) { Qdisp2[compIdx][2*yc ][2*xc ] = 0 Qdisp2[compIdx][2*yc ][2*xc+1] = gFrame[compIdx][yc][xc] Qdisp2[compIdx][2*yc+1][2*xc ] = 0 Qdisp2[compIdx][2*yc+1][2*xc+1] = 0 } else if ( displacementChromaLocationType[compIdx-1] == 2 ) { Qdisp2[compIdx][2*yc ][2*xc ] = 0 Qdisp2[compIdx][2*yc ][2*xc+1] = 0 Qdisp2[compIdx][2*yc+1][2*xc ] = gFrame[compIdx][yc][xc] Qdisp2[compIdx][2*yc+1][2*xc+1] = 0 } else if ( displacementChromaLocationType[compIdx-1] == 3 ) { Qdisp2[compIdx][2*yc ][2*xc ] = 0 Qdisp2[compIdx][2*yc ][2*xc+1] = 0 Qdisp2[compIdx][2*yc+1][2*xc ] = 0 Qdisp2[compIdx][2*yc+1][2*xc+1] = gFrame[compIdx][yc][xc] }} The above can also be derived as follows:

[0137] Qdisp2[compIdx][2*yc+yy][2*xc+xx] = gFrame[compIdx][yc][xc] xx = 0, yy = 0 (displacementChromaLocationType[compIdx-1]==0) xx = 1, yy = 0 (displacementChromaLocationType[compIdx-1]==1) xx = 0, yy = 1 (displacementChromaLocationType[compIdx-1]==2) xx = 1, yy = 1 (displacementChromaLocationType[compIdx-1]==3) Or, xx = displacementChromaLocationType[compIdx-1]%2 yy = displacementChromaLocationType[compIdx-1] / 2 Furthermore, the displacement unmapper 3052 derives the one-dimensional mesh displacements Qdisp[compIdx][pos] for comp=0..2 from the two-dimensional mesh displaced image Qdisp2. For pos=0..NumDisp-1, the following is performed: NumDisp is the number of mesh vertices.

[0138] Qdisp[0][pos] = Qdisp2[0][y][x] Qdisp[1][pos] = Qdisp2[1][y][x] Qdisp[2][pos] = Qdisp2[2][y][x] Here, x=pos%DecGeoWidth, y=pos / DecGeoWidth. Also, for y=0..DecGeoHeight-1, x=DecGeoWidth-1, we may derive the following: DecGeoWidth is the width of the geometry image, and DecGeoHeight is the height of the geometry image.

[0139] Qdisp2[0][y][x] = Qdisp[0][y*DecGeoWidth+x] Qdisp2[1][y][x] = Qdisp[1][y*DecGeoWidth+x] Qdisp2[2][y][x] = Qdisp[2][y*DecGeoWidth+x] The above configuration has the advantage that it can be achieved with simple processing.

[0140] One of the scanning methods for 2D scanning is 2x2 Z scan, in which case the following method is used to convert to 2D. This has the effect of reducing the subsampling mentioned above and improving image quality. For pos4=0..NumDisp / 4-1, compIdx=0..2, do the following:

[0141] Qdisp[compIdx][pos] = Qdisp2[compIdx][2*yc ][2*xc ] Qdisp[compIdx][pos] = Qdisp2[compIdx][2*yc ][2*xc+1] Qdisp[compIdx][pos] = Qdisp2[compIdx][2*yc+1][2*xc ] Qdisp[compIdx][pos] = Qdisp2[compIdx][2*yc+1][2*xc+1] Here, pos = pos4*4, xc = pos4%DecGeoWidth = pos%(DecGeoWidth / 4), and yc = pos4 / DecGeoWidth = pos / (DecGeoWidth / 4).

[0142] For pos=0..NumDisp-1, compIdx=0..2 you may do the following:

[0143] Qdisp[compIdx][pos] = Qdisp2[compIdx][2*yc+yy][2*xc+xx] where modpos=pos%4, xc= pos%(DecGeoWidth / 4), yc=pos / (DecGeoWidth / 4), xx=modpos%2, yy=modpos / 2 (Decoding and derivation for each division level) Alternatively, a configuration may be adopted in which the displacement mapping parameters, the two-axis usage flag, and the extended axis selection flag are decoded and derived individually for each mesh division level (levelOfDetails).

[0144] FIG. 17 is an example of syntax for transmitting displacement mapping parameters for each division level, two-axis usage flag two_dimensional_flag[i] (asps_vdmc_ext_displacement_two_dimensional_flag[i], or afps_vdmc_ext_displacement_two_dimensional_flag[i]), and extended axis selection flag at the sequence level (ASPS).

[0145] Figure 18 is an example of syntax for transmitting displacement mapping parameters for each division level, two-axis usage flag two_dimensional_flag[i] (asps_vdmc_ext_displacement_two_dimensional_flag[i], or afps_vdmc_ext_displacement_two_dimensional_flag[i]), and extension axis selection flag at the picture / frame level (AFPS).

[0146] for (i = 0; i < subdivisionIterationCount + 1; i++) { for (compIdx = 1; compIdx < 3; compIdx++) { if ( (x%2, y%2) == the position to assign to compIdx in displacementChromaLocationType[i] ) { if ( two_dimensional_flag[i] ) { Qdisp2[coordinate_flag[i] + 1][y][x] = gFrame[compIdx][yc][xc] } else { Qdisp2[compIdx][y][x] = gFrame[compIdx][yc][xc] } } else { Qdisp2[compIdx][y][x] = 0 } } } The mesh displacement decoding unit 305 derives the displacement mapping parameter displacementChromaLocationType[ ] for each division level as follows.

[0147] if ( afps_vdmc_ext_displacement_chroma_location_flag ) { for (i = 0; i < subdivisionIterationCount + 1; i++) { displacementChromaLocationType[i] = afps_vdmc_ext_displacement_chroma_location_type[i] } else if ( asps_vdmc_ext_displacement_chroma_location_flag ) { displacementChromaLocationType[i] = asps_vdmc_ext_displacement_chroma_location_type[i] } else { displacementChromaLocationType[i] = 0} } Alternatively, if the syntax element appears at multiple levels, it may be overridden by the value at the lower level to derive the displacement mapping parameter displacementChromaLocationType[] for each decomposition level.

[0148] for (i = 0; i < subdivisionIterationCount + 1; i++) { displacementChromaLocationType[i] = 0 if ( asps_vdmc_ext_displacement_chroma_location_flag ) { displacementChromaLocationType[i] = asps_vdmc_ext_displacement_chroma_location_type[i] } if ( afps_vdmc_ext_displacement_chroma_location_flag ) { displacementChromaLocationType[i] = afps_vdmc_ext_displacement_chroma_location_type[i] } } Here, subdivisionIterationCount is the number of division iterations of the mesh derived from asps_vmc_ext_subdivision_iteration_count, or afps_vmc_ext_subdivision_iteration_count.

[0149] asps_vmc_ext_subdivision_iteration_count and afps_vmc_ext_subdivision_iteration_count are parameters indicating the number of mesh division iterations notified at the ASPS level and AFPS level, and are parameters used to derive displacement mapping parameters for each division level.

[0150] <One-dimensional configuration> The displacement unmapper 3052 may derive the one-dimensional mesh displacements Qdisp directly from the two-dimensional mesh displacement image gFrame.

[0151] For image width W and height H, (y=0..H-1, x=0..W-1), apply the following, where yc=y / 2 and xc=x / 2.

[0152] Qdisp[0][pos] = gFrame[0][y][x] for (compIdx=1; compIdx<3; compIdx++) { if ( displacementChromaLocationType[compIdx-1] == 0 ) { Qdisp[compIdx][pos] = gFrame[compIdx][yc][xc] Qdisp[compIdx][pos+1] = 0 Qdisp[compIdx][pos+2] = 0 Qdisp[compIdx][pos+3] = 0 } else if ( displacementChromaLocationType[compIdx-1] == 1 ) { Qdisp[compIdx][pos ] = 0 Qdisp[compIdx][pos+1] = gFrame[compIdx][yc][xc] Qdisp[compIdx][pos+2] = 0 Qdisp[compIdx][pos+3] = 0} else if ( displacementChromaLocationType[compIdx-1] == 2 ) { Qdisp[compIdx][pos ] = 0 Qdisp[compIdx][pos+1] = 0 Qdisp[compIdx][pos+2] = gFrame[compIdx][yc][xc] Qdisp[compIdx][pos+3] = 0 } else if ( displacementChromaLocationType[compIdx-1] == 3 ) { Qdisp[compIdx][pos ] = 0 Qdisp[compIdx][pos+1] = 0 Qdisp[compIdx][pos+2] = 0 Qdisp[compIdx][pos+3] = gFrame[compIdx][yc][xc] } } pos=pos+4 Note that Qdisp[compIdx][pos ], Qdisp[compIdx][pos+1], Qdisp[compIdx][pos+2], and Qdisp[compIdx][pos+3] correspond to the above-mentioned mod0 position, mod1 position, mod2 position, and mod3 position, respectively. Note that processing may be switched according to DecGeoChromaFormat (chrominance component identifier), which is the chrominance format of the geometry image. That is, when DecGeoChromaFormat=1 (4:2:0), the above processing is performed, and when DecGeoChromaFormat=3 (4:4:4), the following processing is performed.

[0153] Qdisp[0][pos] = gFrame[0][y][x] Qdisp[1][pos] = gFrame[1][y][x] Qdisp[2][pos] = gFrame[2][y][x] pos=pos+1 In the above configuration, by sampling some positions using a 2x2 Z scan, it is possible to reduce the decrease in accuracy of mesh displacement.

[0154] Furthermore, by adjusting the 2x2 sampling position according to the above variable displacementChromaLocationType, it is possible to reduce the decrease in accuracy of mesh displacement due to subsampling.

[0155] According to the above-described configuration, by selecting the displacementChromaLocationType on the encoding device side, it is possible to achieve an effect of enabling mesh displacement to be decoded with improved accuracy.

[0156] Alternatively, a predetermined position in a 2x2 Z scan may be sampled without using the above variables displacementChromaLocationType, asps_vdmc_ext_displacement_chroma_location_type, and afps_vdmc_ext_displacement_chroma_location_type. This may derive the mesh displacement Qdisp or Qdisp2. In this case, the effect of reducing the processing is achieved.

[0157] Note that the mesh displacement Qdisp may be derived from the decoded image without setting the variable displacementChromaLocationType from the decoded syntax (displacement mapping information) and using the syntax value of the displacement mapping information instead of displacementChromaLocationType.

[0158] In the 3D data decoding device that decodes the encoded data as described above, an image decoding unit 3051 that decodes a mesh displacement image from a video stream of a geometry indicated by V3C_GVD of the encoded data, and a displacement unmapping unit 3052 that generates a mesh displacement from the mesh displacement image, and the displacement unmapping unit 3052 derives a displacement by converting a two-dimensional image into a one-dimensional signal according to the correspondence of coordinate positions. In the above configuration, by extending ISO / IEC 23090-5, a one-dimensional mesh displacement is derived from a geometry image (mesh displacement image) encoded by HEVC, VVC, or the like, thereby achieving an effect of enabling highly efficient mesh encoding. In addition, the device includes an image decoding unit that decodes a mesh displacement image from a geometry image whose Unit Type of the encoded data is V3C_GVD, and a displacement unmapping unit that generates a mesh displacement from the mesh displacement image, and the displacement unmapping unit inversely quantizes the two-dimensional image of the geometry image and converts it into a one-dimensional signal (inverse quantization unit 3053) according to the correspondence of coordinate positions using a Z scan, and generates the mesh displacement. By using Z-scan as the scanning method and performing inverse quantization, it is possible to decode the mesh displacement image with high accuracy. In addition, the displacement unmapper may use a correspondence relationship of coordinate positions including a case where the same coordinate axis is assigned to the first chrominance component and the second chrominance component. In addition, the correspondence relationship may be derived using a table as described later.

[0159] (Color difference sample position information and mesh displacement decoding unit operation) The relationship between DecGeoChromaSamplingPosition, which indicates the chrominance sample position information ChromaSamplingPosition (chrominance sample position information of code points independent of ISO / IEC 23091-2 coding) of the geometry image in the V3C_GVD video stream specified in ISO / IEC 23090-5, and the inverse displacement mapping unit of the mesh displacement decoding unit is explained below. Regardless of the value of the chrominance sample position information, the following configurations A and B may be performed.

[0160] The chrominance sample position information 0, 1, 2, 3, 4, 5, and 6 respectively indicate vertical center and horizontal collocated, vertical center and horizontal center, vertical collocated and horizontal collocated, vertical collocated and horizontal center, vertical +1 and horizontal collocated, and vertical +1 and horizontal center. JPEG often uses 1, ITU-R BT.601 and ITU-R BT.709 often uses 0, and ITU-T BT.2020 and ITU-T BT.2100 often uses 2.

[0161] <Configuration A> The displacement unmapper 3052 may derive the mesh displacement based on asps_vdmc_ext_displacement_chroma_location_type or asps_vdmc_ext_displacement_chroma_location_type as described above. In other words, instead of upsampling the chrominance samples using a filter, the second component Qdisp2[1] and the third component Qdisp2[2] of the mesh displacement array may be assigned the values ​​of the chrominance samples (gFrame[1], gFrame[2]) only to specific positions (modX positions, X=0..3) of the 2x2 Z scan, and 0 may be assigned to other positions (modY positions, Y=0..3 other than X).

[0162] <Configuration B> The displacement unmapper 3052 may perform upsampling (filtering in the horizontal and vertical directions) using a 4-tap filter (or a Lanczos 2 filter) as shown in the following pseudocode, assuming that the value of the chrominance sample position information is equal to 0. Alternatively, the displacement unmapper 3052 may perform upsampling using a filter with a different number of taps, such as Lanczos 3 or Lanczos 4, to derive Qdisp2 from gFrame. Furthermore, the filter may be switched depending on the quantization parameter. Note that the upsampling method may be a method similar to that described in Annex B.3.6 of ISO / IEC 23090-5.

[0163] for( c = 1 ; c < 3 ; c++ ) { for( n = 0; n < 4; n++ ) { yPos = Clip3( 0, ( PicHeight >> 2 ) - 1, yRef + n - 1 ) temp = 0 for( m = 0 ; m < 4 ; m++ ) { xPos = Clip3( 0, ( PicWidth >> 2 ) - 1, xRef + m - 1 ) temp += fC[ xPhase, m ] * gFrame[ c ][ yPos ][ xPos ] } usChromaSample += f C [ yPhase, 0 ] * temp } usChromaSample = ( usChromaSample + offset ) >> shift Qdisp2[ c ][ y ][ x ] = Clip3( 0, ( 1 << nominalBitDepth ) - 1, usChromaSample ) } According to the above-mentioned configuration, since the color difference sample position information is processed as fixed, an effect of reducing the amount of processing is achieved.

[0164] (Operation of Mesh Displacement Decoding Unit Dependent on Chrominance Sample Position Information) In the following, an example of the operation of the mesh displacement decoding unit 305 will be described when chrominance sample position information is available or when the mesh displacement coding stream includes the VUI (Video usability information) parameter vui_chroma_sample_loc_type_frame (chrominance sample position information) defined in ITU-T H.274 (Versatile supplemental enhancement information messages for coded video bitstreams). Note that the meanings of the values ​​of vui_chroma_sample_loc_type_frame and ChromaSamplingPosition are the same.

[0165] <Configuration 1> When the following (Condition 1) is all satisfied, the mesh displacement image gFrame in YCbCr4:2:0 format may be converted (upsampled) into a mesh displacement image in YCbCr4:4:4 format based on the value of the chrominance sample position information to derive the mesh displacement Qdisp2. When the value of the chrominance sample position information is equal to 0, upsampling may be performed using the method of configuration B described above. Alternatively, the method of configuration A described above may be performed.

[0166] (Condition 1) The value of the chrominance sample position information is equal to 0, 1, 2, 3, 4, or 5.

[0167] asps_vdmc_ext_displacement_chroma_location_type or afps_vdmc_ext_displacement_chroma_location_type is available.

[0168] <Configuration 2> Alternatively, when all of the following (Condition 2) are true, mesh displacement may be derived based on asps_vdmc_ext_displacement_chroma_location_type or asps_vdmc_ext_displacement_chroma_location_type. In other words, chrominance samples are not upsampled using a filter, and the second and third components Qdisp2[1] and Qdisp2[2] of the mesh displacement array may be assigned the values ​​of chrominance samples (gFrame[1], gFrame[2]) only to specific positions (modX positions, X=0..3) of the 2x2 Z scan, and 0 may be assigned to other positions (modY positions, Y=0..3 other than X).

[0169] (Condition 2) The value of chrominance sample position information is equal to 6 (undefined).

[0170] asps_vdmc_ext_displacement_chroma_location_type or afps_vdmc_ext_displacement_chroma_location_type is available.

[0171] <Configuration 3> As another configuration, when all of the following (Condition 3) are satisfied, the mesh displacement may be derived based on asps_vdmc_ext_displacement_chroma_location_type or asps_vdmc_ext_displacement_chroma_location_type. Alternatively, the mesh displacement may be derived by estimating the value of the chrominance sample position information to be 0 and converting (upsampling) a mesh displacement image in YCbCr4:2:0 format to a mesh displacement image in YCbCr4:4:4 format. Upsampling may be performed using the method of configuration B.

[0172] (Condition 3) Chrominance sample position information is not available.

[0173] asps_vdmc_ext_displacement_chroma_location_type or afps_vdmc_ext_displacement_chroma_location_type is available.

[0174] <Configuration 4> As another configuration, when all of the following (Condition 4) are satisfied, the mesh displacement may be derived based on a predetermined method (e.g., a method corresponding to vdmc_ext_displacement_chroma_location_type=0). Alternatively, the mesh displacement may be derived by converting (upsampling) a mesh displacement image in YCbCr4:2:0 format to a mesh displacement image in YCbCr4:4:4 based on a predetermined method (e.g., a method corresponding to DecGeoChromaSamplingPosition=0 or a method corresponding to vui_chroma_sample_loc_type_frame=0). As with configuration 1, the method of 4-tap filter configuration B defined in Annex B.3.6 of ISO / IEC 23090-5 may be used.

[0175] (Condition 4) The displacement mapping parameters (asps_vdmc_ext_displacement_chroma_location_flag, asps_vdmc_ext_displacement_chroma_location_type, afps_vdmc_ext_displacement_chroma_location_flag, afps_vdmc_ext_displacement_chroma_location_type) are not present in the atlas information coding stream.

[0176] According to the above-mentioned configuration, by selecting the chrominance sample position information on the encoding device side, it is possible to achieve an effect of enabling mesh displacement to be decoded with improved accuracy.

[0177] The inverse quantization unit 3053 performs inverse quantization based on the quantization scale value iscale, and derives the mesh displacement Tdisp after transformation (for example, wavelet transformation). Tdisp may be in a Cartesian coordinate system or a local coordinate system. iscale is a value derived from the quantization parameter of each component of the mesh displacement image.

[0178] Tdisp[0][pos] = (Qdisp[0][pos] * iscale[0] + iscaleOffset) >>iscaleShift Tdisp[1][pos] = (Qdisp[1][pos] * iscale[1] + iscaleOffset) >>iscaleShift Tdisp[2][pos] = (Qdisp[2][pos] * iscale[2] + iscaleOffset) >>iscaleShift Here, iscaleOffset = 1<<(iscaleShift-1). iscaleShift may be a predetermined constant, or may be a value encoded at the sequence level, picture / frame level, tile / patch level, etc., and decoded from the encoded data.

[0179] The inverse transform unit 3054 performs an inverse transform g (eg, an inverse wavelet transform) to derive the mesh displacement d.

[0180] d[0][pos] = g(Tdisp[0][pos]) d[1][pos] = g(Tdisp[1][pos]) d[2][pos] = g(Tdisp[2][pos]) The coordinate system conversion unit 3055 converts the mesh displacement (coordinate system of the mesh displacement) into the Cartesian coordinate system based on the value of the coordinate system conversion parameter displacementCoordinateSystem. Specifically, when displacementCoordinateSystem = 1, the displacement in the local coordinate system is converted into the displacement in the Cartesian coordinate system. Here, d is a three-dimensional vector indicating the mesh displacement before the coordinate system conversion. disp is a three-dimensional vector indicating the mesh displacement after the coordinate system conversion, and is a Cartesian coordinate system. n_vec, t_vec, and b_vec are three-dimensional vectors (in the Cartesian coordinate system) corresponding to each axis of the local coordinate system of the target area or target vertex.

[0181] if (displacementCoordinateSystem == 0) { disp = d } else if (displacementCoordinateSystem == 1){ disp = d[0] * n_vec + d[1] * t_vec + d[2] * b_vec } The derivation method shown in the vector multiplication above can be expressed individually as scalars as follows.

[0182] if (displacementCoordinateSystem == 0) { for (i = 0; i < 3; i++) {disp[i] = d[i]} } else if (displacementCoordinateSystem == 1){ for (i = 0; i < 3; i++) {disp[i] = d[0] * n_vec[i] + d[1] * t_vec[i] + d[2] * b_vec[i]} } Note that a configuration may be adopted in which disp=d is used, the same variable name is assigned before and after the transformation, and the value of d is updated by the coordinate transformation.

[0183] Alternatively, the following configuration may be used.

[0184] if (displacementCoordinateSystem == 0) { disp = d } else if (displacementCoordinateSystem == 1){ disp = d[0] * n_vec + d[1] * t_vec + d[2] * b_vec } else if (displacementCoordinateSystem == 2){ disp = d[0] * n_vec2 + d[1] * t_vec2 + d[2] * b_vec2 } Here, n_vec2, t_vec2, and b_vec2 are three-dimensional vectors (in the Cartesian coordinate system) corresponding to each axis of the local coordinate system of the adjacent region.

[0185] The following configuration may also be used.

[0186] if (displacementCoordinateSystem == 0) { disp = d } else if (displacementCoordinateSystem == 1){ disp = d[0] * n_vec3 + d[1] * t_vec3 + d[2] * b_vec3 } Here, n_vec3, t_vec3, and b_vec3 are three-dimensional vectors (in Cartesian coordinate system) corresponding to each axis of the local coordinate system of the target area with reduced fluctuation. For example, derive the vector of the coordinate system used for decoding from the previous coordinate system and the current coordinate system as follows: n_vec3 = (w*n_vec3 + (WT-w)*n_vec)>>wShift t_vec3 = (w*t_vec3 + (WT-w)*t_vec)>>wShift b_vec3 = (w*b_vec3 + (WT - w)*b_vec)>>wShift Here, for example, wShift = 2, 3, 4, WT = 1<<wShift, w = 1..WT - 1. For example, when w = 3 and wShift = 3, n_vec3 = (3*n_vec3 + 5*n_vec)>>3 t_vec3 = (3*t_vec3 + 5*t_vec)>>3 b_vec3 = (3*b_vec3 + 5*b_vec)>>3 Also, a configuration may be adopted in which it is possible to select according to the value of the parameter displacementCoordinateSystem decoded from the encoded data as in the following configuration.

[0187] if (displacementCoordinateSystem == 0) { disp = d } else if (displacementCoordinateSystem == 1){ disp = d[0] * n_vec + d[1] * t_vec + d[2] * b_vec } else if (displacementCoordinateSystem == 6){ disp = d[0] * n_vec3 + d[1] * t_vec3 + d[2] * b_vec3 } The image decoding unit 3051 usually uses an intra prediction method or an inter prediction method (e.g., generation of an interpolated image with a large number of taps) with high prediction accuracy in the first component. Therefore, the (quantized) mesh displacement image assigned to the luminance image of the first component has higher image quality (is more efficiently encoded) than the (quantized) mesh displacement images assigned to the chrominance images of the second and third components. Therefore, the accuracy of the mesh displacement image assigned to the luminance image is high. On the other hand, for a surface including a certain vertex, a deviation in the normal direction results in a large apparent change, so the displacement component in the normal direction is important for image quality. Therefore, by assigning the displacement component in the normal direction to the luminance image, the accuracy of the displacement component in the normal direction can be improved even with the same amount of code.

[0188] (Mesh reconstruction) 6 is a functional block diagram showing the configuration of the mesh reconstruction unit 307. The mesh reconstruction unit 307 is made up of a mesh division unit 3071 and a mesh deformation unit 3072.

[0189] The mesh dividing unit 3071 divides the base mesh output from the base mesh decoding unit 303 to generate divided meshes.

[0190] Fig. 11(a) shows a part (triangle) of the base mesh, and the triangle is composed of vertices v1, v2, and v3. v1, v2, and v3 are three-dimensional vectors. The mesh division unit 3071 generates and outputs a divided mesh by adding new vertices v12, v13, and v23 to the middle of each side of the triangle (Fig. 11(b)).

[0191] v12 = (v1 + v2) / 2 v13 = (v1 + v3) / 2 v23 = (v2 + v3) / 2 The following is also acceptable.

[0192] v12 = (v1 + v2 + 1) >>1 v13 = (v1 + v3 + 1) >>1 v23 = (v2 + v3 + 1) >>1 The mesh deformation unit 3072 receives the divided mesh and the mesh displacement, and generates and outputs a deformed mesh by adding the mesh displacements d12, d13, and d23 (FIG. 11(c)). The mesh displacements are the output of the mesh displacement decoding unit 305 (coordinate system conversion unit 3055). d12, d13, and d23 are mesh displacements corresponding to the vertices v12, v13, and v23 added by the mesh division unit 3071.

[0193] v12' = v12 + d12 v13' = v13 + d13 v23' = v23 + d23 In addition, d12 = disp[0][], d23 = disp[1][], and d23 = disp[3][] may also be used.

[0194] As described above, by configuring the coordinate system transformation parameters and / or displacement mapping parameters to be switchable at the sequence level and picture / frame level, it becomes possible to select the optimal coordinate system and the mapping (image packing) between images and displacement images according to the characteristics of the 3D data, which allows high-quality encoding and decoding of 3D data.

[0195] (Configuration of 3D data encoding device according to the first embodiment) 12 is a functional block diagram showing a schematic configuration of a 3D data encoding device 11 according to the first embodiment. The 3D data encoding device 11 includes an atlas information encoding unit 101, a base mesh encoding unit 103, a base mesh decoding unit 104, a mesh displacement updating unit 106, a mesh displacement encoding unit 107, a mesh displacement decoding unit 108, a mesh reconstruction unit 109, an attribute updating unit 110, a padding unit 111, a color space conversion unit 112, an attribute encoding unit 113, a multiplexing unit 114, and a mesh separation unit 115. The 3D data encoding device 11 inputs atlas information, a base mesh, a mesh displacement, a mesh, and an attribute image as 3D data, and outputs encoded data.

[0196] The atlas information encoding unit 101 encodes the atlas information.

[0197] The base mesh encoding unit 103 encodes the base mesh and outputs a base mesh encoded stream. Draco or the like is used as the encoding method.

[0198] The base mesh decoding unit 104 is similar to the base mesh decoding unit 303, and therefore a description thereof will be omitted.

[0199] The mesh displacement update unit 106 adjusts the mesh displacement based on the (original) base mesh and the decoded base mesh, and outputs an updated mesh displacement.

[0200] The mesh displacement encoding unit 107 encodes the updated mesh displacement and outputs a mesh displacement encoded stream. The encoding method used is VVC, HEVC, or the like.

[0201] The mesh displacement decoding unit 108 is similar to the mesh displacement decoding unit 305, and therefore a description thereof will be omitted.

[0202] The mesh reconstructing unit 109 is similar to the mesh reconstructing unit 307, and therefore a description thereof will be omitted.

[0203] The attribute update unit 110 inputs the (original) mesh, the reconstructed mesh output from the mesh reconstruction unit 109 (mesh deformation unit 3072), and an attribute image, updates the attribute image to match the position (coordinates) of the reconstructed mesh, and outputs the updated attribute image.

[0204] The padding unit 111 receives the attribute image and performs padding processing on areas where pixel values ​​are empty.

[0205] A color space conversion unit 112 performs color space conversion from the RGB format to the YCbCr format.

[0206] The attribute encoding unit 113 encodes the attribute image in the YCbCr format output from the color space conversion unit 112, and outputs an encoded attribute image stream. As an encoding method, VVC, HEVC, or the like is used.

[0207] The multiplexing unit 114 multiplexes the atlas information coded stream, the base mesh coded stream, the mesh displacement coded stream, and the attribute image coded stream, and outputs the multiplexed stream as coded data. As a multiplexing method, a byte stream format, ISOBMFF, or the like is used.

[0208] (Mesh separation unit operation) The mesh separator 115 generates a base mesh and a mesh displacement from the mesh.

[0209] 15 is a functional block diagram showing the configuration of the mesh separation unit 115. The mesh separation unit 115 is made up of a mesh thinning unit 1151, a mesh division unit 1152, and a mesh displacement derivation unit 1153.

[0210] The mesh thinning unit 1151 generates a base mesh by thinning out some of the vertices from the mesh.

[0211] Fig. 16(a) shows a part of a mesh, which is composed of vertices v1, v2, v3, v4, v5, and v6. v1, v2, v3, v4, v5, and v6 are each three-dimensional vectors. The mesh thinning unit 1151 generates and outputs a base mesh by thinning out the vertices v4, v5, and v6 (Fig. 16(b)).

[0212] The mesh dividing unit 1152, like the mesh dividing unit 3071, divides the base mesh to generate divided meshes (FIG. 16(c)).

[0213] v4' = (v1 + v2) / 2 v5' = (v1 + v3) / 2 v6' = (v2 + v3) / 2 The mesh displacement derivation unit derives and outputs the displacements d4, d5, d6 of vertices v4, v5, v6 relative to vertices v4', v5', v6' as mesh displacements based on the mesh and divided meshes (FIG. 16(d)).

[0214] d4 = v4 - v4' d5 = v5 - v5' d6 = v6 - v6' (Base mesh encoding) FIG. 13 is a functional block diagram showing the configuration of the base mesh encoding unit 103. The base mesh encoding unit 103 is composed of a mesh encoding unit 1031, a mesh decoding unit 1032, a motion information encoding unit 1033, a motion information decoding unit 1034, a mesh motion compensation unit 1035, a reference mesh memory 1036, a switch 1037, and a switch 1038. The base mesh encoding unit 103 may be configured to include a base mesh quantization unit (not shown) after the input of the base mesh. When the base mesh is encoded without referring to other base meshes (for example, an already encoded base mesh) (intra-encoding), the switch 1037 and the switch 3038 are connected to the side that does not perform motion compensation. When the base mesh is encoded with reference to other base meshes (inter-encoding), instead, the switch 1037 and the switch 3038 are connected to the side that performs motion compensation.

[0215] The mesh encoding unit 1031 has a function of intra-encoding the base mesh, intra-encodes the base mesh, and outputs a base mesh encoded stream. Draco or the like is used as the encoding method.

[0216] The mesh decoding unit 1032 is similar to the mesh decoding unit 3031, and therefore a description thereof will be omitted.

[0217] The motion information encoding unit 1033 has a base mesh inter-encoding function, inter-encodes the base mesh, and outputs a base mesh encoded stream. Entropy encoding such as arithmetic encoding is used as the encoding method.

[0218] The motion information decoding unit 1034 is similar to the motion information decoding unit 3032, and therefore a description thereof will be omitted.

[0219] The mesh motion compensation unit 1035 is similar to the mesh motion compensation unit 3033, and therefore a description thereof will be omitted.

[0220] The reference mesh memory 1036 is similar to the reference mesh memory 3034, and therefore a description thereof will be omitted.

[0221] (Mesh displacement encoding) 14 is a functional block diagram showing the configuration of the mesh displacement encoding unit 107. The mesh displacement encoding unit 107 is composed of a coordinate system conversion unit 1071, a conversion unit 1072, a quantization unit 1073, and a displacement mapping unit 1074 (image packing unit, displacement encoding unit). As shown in the figure, the mesh displacement encoding unit 107 may further include an image encoding unit 1075. Alternatively, the image encoding unit 1075 may not be included in the mesh displacement encoding unit 107, and an external image encoding device may be used to encode the displacement image.

[0222] The coordinate system conversion unit 1071 converts the coordinate system of the mesh displacement from a Cartesian coordinate system to a coordinate system that encodes the displacement (e.g., a local coordinate system) based on the value of the coordinate conversion parameter displacementCoordinateSystem. Here, disp is a three-dimensional vector indicating the mesh displacement before the coordinate system conversion, d is a three-dimensional vector indicating the mesh displacement after the coordinate system conversion, and n_vec, t_vec, and b_vec are three-dimensional vectors (in the Cartesian coordinate system) indicating each axis of the local coordinate system.

[0223] if (displacementCoordinateSystem == 0) { d = disp } else if (displacementCoordinateSystem == 1){ d = (disp * n_vec, disp * t_vec, disp * b_vec) } The mesh displacement encoding unit 107 may update the value of displacementCoordinateSystem at the sequence level, or at the picture / frame level. The initial value is 0, which indicates a Cartesian coordinate system.

[0224] When updating the displacementCoordinateSystem at the sequence level, use the syntax of the configuration in Figure 7. For asps_vdmc_ext_displacement_coordinate_system_update_flag, set 1 if the coordinate system is to be updated, or 0 if the coordinate system is not to be updated. For asps_vdmc_ext_displacement_coordinate_system, set 0 if the coordinate system is a Cartesian coordinate system, or set 1 if the coordinate system is a local coordinate system.

[0225] When changing the displacementCoordinateSystem at the picture / frame level, use the syntax in the configuration of Figure 8. For afps_vdmc_ext_displacement_coordinate_system_update_flag, set 1 if you want to update the coordinate system, or 0 if you do not want to update the coordinate system. For afps_vdmc_ext_displacement_coordinate_system, set 0 if you want a Cartesian coordinate system, or 1 if you want a local coordinate system.

[0226] A transform unit 1072 performs a transform f (eg, a wavelet transform) to derive the transformed mesh displacement Tdisp for pos=0..NumDisp-1, where NumDisp is the number of mesh vertices.

[0227] Tdisp[0][pos] = f(d[0][pos]) Tdisp[1][pos] = f(d[1][pos]) Tdisp[2][pos] = f(d[2][pos]) The quantization unit 1073 performs quantization based on a quantization scale value "scale" derived from the quantization parameter of each component of the mesh displacement, and derives a mesh displacement Qdisp after quantization.

[0228] Qdisp[0][pos] = Tdisp[0][pos] / scale[0] Qdisp[1][pos] = Tdisp[1][pos] / scale[1] Qdisp[2][pos] = Tdisp[2][pos] / scale[2] Alternatively, the scale value may be approximated by a power of 2 and Qdisp may be derived using the following formula:

[0229] scale[i] = 1 << scale2[i] Qdisp[0][pos] = Tdisp[0][pos] >> scale2[0] Qdisp[1][pos] = Tdisp[1][pos] >> scale2[1] Qdisp[2][pos] = Tdisp[2][pos] >> scale2[2] The displacement mapping unit 1074 generates an image in YCbCr4:2:0 format from the quantized mesh displacement Qdisp2 based on the value of the displacement mapping parameter displacementChromaLocationType.

[0230] <2-dimensional configuration> The displacement mapping unit 1074 converts the displacement signal sequence Qdisp[compIdx=0..2][pos] of a three-dimensional vector of (n, t, b) or (x, y, z) into a displacement image Qdisp2[compIdx][y][x] indicating the pixel value of (x, y) composed of three components of compIdx=0..2. The two-dimensional displacement image is a geometry image, and the image width is represented by GeoWidth and the height is represented by GeoHeight. Note that in the 3D data decoding device 31, DecGeoWidth=GeoWidth, DecGeoHeight=GeoHeight.

[0231] One of the scanning methods for two-dimensional scanning is raster scanning, in which case the following method is used to convert to two dimensions.

[0232] For pos=0..NumDisp-1 do the following.

[0233] Qdisp2[0][y][x] = Qdisp[0][pos] Qdisp2[1][y][x] = Qdisp[1][pos] Qdisp2[2][y][x] = Qdisp[2][pos] Here, x=pos%GeoWidth, y=pos / GeoWidth. Here, / indicates integer division by truncation, and % indicates remainder. You may also derive the following for y=0..GeoHeight-1, x=GeoWidth-1:

[0234] Qdisp2[0][y][x] = Qdisp[0][y*GeoWidth+x] Qdisp2[1][y][x] = Qdisp[1][y*GeoWidth+x] Qdisp2[2][y][x] = Qdisp[2][y*GeoWidth+x] The above configuration has the advantage that it can be achieved with simple processing.

[0235] One of the scanning methods for 2D scanning is 2x2 Z scan, in which case the following method is used to convert to 2D. This has the effect of reducing the subsampling mentioned above and improving image quality. For pos4=0..NumDisp / 4-1, compIdx=0..2, do the following:

[0236] Qdisp2[compIdx][2*yc ][2*xc ] = Qdisp[compIdx][pos] Qdisp2[compIdx][2*yc ][2*xc+1] = Qdisp[compIdx][pos+1] Qdisp2[compIdx][2*yc+1][2*xc ] = Qdisp[compIdx][pos+2] Qdisp2[compIdx][2*yc+1][2*xc+1] = Qdisp[compIdx][pos+3] Here, pos = pos4*4, xc = pos4%GeoWidth = pos%(GeoWidth / 4), yc = pos4 / GeoWidth = pos / (GeoWidth / 4).

[0237] The following derivation method is the same. For pos=0..NumDisp-1, compIdx=0..2, do the following.

[0238] Qdisp2[compIdx][2*yc+yy][2*xc+xx] = Qdisp[compIdx][pos] where modpos = pos%4, xc = pos%(GeoWidth / 4), yc = pos / (GeoWidth / 4), xx = modpos%2, yy = modpos / 2.

[0239] 9 and 10 are diagrams for explaining the operation of the displacement unmapper 3052 and the displacement mapper 1074. Here, subsampling is performed for compIdx=1..2.

[0240] / / Pack the first element of the (quantized) mesh displacement array, Qdisp2[0], into the luma (Y) image component Do the following for x=0..W-1, y=0..H-1.

[0241] gFrame[0][y][x] = Qdisp2[0][y][x] Do the following for xc=0..W / 2-1, yc=0..H / 2-1.

[0242] for (compIdx = 1; compIdx < 3; compIdx++) { if ( (x%2, y%2) == the location to assign to compIdx in displacementChromaLocationType ) { gFrame[compIdx][yc][xc] = Qdisp2[compIdx][y][x] } } Alternatively, you may do the following:

[0243] if ( displacementChromaLocationType == 0 ) { / / Pack part of the second (quantized) mesh displacement array, Qdisp2[1], into the chrominance (Cb) image component gFrame[1][yc][xc] = Qdisp2[1][2*yc][2*xc] / / Pack part of the third element of the (quantized) mesh displacement array, Qdisp2[2], into the chrominance (Cr) image component gFrame[2][yc][xc] = Qdisp2[2][2*yc][2*xc] } else if ( displacementChromaLocationType == 1 ) { gFrame[1][yc][xc] = Qdisp2[1][2*yc+1][2*xc] gFrame[2][yc][xc] = Qdisp2[2][2*yc+1][2*xc] } else if ( displacementChromaLocationType == 2 ) { gFrame[1][yc][xc] = Qdisp2[1][2*yc][2*xc+1] gFrame[2][yc][xc] = Qdisp2[2][2*yc][2*xc+1] } else if ( displacementChromaLocationType == 3 ) { gFrame[1][yc][xc] = Qdisp2[1][2*yc+1][2*xc+1] gFrame[2][yc][xc] = Qdisp2[2][2*yc+1][2*xc+1] } else if ( displacementChromaLocationType == 4 ) { gFrame[1][yc][xc] = Qdisp2[1][2*yc][2*xc] gFrame[2][yc][xc] = Qdisp2[2][2*yc+1][2*xc] } else if ( displacementChromaLocationType == 5 ) { gFrame[1][yc][xc] = Qdisp2[1][2*yc][2*xc] gFrame[2][yc][xc] = Qdisp2[2][2*yc][2*xc+1] } else if ( displacementChromaLocationType == 6 ) { gFrame[1][yc][xc] = Qdisp2[1][2*yc][2*xc] gFrame[2][yc][xc] = Qdisp2[2][2*yc+1][2*xc+1] } else if ( displacementChromaLocationType == 7 ) { gFrame[1][yc][xc] = Qdisp2[1][2*yc+1][2*xc] gFrame[2][yc][xc] = Qdisp2[2][2*yc][2*xc+1] } else if ( displacementChromaLocationType == 8 ) { gFrame[1][yc][xc] = Qdisp2[1][2*yc+1][2*xc] gFrame[2][yc][xc] = Qdisp2[2][2*yc+1][2*xc+1] } else if ( displacementChromaLocationType == 9 ) { gFrame[1][yc][xc] = Qdisp2[1][2*yc][2*xc+1] gFrame[2][yc][xc] = Qdisp2[2][2*yc+1][2*xc+1] } else if ( displacementChromaLocationType == 10 ) { gFrame[1][yc][xc] = Qdisp2[1][2*yc+1][2*xc] gFrame[2][yc][xc] = Qdisp2[2][2*yc][2*xc] } else if ( displacementChromaLocationType == 11 ) { gFrame[1][yc][xc] = Qdisp2[1][2*yc][2*xc+1] gFrame[2][yc][xc] = Qdisp2[2][2*yc][2*xc] } else if ( displacementChromaLocationType == 12 ) { gFrame[1][yc][xc] = Qdisp2[1][2*yc+1][2*xc+1] gFrame[2][yc][xc] = Qdisp2[2][2*yc][2*xc] } else if ( displacementChromaLocationType == 13 ) { gFrame[1][yc][xc] = Qdisp2[1][2*yc][2*xc+1] gFrame[2][yc][xc] = Qdisp2[2][2*yc+1][2*xc] } else if ( displacementChromaLocationType == 14 ) { gFrame[1][yc][xc] = Qdisp2[1][2*yc+1][2*xc+1] gFrame[2][yc][xc] = Qdisp2[2][2*yc+1][2*xc] } else if ( displacementChromaLocationType == 15 ) { gFrame[1][yc][xc] = Qdisp2[1][2*yc+1][2*xc+1] gFrame[2][yc][xc] = Qdisp2[2][2*yc][2*xc+1] } Alternatively, the following may be performed depending on the two-axis usage flag and the extended axis selection flag coordinate_flag (asps_vdmc_ext_displacement_coordinate_flag or afps_vdmc_ext_displacement_coordinate_flag).

[0244] for (compIdx = 1; compIdx < 3; compIdx++) { if ( (x%2, y%2) == the location to assign to compIdx in displacementChromaLocationType ) { if (2-axis use flag is true) { gFrame[coordinate_flag + 1][yc][xc] = Qdisp2[compIdx][y][x] } else { gFrame[compIdx][yc][xc] = Qdisp2[compIdx][y][x] } } } Here, when the 2-axis usage flag is true, a configuration may be adopted in which displacementChromaLocationType=0..3, in which the same position is assigned to compIdx=1 and compIdx=2, is prohibited.

[0245] (Settings for each division level, encoding) In addition, the displacement mapping parameters, two-axis usage flag two_dimensional_flag[i] (asps_vdmc_ext_displacement_two_dimensional_flag[i], or afps_vdmc_ext_displacement_two_dimensional_flag[i]), and extended axis selection flag coordinate_flag (asps_vdmc_ext_displacement_coordinate_flag[i], afps_vdmc_ext_displacement_coordinate_flag[i]) may be set and encoded individually for each mesh division level (levelOfDetails).

[0246] for (i = 0; i < subdivisionIterationCount + 1; i++) { for (compIdx = 1; compIdx < 3; compIdx++) { if ( (x%2, y%2) == the position to assign to compIdx in displacementChromaLocationType[i] ) { if ( two_dimensional_flag[i] ) { gFrame[coordinate_flag[i] + 1][yc][xc] = Qdisp2[compIdx][y][x] } else { gFrame[compIdx][yc][xc] = Qdisp2[compIdx][y][x] } } } } Alternatively, the second component (compIdx=1) and the third component (compIdx=2) may be used to decode and derive individual displacement mapping parameters. DisplacementChromaLocationType[0] and displacementChromaLocationType[1] are used.

[0247] For image width W and height H, (y=0..H-1, x=0..W-1), apply the following, where yc=y / 2 and xc=x / 2.

[0248] gFrame[0][y][x] = Qdisp2[0][y][x] for (compIdx=1; compIdx<3; compIdx++) { if ( displacementChromaLocationType[compIdx-1] == 0 ) { gFrame[compIdx][yc][xc] = Qdisp2[compIdx][2*yc ][2*xc ] } else if ( displacementChromaLocationType[compIdx-1] == 1 ) { gFrame[compIdx][yc][xc] = Qdisp2[compIdx][2*yc ][2*xc+1] } else if ( displacementChromaLocationType[compIdx-1] == 2 ) { gFrame[compIdx][yc][xc] = Qdisp2[compIdx][2*yc+1][2*xc ] } else if ( displacementChromaLocationType[compIdx-1] == 3 ) { gFrame[compIdx][yc][xc] = Qdisp2[compIdx][2*yc+1][2*xc+1] } } <One-dimensional configuration> After the above scanning from Qdisp to Qdisp2, the displacement unmapper 3052 may derive the two-dimensional mesh displacement image gFrame directly from the one-dimensional mesh displacement QDisp without mapping from Qdisp2 to gFrame.

[0249] For image width W and height H, (y=0..H-1, x=0..W-1), apply the following, where yc=y / 2 and xc=x / 2.

[0250] gFrame[0][y][x] = Qdisp[0][pos] For compIdx=1,2, for (compIdx=1; compIdx<3; compIdx++) { if ( displacementChromaLocationType[compIdx-1] == 0 ) { gFrame[compIdx][yc][xc] = Qdisp[compIdx][pos] } else if ( displacementChromaLocationType[compIdx-1] == 1 ) { gFrame[compIdx][yc][xc] = Qdisp[compIdx][pos+1] } else if ( displacementChromaLocationType[compIdx-1] == 2 ) { gFrame[compIdx][yc][xc] = Qdisp[compIdx][pos+2] } else if ( displacementChromaLocationType[compIdx-1] == 3 ) { gFrame[compIdx][yc][xc] = Qdisp[compIdx][pos+3] } } pos=pos+4 The processing may be switched according to DecGeoChromaFormat. That is, when DecGeoChromaFormat=1 (4:2:0), the above processing is performed, and when DecGeoChromaFormat=3 (4:4:4), the following processing is performed.

[0251] gFrame[0][y][x] = Qdisp[0][pos] gFrame[1][y][x] = Qdisp[1][pos] gFrame[2][y][x] = Qdisp[2][pos] pos=pos+1 The mesh displacement encoding unit 107 may update the value of displacementChromaLocationType at the sequence level, or at the picture / frame level. The initial value of displacementChromaLocationType is 0.

[0252] The meaning of the displacementChromaLocationType values ​​is as explained in asps_vdmc_ext_displacement_chroma_location_type.

[0253] When updating displacementChromaLocationType at the sequence level, use the syntax of the configuration in Figure 7. Set the value of displacementChromaLocationType to asps_vdmc_ext_displacement_chroma_location_type.

[0254] When updating displacementChromaLocationType at the picture / frame level, the syntax of the configuration in Figure 8 is used. For afps_vdmc_ext_displacement_chroma_location_type, the value of displacementChromaLocationType is set.

[0255] The image encoding unit 1075 encodes an image in YCbCr4:2:0 format including the (quantized) mesh displacement image, and outputs a mesh displacement encoded stream. The encoding method used is VVC, HEVC, or the like.

[0256] (Encoding mesh displacements taking VUI parameters into account) The image encoding unit 1075 may encode the VUI parameters defined in ITU-T H.274. For example, the VUI parameter vui_chroma_sample_loc_type_frame (chrominance sample position information) may be encoded with any one of the values ​​0, 1, 2, 3, 4, and 5. Alternatively, the image encoding unit 1075 may encode with vui_chroma_sample_loc_type_frame=6 (undefined).

[0257] When vui_chroma_sample_loc_type_frame is coded with one of the values ​​0, 1, 2, 3, 4, or 5, a mesh displacement image in YCbCr4:4:4 format may be generated from the mesh displacement, and then converted (downsampled) to a mesh displacement image in YCbCr4:2:0 format based on vui_chroma_sample_loc_type_frame.

[0258] When encoding with vui_chroma_sample_loc_type_frame=6, a mesh displacement image in YCbCr4:4:4 format may be generated from the mesh displacement, and then converted (downsampled) to a mesh displacement image in YCbCr4:2:0 format based on vui_chroma_sample_loc_type_frame=0 (default). Alternatively, a mesh displacement image in YCbCr4:2:0 format may be generated by decimating the chrominance components.

[0259] Furthermore, the image encoding unit 1075 may not encode the VUI parameters defined in ITU-T H.274. In the case where the VUI parameters are not encoded, a mesh displacement image in YCbCr4:4:4 format may be generated from the mesh displacement, and converted (downsampled) into a mesh displacement image in YCbCr4:2:0 format based on a predetermined method (for example, a method corresponding to vui_chroma_sample_loc_type_frame=0). Alternatively, a mesh displacement image in YCbCr4:2:0 format may be generated by thinning out the chrominance components.

[0260] As described above, by configuring the coordinate system transformation parameters and / or displacement mapping parameters to be switchable at the sequence level and picture / frame level, it becomes possible to select the optimal coordinate system and image packing according to the characteristics of the 3D data, thereby enabling high-quality encoding and decoding of 3D data.

[0261] Although one embodiment of the present invention has been described in detail above with reference to the drawings, the specific configuration is not limited to the above, and various design changes, etc. are possible within the scope that does not deviate from the gist of the present invention.

[0262] [Application example] The above-mentioned 3D data encoding device 11 and 3D data decoding device 31 can be mounted on various devices that transmit, receive, record, and play back 3D data for use. Note that the 3D data may be natural 3D data captured by a camera or the like, or artificial 3D data (including CG and GUI) generated by a computer or the like.

[0263] The present invention is not limited to the above-described embodiment, and various modifications are possible within the scope of the claims. In other words, the technical scope of the present invention also includes embodiments obtained by combining technical means that are appropriately modified within the scope of the claims. [Industrial Applicability]

[0264] The embodiments of the present invention can be suitably applied to a 3D data decoding device that decodes encoded data in which 3D data is encoded, and a 3D data encoding device that generates encoded data in which 3D data is encoded, and can also be suitably applied to the data structure of encoded data generated by the 3D data encoding device and referenced by the 3D data decoding device. [Explanation of symbols]

[0265] 11 3D data encoding device 101 Atlas Information Encoding Unit 103 Base mesh coding unit 1031 Mesh coding unit 1032 Mesh Decoding Unit 1033 Motion information encoding unit 1034 Motion information decoding unit 1035 Mesh Motion Compensation Unit 1036 Reference Mesh Memory 1037 Switch 1038 Switch 104 Base mesh decoding unit 106 Mesh displacement update section 107 Mesh Displacement Encoding Unit 1071 Coordinate system conversion section 1072 Converter 1073 Quantization section 1074 Displacement Mapping Section 1075 Image Encoding Unit 108 Mesh Displacement Decoding Unit 109 Mesh reconstruction unit 110 Attribute Update Section 111 Padding section 112 Color space conversion section 113 Attribute Encoding Unit 114 Multiplexer 115 Mesh separation section 1151 Mesh thinning section 1152 Mesh division section 1153 Mesh displacement derivation part 21 Network 31 3D data decoding device 301 Demultiplexer 302 Atlas Information Decoding Unit 303 Base Mesh Decoding Unit 3031 Mesh Decoding Unit 3032 Motion information decoding unit 3033 Mesh Motion Compensation Unit 3034 Reference Mesh Memory 3035 Switch 3036 Switch 305 Mesh Displacement Decoding Unit 3051 Image Decoding Unit 3052 Displacement Unmapping Unit 3053 Inverse quantization section 3054 Reverse conversion unit 3055 Coordinate system conversion section 307 Mesh reconstruction unit 306 Attribute Decoder 3071 Mesh division section 3072 Mesh transformation part 308 Color Space Conversion Unit 41 3D data display device

Claims

1. 1. A 3D data decoding device for decoding encoded data, comprising: an image decoding unit that decodes a mesh displacement image from a geometry image in which the Unit Type of the encoded data is V3C_GVD; a displacement unmapping unit that generates a mesh displacement from the mesh displacement image, The 3D data decoding device is characterized in that the displacement unmapping unit inversely quantizes a two-dimensional image of a geometry image to convert it into a one-dimensional signal according to the correspondence between coordinate positions using a Z scan, thereby generating the mesh displacement.

2. In the above 3D data decoding device, The 3D data decoding device according to claim 1 , wherein the displacement unmapping unit performs the mesh displacement using a correspondence relationship between coordinate positions, including a case where the same coordinate axis is assigned to the first color difference component and the second color difference component.

3. The 3D data decoding device according to claim 2, characterized in that the mesh displacement is generated based on displacement mapping information that associates the first and second color difference components of the mesh displaced image with the coordinate components of the mesh displacement, and a two-axis usage flag that indicates whether to assign the same coordinate axis to the first color difference component and the second color difference component.

4. The 3D data decoding device according to claim 3, characterized in that the displacement unmapping unit further generates the mesh displacement based on an extension axis selection flag indicating whether the same coordinate axis is a second coordinate axis or a third coordinate axis of the mesh displacement.

5. The 3D data decoding device according to claim 4, characterized in that the displacement unmapping unit generates the mesh displacement based on the displacement mapping information for each mesh division level, the two-axis usage flag, and the extension axis selection flag.

6. 2. The 3D data decoding device according to claim 1, wherein the displacement unmapping unit associates two-dimensional coordinates by referring to a table.

7. A 3D data encoding device for encoding 3D data, a displacement mapping unit for generating a mesh displacement image from the mesh displacement; an image encoding unit that encodes the mesh displaced image, The displacement mapping unit converts a one-dimensional signal into a two-dimensional image according to a color difference component identifier, and generates the mesh displacement image based on displacement mapping information that associates the first and second color difference components of the mesh displacement image with the coordinate components of the mesh displacement, and a two-axis usage flag that indicates whether to assign the same coordinate axis to the first color difference component and the second color difference component.

8. The 3D data encoding device according to claim 7, characterized in that the displacement mapping unit further generates the mesh displacement image based on an extension axis selection flag indicating whether the same coordinate axis is a second coordinate axis or a third coordinate axis of the mesh displacement.

9. The 3D data encoding device according to claim 8, characterized in that the image encoding unit generates the mesh displacement image based on the displacement mapping information for each mesh division level, the two-axis usage flag, and the extension axis selection flag.