How to have a selected code in matlab?

1 Ansicht (letzte 30 Tage)
saba sabu
saba sabu am 15 Mai 2017
Kommentiert: Walter Roberson am 22 Mai 2017
Hi dears, my question topic is not clear because it is a little hard to explain what i want. I wrote a code in Matlab to analyze an image to find a point. Code found 10 points for me, but i need a selective point. it means that i want to select true point by click on image with 10 points and after selecting true point, i will do this for all images that i have to analyze. how can i do this? somebody advise me to use GUI, is it possible?How? Thank you friends...

Akzeptierte Antwort

Cam Salzberger
Cam Salzberger am 15 Mai 2017
Hello Saba,
The easiest way would probably to bring up the image with "imshow", and allow for you to select any one point on the image with "ginput(1)". Then the code could take the output of "ginput" and determine which of the ten possible points are closest to the one selected. Once that is found, the code can save that as the "true point", and then move on to the next image.
  4 Kommentare
Walter Roberson
Walter Roberson am 22 Mai 2017
saba sabu comments to Image Analyst:
Thanks Dear "Image Analyst".

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)


Community Treasure Hunt

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

Start Hunting!

Translated by