I tried to find contour with cv2 python library in a skeletonized image created with scikit-image and i got this error:
contours, hierarchy = cv2.findContours(skel,cv2.RETR_TREE,cv2.CHAIN_APPROX_SIMPLE)
TypeError: <unknown> data type = 0 is not supported
My question is: What i have to do to convert to cv2 and viceversa?
I know that opencv use numpy.uint8 type to represent binary images instead scikit-image numpy.float64
I used also mahotas (numpy.bool) and pymorph libraries. How can i convert from scikit-image to these libraries and viceversa?