Hi,
I would like to know why the function profile_line from profile.py in module skimage.measure, always return an additional value (zero value) at the end for horizontal and vertical lines, and two extra values (2 zeros) for diagonal lines.
I mean, if I have an image 10x10, and I want the profile line
> a = profile_line(img, (0, 0), (0, 10))
> array([ 83., 82., 81., 88., 95., 88., 93., 107., 121., 146., 0.])
and with diagonal lines it returns two additional values (2 zeros), like this:
> a = profile_line(img, (0, 0), (10, 10))
> array([ 83., 92., 105., 123., 100., 69., 46., 46., 48., 52., 62., 70., 77., 84., 0., 0.])
Thanks in advance for your comments,
Jaime