Return profiles for the selected 2 points
[xc,yc,pixval] = improfile(S)
Image matrix in Scilab
x-coordinates for the selected points
y-coordinates for the selected points
Correspond pixels' values along the selected points
This function provides interactive way to select 2 points on an image and returned with the line profile. Use left mouse click to select 2 points and the image profile would be computed and ploted on a new graph.
S = imread(fullpath(getIPCVpath() + "/images/balloons.png")); improfile(S); | ![]() | ![]() |