Effacer les filtres
Effacer les filtres

How do I convert a race track image file into X,Y coordinates?

5 vues (au cours des 30 derniers jours)
Nikhil Dhawan
Nikhil Dhawan le 23 Jan 2017
Commenté : Walter Roberson le 27 Sep 2022
After importing a race track image into MATLAB, I need to convert the image into a set of X,Y coordinates for lap simulation.

Réponses (2)

Walter Roberson
Walter Roberson le 23 Jan 2017
Probably: threshold and find(). Or perhaps threshold and one of the two boundary tracing routines.

Christoph Hahn
Christoph Hahn le 14 Fév 2017
Hi Nikhil,
please consider uploading an image to be able to provide better support.
Assuming that you are working with binary images (binary -> black-white; if not, please consider converting) that may be a quite straightforward task. I suggest you have a look into the function list of image processing toolbox. What about 'edge'- and 'bwboundaries'-function.
Again, please consider providing an actual image to allow for better support.
Cheers Christoph
  5 commentaires
Demi Milet
Demi Milet le 27 Sep 2022
Can u maybe explain this code? im trying to use this for an image of a track of my own, but i get an error.
Walter Roberson
Walter Roberson le 27 Sep 2022
What error do you get? You would get an error in the plot in trying to use B{3} if you do not have something equivalent to the small island at the bottom right where the checkered flag is.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Red dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by