improfile (matlab) equivalent in OpenCV C++
What I'm trying to do is generate two lines on a binary image (one vertical, one horizontal). Then return all of the row/column values along with pixel values underneath that line and place them into a list.
Is this even possible?