How to calculate from three points the "normal" at the second point
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hello !
To program an active contour, I would need from the coordinates of 3 points to determine the normal of the second point.
As in the picture, I would have to determine the normal for point "a".
Any idea?
Thank you
3 comentarios
David Goodmanson
el 2 de Abr. de 2020
Hi Dany,
how do propose to define the normal at point A? Is it halfway in between the two dotted normals that you show, or is it something else?
Respuestas (1)
Matt J
el 2 de Abr. de 2020
Editada: Matt J
el 2 de Abr. de 2020
Once you have answered David's question, the attached function should be useful. It will find the normals to all the facets of a 2D polygon. Example,
Vertices=[0 0; 1 0; 0 1]; %vertices of a triangle
normals=vert2con_special(Vertices)
gives as output,
normals =
0 -1
1 1
-1 0
6 comentarios
Matt J
el 3 de Abr. de 2020
You could use John's minboundcircle function in this FEX contribution,
to find the green circle shown in your illustration. The normal will then simply be the ray A-O from the center of the circle to the point A.
Ver también
Categorías
Más información sobre Directed Graphs 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!