Perspective Transform Triangle Point

自闭症网瘾萝莉.ら 提交于 2021-01-27 18:27:01

问题


I am trying to find the equivalent point from one triangle to another.

Ideally I want to be able to give the 3 points of triangle A and the 3 points of triangle B which will then calculate the transform matrix which I can apply to the point afterwards to find the equivalent point.

I have found a few JavaScript libraries/methods for this, but they all use quadrilaterals rather than triangles and I am not sure what to do to apply to a triangle instead.


回答1:


Three point pairs can define affine transform, but can not define perspective one (four pairs needed).

How to find affine transform matrix using inverse matrix: 2 3



来源:https://stackoverflow.com/questions/43509195/perspective-transform-triangle-point

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!