问题描述
我有两个带有相应坐标的三角形.现在,我必须将更多的点从第一个三角形转移到第二个三角形.我试图用emgu解决它,但是我还没有找到解决方法.对我来说,点线性地转移是很重要的.有谁知道我如何使用C#解决这个问题?
I have two triangles with the corresponding coordinates. Now I have to transfer further points from the first triangle to the second triangle. I've tried to solve it with emgu, but I have not found a way.It is important for me that the points are transferred linearly.Does anyone have an idea how I can solve this with C #?
两个三角形之间的变换
推荐答案
考虑对点A,B,C和A',B',C'使用齐次坐标,并形成以下变换规则
Consider using homogeneous coordinates for the points A,B,C and A',B',C' and form the following transformation rule
要找到两个三角形之间的变换矩阵,请执行以下操作
To find the transformation matrix between the two triangles do the following
现在对于任何点(x,y),以下转换都是有效的
Now for any point (x,y) the following transformation is valid
这篇关于将点从一个三角形转换为另一个三角形的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!