I need to get the pixel values along a line, I'm using Python3 and Pillow. In opencv there is such a thing as a LineIterator which will return all of the appropriate pixels between two points, but I haven't found anything like that in Pillow's docs.
I'm using Pillow because I had originally saw this post which said that python3 didn't have opencv support, I know that it's from 2012 but that seems to be confirmed by this post which I believe is from this year, given that there is no year on the posts. But when I run pip3.2 search opencv I can see a pyopencv but am unable to install it, it says that it could not find an appropriate version (probably a python2.x to python3.x issue).
My preferred solutions are ordered as follows:
- A way to properly install opencv for python3 (preferably opencv 2.4.8)
- A way to get the pixels of a line using just Pillow
- Simple solutions that don't involve extra libraries (numpy/scipy)
- Everything else