Tristan Ursell
November 2012
Active zoom for polyline selection.
[X,Y]=getline_zoom(Im1);
[X,Y]=getline_zoom(Im1,'plot');
Description: Ever wanted to carefully select points from an image but could not get close enough to see where you wanted to select? Then this function is for you -- it allows the user to select points from an image at a user specified zoom level that moves along with the points selected in a centered frame of reference.
Im1 is the input image (matrix) from which points will be selected.
Hold 'shift' or 'control' and then click to end polyline selection.
This script requires the 'ginput' function.
This script will generate its own figure handle.
SEE ALSO: getpts, getline, getrect, zoom
Example:
Im1=imread('rice.png');
[X,Y] = getline_zoom(Im1,'plot');
|