METHOD AND DEVICE FOR GENERATING PERSPECTIVE IMAGE
First Claim
1. A method for generating a perspective image, comprising:
- obtaining length, height and a vanishing point of a required perspective image and length and height of an original image;
determining, for each of pixel points (x′
, y′
) in the perspective image, coordinates (x, y) of a pixel point in the original image corresponding to the pixel point (x′
, y′
), according to the length, the height and the vanishing point of the perspective image and the length and the height of the original image; and
duplicating the pixel point on the coordinates (x, y) in the original image onto a location in the perspective image corresponding to the coordinates (x′
, y′
).
1 Assignment
0 Petitions
Accused Products
Abstract
A method and device for generating a perspective image are provided, which are related to multimedia technology. The method comprises the following steps: acquiring the length, height and vanishing point of a required perspective image and the length and height of an original image; for each pixel point (x′, y′) in the perspective image, determining the coordinate (x, y) of a pixel point in the original image corresponding to said pixel point; copying the pixel point at the coordinate (x, y) in the original image to the position corresponding to the coordinate (x′, y′) in said perspective image. The invention utilizes a principle that perspective image is smaller than original image, and employs a form of inverse transform, thereby the calculated pixel points are reduced, and compared with forward calculation, the calculation is greatly reduced, which improves the speed of perspective image generating and saves central processing unit (CPU) resources.
-
Citations
10 Claims
-
1. A method for generating a perspective image, comprising:
-
obtaining length, height and a vanishing point of a required perspective image and length and height of an original image; determining, for each of pixel points (x′
, y′
) in the perspective image, coordinates (x, y) of a pixel point in the original image corresponding to the pixel point (x′
, y′
), according to the length, the height and the vanishing point of the perspective image and the length and the height of the original image; andduplicating the pixel point on the coordinates (x, y) in the original image onto a location in the perspective image corresponding to the coordinates (x′
, y′
). - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A device for generating a perspective image, comprising:
-
a unit configured to obtain length, height and a vanishing point of a required perspective image and length and height of an original image; a unit configured to determine, for each of pixel points (x′
, y′
) in the perspective image, coordinates (x, y) of a pixel point in the original image corresponding to the pixel point (x′
, y′
), according to the length, the height and the vanishing point of the perspective image and the length and the height of the original image; anda unit configured to duplicate the pixel point on the coordinates (x, y) in the original image onto a location in the perspective image corresponding to the coordinates (x′
, y′
). - View Dependent Claims (9, 10)
-
Specification