| CPC H04N 13/332 (2018.05) [H04N 13/128 (2018.05); H04N 13/207 (2018.05)] | 16 Claims |

|
1. A method of generating stereoscopic display contents, comprising:
obtaining, from a Red, Green, Blue plus Distance (RGB-D) image using a processor, a first Red, Green, and Blue (RGB) image and a depth image;
determining, based on depth values in the depth image, a first disparity map in accordance with the RGB-D image using at least one of a focal length f or an interpupillary distance b, wherein the first disparity map comprises a plurality of disparity values for the first RGB image to be transformed to a pair of stereoscopic images;
determining a left disparity map and a right disparity map by transforming the first disparity map using a disparity distribution ratio k, wherein the left disparity map is determined based on
![]() and the right disparity map is determined based on
![]() wherein z(x,y) represents the depth value of a pixel (x,y) in the RGB-D image, d(x, y) represents the disparity value in the first disparity map, dL(x, y) represents the disparity value in the left disparity map, dR(x, y) represents the disparity value in the right disparity map, and k is a constant value indicative of a position of an observation point between left and right eye; and
generating, by the processor, the pair of stereoscopic images from the first RGB image, the pair of stereoscopic images comprising a left eye image and a right eye image, wherein the left eye image is generated by shifting a first set of pixels in the first RGB image based on the left disparity map, and the right eye image is generated by shifting a second set of pixels in the first RGB image based on the disparity map.
|