필터 지우기
필터 지우기

Determine tangent lines on contour

조회 수: 3 (최근 30일)
Armindo
Armindo 2015년 10월 6일
댓글: Armindo 2015년 10월 7일
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
Armindo
Armindo 2015년 10월 7일
편집: Armindo 2015년 10월 7일
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 2015년 10월 7일
solved through the use of convhull()

댓글을 달려면 로그인하십시오.

답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by