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?
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
Post a Comment