Method and apparatus for adaptive quantization for UV attribute in symmetry mesh
A method performed by an encoder comprises extracting from an input mesh an extracted half symmetry mesh, the input mesh comprising a first side and a second side, the second side being opposite to the first side, the extracted mesh comprising only one of the first side and the second side; quantizing the extracted half symmetry mesh at a first bitdepth to generate a first quantized mesh; reparameterizing the first quantized mesh to generate a reparameterized mesh that includes a reduction in one or more empty spaces in the first quantized mesh; quantizing the reparameterized mesh at a second bitdepth different from the first bitdepth to generate a second quantized mesh; and encoding the second quantized mesh into a bitstream.
1 . A method performed by at least one processor of an encoder, the method comprising:
extracting from an input mesh an extracted half symmetry mesh, the input mesh comprising a first side and a second side, the second side being opposite to the first side, the extracted mesh comprising only one of the first side and the second side;
quantizing the extracted half symmetry mesh at a first bitdepth to generate a first quantized mesh;
reparameterizing the first quantized mesh to generate a reparameterized mesh that includes a reduction in one or more empty spaces in the first quantized mesh, the reparameterizing further comprising:
linear reparameterization performing a linear transform on the first quantized mesh to reduce empty spaces in the first quantized mesh, and
non-linear reparameterization performing a non-linear process on an output of the linear reparameterization;
quantizing the reparameterized mesh at a second bitdepth different from the first bitdepth to generate a second quantized mesh; and
encoding the second quantized mesh into a bitstream.
2 . The method according to claim 1 , wherein the second bitdepth is less than the first bitdepth.
3 . The method according to claim 1 , wherein the extracted half symmetry mesh is bounded by a first 2D bounding box that circumscribes the extracted mesh, the first 2D bounding box defined in a 2D space by (i) a first maximum coordinate and a first minimum coordinate in a first direction and (ii) a second maximum coordinate and a second minimum coordinate in a second direction orthogonal to the first direction.
4 . The method according to claim 3 , wherein the quantizing the extracted half symmetry mesh is based on a first quantization step and the first bitdepth, and
wherein the first quantization step is determined based on (i) a maximum of (a) a difference between the first maximum coordinate and the first minimum coordinate and (b) a difference between the second maximum coordinate and the second minimum coordinate and (ii) the first bitdepth.
5 . The method according to claim 3 , wherein the extracted mesh is divided into M disconnected segments,
wherein the reparameterizing comprises determining a transform for each disconnected segment that minimizes a total area of the extracted half symmetry mesh such that the reparameterized mesh defined by a second 2D bounding box that has an area smaller than an area of the first 2D bounding box.
6 . The method according to claim 5 , wherein the second 2D bounding box is defined in the 2D space by (i) a third maximum coordinate and a third minimum coordinate in the first direction and (ii) a fourth maximum coordinate and a fourth minimum coordinate in the second direction.
7 . The method according to claim 6 , wherein the quantizing the reparameterized mesh is based on a second quantization step and the second bitdepth, and
wherein the second quantization step is determined based on (i) a maximum of (a) a difference between the third maximum coordinate and the third minimum coordinate and (b) a difference between the fourth maximum coordinate and the fourth minimum coordinate and (ii) the second bitdepth.
8 . The method according to claim 5 , further comprising:
determining for each determined transform for each segment, a corresponding inverse transform, and
wherein the bitstream includes each determined inverse transform.
9 . A method performed by at least one processor of an encoder, the method comprising:
decoding a received bitstream to extract from an encoded mesh an extracted half symmetry mesh, the encoded mesh comprising a first side and a second side, the second side being opposite to the first side, the extracted half symmetry mesh comprising one of the first side and the second side,
dequantizing the extracted half symmetry mesh at a first bitdepth to generate a first quantized dequantized mesh,
reparameterizing the first dequantized mesh to generate a reparameterized mesh that includes a reduction in one or more empty spaces in the first quantized mesh, the reparameterizing further comprising:
linear reparameterization performing a linear transform on the first dequantized mesh to reduce empty spaces in the first quantized mesh, and
non-linear reparameterization performing a non-linear process on an output of the linear reparameterization,
dequantizing the reparameterized mesh at a second bitdepth different from the first bitdepth to generate a second dequantized mesh, and
reconstructing the encoded mesh based on the second dequantized mesh.
10 . The method according to claim 9 , wherein the second bitdepth is less than the first bitdepth.
11 . The method according to claim 9 , wherein the extracted half symmetry mesh is bounded by a first 2D bounding box that circumscribes the extracted mesh, the first 2D bounding box defined in a 2D space by (i) a first maximum coordinate and a first minimum coordinate in a first direction and (ii) a second maximum coordinate and a second minimum coordinate in a second direction orthogonal to the first direction.
12 . The method according to claim 11 , wherein the dequantizing the extracted half symmetry mesh is based on a first quantization step and the first bitdepth, and
wherein the first quantization step is determined based on (i) a maximum of (a) a difference between the first maximum coordinate and the first minimum coordinate and (b) a difference between the second maximum coordinate and the second minimum coordinate and (ii) the first bitdepth.
13 . The method according to claim 11 , wherein the extracted mesh is divided into M disconnected segments,
wherein the reparameterization further comprises determining a transform for each disconnected segment that minimizes a total area of the extracted half symmetry mesh such that the reparameterized mesh defined by a second 2D bounding box that has an area smaller than an area of the first 2D bounding box.
14 . The method according to claim 13 , wherein the second 2D bounding box is defined in the 2D space by (i) a third maximum coordinate and a third minimum coordinate in the first direction and (ii) a fourth maximum coordinate and a fourth minimum coordinate in the second direction.
15 . The method according to 14 , wherein the dequantizing the reparameterized mesh based on a second quantization step and the second bitdepth, and
wherein the second quantization step is determined based on (i) a maximum of (a) a difference between the third maximum coordinate and the third minimum coordinate and (b) a difference between the fourth maximum coordinate and the fourth minimum coordinate and (ii) the second bitdepth.
16 . The method according to claim 13 ,
wherein the bitstream includes at least one inverse transform.
17 . A non-transitory computer readable medium storing a bitstream generated by a method comprising:
extracting from an input mesh an extracted half symmetry mesh, the input mesh comprising a first side and a second side, the second side being opposite to the first side, the extracted mesh comprising one of the first side and the second side;
quantizing the extracted half symmetry mesh at a first bitdepth to generate a first quantized mesh;
reparameterizing the first quantized mesh to generate a reparameterized mesh that includes a reduction in one or more empty spaces in the first quantized mesh, the reparameterizing further comprising:
linear reparameterization performing a linear transform on the first quantized mesh to reduce empty spaces in the first quantized mesh, and
non-linear reparameterization performing a non-linear process on an output of the linear reparameterization;
quantizing the reparameterized mesh at a second bitdepth different from the first bitdepth to generate a second quantized mesh; and
encoding the second quantized mesh into the bitstream.
18 . The non-transitory computer readable medium according to claim 17 , wherein the second bitdepth is less than the first bitdepth.