Celebrandil / CudaSift

A CUDA implementation of SIFT for NVidia GPUs (1.2 ms on a GTX 1060)
MIT License
864 stars 286 forks source link

no feature found #60

Open bigdimboom opened 5 years ago

bigdimboom commented 5 years ago

image

System: win64-vc140-debug nvcc 9.1

bigdimboom commented 5 years ago

image

gmcgrath-lakehead commented 5 years ago

I actually encountered this problem a few days ago. Are you converting your image to greyscale and then converting it to CV_32FC1? Example from my code where Left is a class containing both Mat grey and Mat Frame:

cvtColor(Left.Frame, Left.gray, COLOR_BGR2GRAY); Left.gray.convertTo(Left.Frame, CV_32FC1);

For convertTo you need to include #include <opencv2/core/mat.hpp> and for cvtColor you need to include #include <opencv2/cudaimgproc.hpp>.