发明名称 |
Method for resizing an image |
摘要 |
A method for resizing an image is disclosed. In a preferred embodiment, the method projects the image onto a lateral surface of a three-dimensional cylinder to transform the image into a three-dimensional image. Then, the method applies perspective projection (with a chosen viewpoint) to transform the three-dimensional image back to a two-dimensional image, based on which a final resized image is generated. By carefully choosing the diameter of the three-dimensional cylinder and the coordinate of the viewpoint, a rectangular shaped image may be resized into a square-shaped image. |
申请公布号 |
US9230359(B2) |
申请公布日期 |
2016.01.05 |
申请号 |
US201314096037 |
申请日期 |
2013.12.04 |
申请人 |
|
发明人 |
Shi Jiazheng |
分类号 |
G06T15/00;G06T15/10;G06T15/80;G06K9/46;G06T3/40 |
主分类号 |
G06T15/00 |
代理机构 |
|
代理人 |
Jin Jigang |
主权项 |
1. A method performed by a processor for resizing a digital image comprising:
transforming the digital image into a 3D image by projecting the digital image onto a lateral surface of a 3D cylinder, wherein for each pixel (x, y) of the digital image the corresponding pixel of the 3D image is (R*sin(x/R), y, R*cos(x/R)), wherein R is the radius of the 3D cylinder; applying perspective projection to transform the 3D image into a 2D image, wherein the 2D image has a plurality of original edges; and calculating a plurality of new edges for the 2D image, wherein the plurality of new edges form a rectangular shape which fully covers the 2D image, and wherein the plurality of new edges and plurality of original edges of the 2D image form a plurality of areas. |
地址 |
|