Patent ID: 9615074
Date: 2017-04-04
CPC Classifications: H04N

Claim:
1. A method for generating a translation image, the method being applied to display of stereoscopic images on a portable electronic apparatus and comprising: a first lens of the portable electronic apparatus capturing a first image toward an object; a second lens of the portable electronic apparatus capturing a second image toward the object, the first image and the second image having different viewing angles, and the second lens being fixed at a position not arranged horizontally with the first lens; an image processing device of the portable electronic apparatus calculating a depth of field of each pixel in the first image relative to the first lens according to a first vertical viewing angle between each pixel in the first image and the first lens, a second vertical viewing angle between a corresponding pixel in the second image and the second lens, and a distance between the first lens and the second lens; the image processing device of the portable electronic apparatus calculating a horizontal viewing angle between each pixel in the first image and the first lens according to the depth of field of each pixel in the first image relative to the first lens, coordinates of each pixel in the first image, and the distance; an accelerometer detecting an oblique angle between an oblique arrangement direction of the first lens and the second lens relative to a horizontal surface when the first lens and the second lens are arranged obliquely; the image processing device calculating the first vertical viewing angle and the second vertical viewing angle according to the oblique angle by coordinate transformation; and the image processing device of the portable electronic apparatus generating a translation image to be an image captured by the second lens, which is fixed relative to the first lens, regarding as being arranged horizontally with the first lens and being spaced apart from the first lens at the distance along a horizontal direction according to the coordinates of each pixel in the first image, the depth of field of each pixel in the first image relative to the first lens, the distance, and the horizontal viewing angle, wherein the depth of field conforms to the following equation: