摘要 |
<p>Embodiments of the present invention relate to a method and a device for extracting and optimizing a depth map of an image. The method comprises: obtaining a current source image and scenario relevance of each pixel in the current source image; performing continuous downsampling on the current source image, and obtaining scenario relevance of each pixel in each current downsampled source image; performing block-matching motion vector calculation between each pixel in the current downsampled source image and each corresponding pixel in a previous downsampled source image to obtain a motion vector value of each pixel in the current downsampled source image; accumulating the motion vector value of each pixel in the current downsampled source image, and extracting an initial depth value of each pixel from a cumulative sum of the motion vectors, the initial depth value forming an initial depth map; and performing continuous ultra-smooth filtering processing and upsampling processing on each pixel in the initial depth map by using the scenario relevance of each pixel in the source image and the scenario relevance of each pixel in each downsampled source image, to obtain a depth map of the source image.</p> |