Return selected pixel coordinates and values
[xc,yc,pixval] = impixel(S);
Image matrix in Scilab
x-coordinates for the selected points
y-coordinates for the selected points
Correspond pixels' values
This function provides interactive way to select the points on an image and returned with the locations and pixels values. Multiple points could be selected with left mouse click and the last point should be selected with the right mouse click.
S = imread(fullpath(getIPCVpath() + "/images/balloons.png")); impixel(S); | ![]() | ![]() |