How to get SIFT features as floating point?
When I run sift.compute
(or sift.detectAndCompute
), in python3 (via anaconda), the descriptors get truncated to integer arrays instead of floating point.
I am wondering how do I get the descriptors in python as the original floating point numbers?
" the descriptors come as np.uint8 arrays." -- not so, here. please show, how you arrrive at that.
I run
sift = cv2.xfeatures2d.SIFT_create()
and then callkp, desc = sift.detectAndCompute()
and I get the descriptors. If it helps, I am using OpenCV 3.1.0.@berak I see what you mean. I have updated my question. Sorry for the confusion.