Home > Applications > SpinW > external > grabxy.m

iFit/grabxy

PURPOSE ^

reads coordinates from raster image

SYNOPSIS ^

function pts = grabxy(fName, ax)

DESCRIPTION ^

 reads coordinates from raster image

 pts = GRABXY(fName, ax)

 Input:

 fName         String, path to the image file.
 ax            (x,y) coordinates of the three axis points, with dimensions
               of 2x3. If ax is omitted or empty, GRABXY just shows the
               image.

 Output:

 pts           Matrix, where the first row are the x coordinates the
               second row is the y coordinates.

 How to use the function?

 You need an image where you know the coordinates of three points. These
 coordinates has to be given as the ax input to the grabxy() function.
 After calling the function, it shows the image file and the first three
 mouse clicks on the figure will determine the position of the three
 predefined points (shown as red circles) given in ax. Any other click
 afterwards will grab coordinates (shown as green circles). The coordinates
 of the green circles will be returned. If you don't want to grab more
 points, just right click anywhere on the figure.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Tue 27-Nov-2018 10:56:24 by m2html © 2005. iFit (c) E.Farhi/ILL EUPL 1.1