improfile (matlab) equivalent in OpenCV Python

asked 2014-06-27 12:14:37 -0500

angel.spatial gravatar image

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. In matlab you could do this similarly by running improfile() on a binary image where you set the binary image to have "10/255" pixel values by im2bw(image,10/255).

Is this even possible?

edit retag flag offensive close merge delete