필터 지우기
필터 지우기

How can I find the longest chord of a region?

조회 수: 2 (최근 30일)
Md
Md 2015년 1월 7일
댓글: Image Analyst 2015년 1월 7일
Hi, I am trying to find out the longest chord of a region. Also, I need to find out the chord that is perpendicular to the longest chord of that region. Thanks in advance.

채택된 답변

Image Analyst
Image Analyst 2015년 1월 7일
See my attached demo. In the image below, the red line is the line between the two points in the binary (white) blob that are farthest apart. The magenta line is the line cutting across the blob perpendicular to the longest line. Feel free to adapt it.
  댓글 수: 2
Md
Md 2015년 1월 7일
Can you please explain, how did you find the vertical of the longest chord. It's a bit unclear to me. Thanks a lot.
Image Analyst
Image Analyst 2015년 1월 7일
I didn't find any vertical. I just went around to every point finding the distances to every other point using the Pythagorean formula. If you want the vertical extent, you can just subtract the y values of the end points.

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

추가 답변 (0개)

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by