Open bigdimboom opened 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>
.
System: win64-vc140-debug nvcc 9.1