M-File Help: iprofile | View code for iprofile |
Extract pixels along a line
v = iprofile(im, p1, p2) is a vector of pixel values extracted from the image im (HxWxP) between the points p1 (2x1) and p2 (2x1). v (NxP) has one row for each point along the line and the row is the pixel value which will be a vector for a multi-plane image.
[p,uv] = iprofile(im, p1, p2) as above but also returns the coordinates of the pixels for each point along the line. Each row of uv is the pixel coordinate (u,v) for the corresponding row of p.
© 1990-2012 Peter Corke.