XGETPIXEL

NAME
SYNOPSIS
PARAMETERS
DESCRIPTION
EXAMPLE
AUTHORS
AVAILABILITY
SEE ALSO

NAME

xgetpixel - gets the pixel coordinates from an image

SYNOPSIS

p = xgetpixel(arg [,winno])

PARAMETERS

arg
the number of rows in the considered image, or the image itself, depending on what's more convenient to the user.
winno
the number of the scilab graphical window. Defaults to the current active window.
p
the (row,col) coordinate of the pixel that have been clicked on the image.

DESCRIPTION

Function xgetpixel interactively shows the (row,col) position of the mouse cursor over an image ploted into scilab graphic.

EXAMPLE

initial_dir = PWD;
chdir (SIPDIR + 'images');

[im,map] = imread('example.bmp');
xbasc()
imshow(im,map);

p = xgetpixel(im)

chdir(initial_dir);

AUTHORS

Ricardo Fabbri <rfabbri@if.sc.usp.br>

AVAILABILITY

The latest version of the Scilab Image Processing toolbox can be found at
http://siptoolbox.sourceforge.net

SEE ALSO

xgetmouse, xclick, locate