Need to generate tform matrix from triangle parameters.
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Marshall
el 19 de En. de 2016
Comentada: Marshall
el 29 de En. de 2016
If a user draws a triangle with parameters b, h and theta and wants to change an entire image via a transformation from a new triangle with user inputed parameters b', h', theta'. How can the transformation matrix be found?
0 comentarios
Respuesta aceptada
Matt J
el 20 de En. de 2016
Editada: Matt J
el 20 de En. de 2016
The corners of each triangle are separated by vectors dy and dx. There is some 2x2 matrix A which transforms them from triangle 1 to triangle 2,
dy2=A*dy1
dx2=A*dx1
These are linear equations in the unknown A, which you can solve.
5 comentarios
Más respuestas (1)
Ver también
Categorías
Más información sobre Computational Geometry en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!