Filter löschen
Filter löschen

How to calculate the maximum distance between two boundries

3 Ansichten (letzte 30 Tage)
Mahmoud
Mahmoud am 29 Jan. 2015
Kommentiert: Image Analyst am 30 Jan. 2015
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

Antworten (1)

Image Analyst
Image Analyst am 30 Jan. 2015
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 Kommentare
Mahmoud
Mahmoud am 30 Jan. 2015
I would like to get the maximum distance between the circle and the irregular shape. The line should be perpendicular to the circle. As per the image, the maximum distance that is perpendicular to the circle is A. In the real image, of course, the red line is not there. it is only to show what distance I want.
I appreciate your help
Image Analyst
Image Analyst am 30 Jan. 2015
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?

Melden Sie sich an, um zu kommentieren.

Community Treasure Hunt

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

Start Hunting!

Translated by