Hi,
stitcher = Stitcher::createDefault(true); Mat pano; vector<mat> imgs; imgs.push_back(img1); imgs.push_back(img2);
stitcher.stitch(imgs, pano);
Last line throws error:
OpenCV Error: Assertion failed (func != 0) in knnMatchSingle, file /home/hyper/Downloads/opencv-3.0.0-beta/modules/cudafeatures2d/src/brute_force_matcher.cpp, line 503 terminate called after throwing an instance of 'cv::Exception' what(): /home/hyper/Downloads/opencv-3.0.0-beta/modules/cudafeatures2d/src/brute_force_matcher.cpp:503: error: (-215) func != 0 in function knnMatchSingle
Stitching without GPU - OK.
Any ideas?
Thank you.