<< watershed SIP - Scilab Image Processing Toolbox xor >>

SIP - Scilab Image Processing Toolbox >> SIP - Scilab Image Processing Toolbox > xgetpixel

xgetpixel

Gets the clicked-on pixel coordinates from an image

Calling Sequence

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.

Examples

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

[im,map] = imread('example.bmp');
clf
imshow(im,map);
p = xgetpixel(im)

chdir(initial_dir);

Authors

Availability

The latest version of SIP can be found at

http://siptoolbox.sf.net

See Also


<< watershed SIP - Scilab Image Processing Toolbox xor >>