An automatic version of / alternative to, "ginput" ?
Show older comments
Hello,
I'm wondering is anyone aware of a way to automatically pass coordinates to "ginput", or declare the coordinates in my code and totally bypass the need for "ginput"?
I want to define the coordinates (which will always be the same)so I can use them as feature points to be compared against a database of images/arrays at the same points.
I hope this is clear, and apologies if it's been asked and answered before, but I couldn't find anything.
Garry
Answers (1)
Daniel Shub
on 26 Nov 2011
Presumably the code has something like:
[x,y,button] = ginput
you can just replace this with
x = 1;
y = 2;
button = 1;
where x, y, and button are whatever you want them to be.
Categories
Find more on Data Exploration in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!