简体   繁体   中英

Get latitude/longitude on click from an image

I have an image on which there are five points. These five points have specific latitude/longitude. I want a way that when a user click on any of these points I get corresponding latitude/longitude of that point. Since points are in Image and not in map form I was thinking to use Radio buttons on points and use switch cases to map values of latitude/longitude of each point to its radio button. Is it a right way? Or is there any other way to accompalish this task.

Will this work for you?

figure, imshow(pic,[]); 
title('Select four points'); hold on; 
[x,y] = ginput;

If not I do not understand the question.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM