摘要 |
Embodiments of the present invention provide methods and apparatuses for coding and decoding a depth map. The coding method includes: obtaining prediction data corresponding to a current image block of the depth map, obtaining a predicted pixel value from the prediction data according to a preset step, and calculating a first average value of the prediction data according to the predicted pixel value, where the preset step is a positive integer that is not 1; obtaining a residual of the current image block according to the first average value of the prediction data and a pixel value of a pixel of the current image block; and coding the residual of the current image block. In this way, coding and decoding efficiency can be improved. |