How to calculate the maximum distance between two boundries
조회 수: 3 (최근 30일)
이전 댓글 표시
Dear all,
How can I find the distance between two boundaries. The line in red 'A' can you please let me know the algorithm for that as I am new to Matlab
댓글 수: 0
답변 (1개)
Image Analyst
2015년 1월 30일
What distance(s)? All of them, or just A? If all, distances from every circle point to every curve point? Or just those along radial direction? Have you tried improfile() (in the Image Processing Toolbox) and find()?
댓글 수: 2
Image Analyst
2015년 1월 30일
What is there? Some equations? A binary image? A list of x,y coordinates? Why aren't use just simply using the Pythagorean theorem to find the max distance of the curve to the circle center and then subtract the radius??? That's what I'd do. It's just one call to sqrt() and one call to max(). Do you need the formula (2 lines of code) to do that?
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Segmentation and Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!