User`s guide
R2010a
11-4
C = improfile(I,xi,yi,N)
has changed. In the syntax above, N specifies the number of points for which to compute
intensity values and xi and yi specify the spatial coordinates of the endpoints of the line
segments.
For a given line defined by xi and yi, improfile now returns a profile sampled at both
endpoints and all sampling points in between at roughly unit interval spacing. If the
distance between xi and yi is N pixels, the profile is evaluated at N+1 points.
Compatibility Considerations
In previous releases, if you supplied the xi and yi end points as (1,1) and (10,1), the
profile would be evaluated at nine points, the nine unit-length intervals between 1 and
10 in the continuous x-y plane. These nine points would be the two end points, plus seven
points in between.