摘要 |
A mesh generation unit divides an object area into respective meshes and obtains position information, gradient information, and color information of each vertex, which forms the meshes. An encoding unit obtains the color of each of the meshes using the color information and gradient information of each vertex. The encoding unit obtains the difference between each obtained color, and a color in a region in the object area that corresponds to each of the meshes. The encoding unit determines whether the sum of obtained differences is not smaller than a threshold. When the sum is smaller than the threshold, the encoding unit encodes the position information, gradient information, and color information of each vertex. When the sum is not smaller than the threshold, the encoding unit subdivides each mesh into submeshes, and encodes color information at a position in the object area that corresponds to each vertex of the submesh. |