Affine transform given 4 points
How can I get a 3x3 matrix representing all the transformations (scale,rotation) to apply to an image drawn on a canvas given 4 points x1,y1...x4,y4 representing the ROI(sub-image) that I want to zoom and rotate on?
The first coordinates x1,y1 should be transformed to the top left corner(0,0) of the canvas and x2,y2 to the bottom right corner of the canvas(canvas.width, canvas.height).
Thank you very much for your help!
链接地址: http://www.djcxy.com/p/64018.html上一篇: 透视转换与整个图像
下一篇: 仿射变换给出4分