MATLAB: How to trace the outline of an image with the mouse and return the coordiantes of the resulting shape

drawMATLABmouseoutlinetrack;

I would like to be able to trace the outline of features in a image with the mouse and return the X Y coordinates of the resulting shape.

Best Answer

There is no single built in MATLAB function that will track the movement of the mouse on an open figure, draw the resulting curve and return its X Y coordinates. There are user submitted functions that will do this in MATLAB Central such as the MOUSETRACK function in the link below:
Note that MathWorks does not guarantee or warrant the use or content of these submissions. Any questions, issues, or complaints should be directed to the contributing author.