MATLAB: Looking for an alternative to ginput(n) to select a region on an image

image processingImage Processing Toolbox

Is there any built in function allowing to select a region on an image (interactively like in ginput) resulting in printing out corresponding coordinates?

Best Answer

I think you're wanting impixelinfo(). Check out the documentation. It lets you mouse around over the image and a status text label updates the (x,y) location (or row,column - I don't remember) and the grayscale or RGB color.
Related Question