how get centroid contour distance at certain degrees?
조회 수: 1 (최근 30일)
이전 댓글 표시
I have an image and I already get the boundary and the weighted centroid of region of interest. I want to get the coordinate point of boundary at certain degrees. It starts from coordinate point at 0 degree from centroid point(blue colour in image)a,d its counterclockwise. Can anyone help me about this? Thx for the help
댓글 수: 0
답변 (1개)
Image Analyst
2014년 3월 26일
Calculate the angle of every point using atan2d() then use both returned values from min() to find which one is closest to the angle you're looking for. Let me know if you can't figure it out from those instructions. It's like 2 lines if you vectorize it.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Contour Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!