Be the first to rate this file! 10 Downloads (last 30 days) File Size: 2.31 KB File ID: #38959
image thumbnail

Active Figure Zoom for Selecting Points

by Tristan Ursell

 

09 Nov 2012

Select points at a user-specified zoom level that moves around the image as you click.

| Watch this File

File Information
Description

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');

Required Products MATLAB
MATLAB release MATLAB 7.14 (R2012a)
Tags for This File  
Everyone's Tags
active, figure, getline, getpts, getrect, ginput(2), line, points(2), precise, select, selection, zoom
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.

Contact us