Borrar filtros
Borrar filtros

Distance to perimeter from a point inside of a graphed shape

1 visualización (últimos 30 días)
ethan campbell
ethan campbell el 31 de Jul. de 2018
Comentada: ethan campbell el 1 de Ag. de 2018
Hi all,
In need of help creating a code to find distances (particularly the smallest distance) from a point inside of a graphed shape to the outside or perimeter of said shape. That said, since it's not an image, bwdist or a function similar to that shouldn't be used for this.
I'm new to matlab and its interfaces, so if there's any way you could leave exactly what I should type in the answers below, or provide a tutorial on how the command works, that would be appreciated.
Thanks for your time! Ethan
Edit: the issue with bwdist for me isn't that I have to convert one graph to an image using an outside program, it's that there are thousands of these same graphs which I can't automate the process of working on if they're being put into image form. This post is specifically to see if anyone knows any other workarounds for bwdist. .
  2 comentarios
Rik
Rik el 31 de Jul. de 2018
You could convert your graph to an image, so then you could you functions like bwdist. You can use in polygon to convert to binary.
ethan campbell
ethan campbell el 1 de Ag. de 2018
I should've made myself a tad clearer in my question: I know how to use bwdist and how to convert the graph to a binary image... I'm checking to see if there's another way outside of converting the graph into an image where I can get the same results. Sorry for the confusion!

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Construction en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by