Ask Your Question
0

opencv 3.0 stitcher error on CUDA [closed]

asked 2015-02-09 07:06:59 -0600

vsw gravatar image

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.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by vsw
close date 2015-02-12 04:26:41.049826

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-02-12 04:26:10 -0600

vsw gravatar image

updated 2015-02-12 04:29:30 -0600

If i use FeaturesMatcher without CUDA, then no error:

Ptr<detail::featuresmatcher> featuresMatcher = makePtr<detail::bestof2nearestmatcher>(false, 0.65f); stitcher.setFeaturesMatcher(featuresMatcher);

But stitch with CUDA not faster than without CUDA in opencv 3.0 beta. Also default blender/seamfinder with CUDA not good.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-02-09 07:06:59 -0600

Seen: 610 times

Last updated: Feb 12 '15