| CPC H04N 13/128 (2018.05) [G06F 3/14 (2013.01); G06T 7/13 (2017.01); G06T 7/50 (2017.01); G06T 2207/10028 (2013.01)] | 10 Claims |

|
10. A stereoscopic image generating method, comprising:
obtaining a first image, processing the first image to obtain depth data of each pixel in the first image, and generating a first depth-information map according to the depth data, wherein the first depth-information map comprises depth information corresponding to each pixel;
using a plurality of edges of the first depth-information map as a reference and performing uniform processing on the plurality of edge pixels which are within a predetermined width from a plurality of edges of the first depth-information map to establish a second depth-information map, and depth information corresponding to the processed edge pixels of the second depth-information map are the same as each other;
setting a pixel offset corresponding to each pixel in the first image based on the depth information corresponding to each pixel of the second depth-information map;
performing pixel offset processing on the first image to generate a second image; and outputting the first image and second image to a display unit to display a stereoscopic image.
|