发明名称 |
METHOD AND APPARATUS FOR PROCESSING IMAGE |
摘要 |
The present disclosure relates to the field of Internet technologies and discloses a method and an apparatus for processing an image, which can solve the problem of large amount of calculation in an image deforming process. The method of the present disclosure includes: acquiring a pair of operation control points including an operation start point and an operation end point; calculating a vector from the operation start point to the operation end point; determining an image deforming area by using a middle point of a vector length of the vector as a center, where the image deforming area consists of a contracted sub-area and a stretched sub-area; determining a pixel step value of each pixel in the image deforming area, where a pixel step value of a pixel in the contracted sub-area is greater than a preset step value threshold, and a pixel step value of a pixel in the stretched sub-area is less than the step value threshold; generating an offset parameter relative to the image according to a vector direction of the vector and the pixel step value of the pixel; and performing interpolation calculation on the offset parameter, to obtain a stretched image. The present disclosure is mainly applied in a portrait deforming process. |
申请公布号 |
WO2015196989(A1) |
申请公布日期 |
2015.12.30 |
申请号 |
WO2015CN82176 |
申请日期 |
2015.06.24 |
申请人 |
TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED |
发明人 |
GUO, ANTAI;REN, BO;GAO, YU;YANG, YANG;LIU, YINSONG |
分类号 |
G06T3/00 |
主分类号 |
G06T3/00 |
代理机构 |
|
代理人 |
|
主权项 |
|
地址 |
|