Determine tangent lines on contour

2 vues (au cours des 30 derniers jours)
Armindo
Armindo le 6 Oct 2015
Commenté : Armindo le 7 Oct 2015
Hi,
I have the following plot (a surf plot with a contour3 plot): http://postimg.org/image/snb7nqilj/
Basically I need to determine the tangent lines at black. First I think to detect the lower and higher value of X to determine the above points of the image. However if the image is more rotated to the right the higher value of X could be in the toe region (this cant be seen in this image but is possible to occur). There is any function that could help me determine this points to draw these tangent lines?
  2 commentaires
Armindo
Armindo le 7 Oct 2015
Modifié(e) : Armindo le 7 Oct 2015
Any help would be apreciated. As You can see in the image bellow I can get the tangent lines at red by determine the most right and left X positions for the lower and higher regions of the image. In this processed I used the contourc to retrieve the contour line. The problem is that due the rotation of the image sometimes the tangent pass inside the image. The red line at right should be like the yellow tangent. Any details and help about how to acomplish this would be apreciated.
Armindo
Armindo le 7 Oct 2015
solved through the use of convhull()

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Contour Plots dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by