Getting meanshift segments in python (opencv 3.2)

asked 2017-06-19 19:39:17 -0600

I'm running meanshift on a image to extract objects from the image. I use this function included in python interface:

    img = cv2.pyrMeanShiftFiltering(img, 20, 30)

But this method just returns the quantizated image, and I have no access to the label matrix to obtain segments in order to classify them. Is there another way to obtain them?

Thank you.

edit retag flag offensive close merge delete

Comments