image processing - Getting pixel coordinates efficiently in Matlab -


i create function in matlab that, given image, allow 1 select pixel clicking on in image , return coordinates of pixel. ideally, 1 able click on several pixels in image in succession, , function store respective coordinates in matrix. there way in matlab?

ginput

graphical input mouse or cursor syntax

    [x,y] = ginput(n)      [x,y] = ginput      [x,y,button] = ginput(...) 

description

[x,y] = ginput(n) enables identify n points current axes , returns x- , y-coordinates in x , y column vectors. press return key terminate input before entering n points.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -