Patent ID: 9747694
Date: 2017-08-29
CPC Classifications: G06T,H04N

Claim:
1. A method for optimizing depth information, for an electronic device, wherein a left image and a right image are generated through shooting of a three dimensional imaging system, and the method comprises: obtaining a primary depth map associated with one of the left image and the right image and corresponding to a plurality of first pixels, wherein the primary depth map records the primary depth values respectively corresponding to the first pixels; dividing one of the left image and the right image into a plurality of segmentations according to pixel information of the first pixels to obtain a plurality of segmentation maps, comprising: determining whether the primary depth values corresponding to the first pixels match a reliability condition by using the segmentation maps, and removing a plurality of invalid depth values mismatching to the reliability condition among the primary depth values from the primary depth map so as to generate a necessary repair depth map having a plurality of holes; partitioning the necessary repair depth map into a plurality of depth planes according to the primary depth values and a camera parameter; and respectively generating a plurality of optimized depth values for the holes in each of the depth planes by using the segmentation maps, and filling the optimized depth values into the depth planes to obtain an optimized depth map combining each of the depth planes.