OpenCV stitching_detailed.cpp断言失败错误

时间:2017-03-26 17:56:07

标签: c++ opencv

我在OpenCV Answers网站上问了这个问题,但没有收到回复,所以我想在这里试试。

我刚刚构建了opencv 3.2.0和opencv_contrib 3.2.0,所有这些都成功了,现在我正在使用stitching_detailed.cpp示例文件尝试一些东西(使用{{1 }}}},但我收到以下错误:

--try_cuda=yes

所有建议都非常感谢,因为我是C ++和OpenCV的新手。

由于

更新

禁用OpenCL后,出现以下错误:

Finding features...
Features in image #1: 217
Features in image #2: 224
Features in image #3: 281
Features in image #4: 235
Features in image #5: 172
Finding features, time: 3.58099 sec
Pairwise matchingPairwise matching, time: 2.84527 sec
Initial camera intrinsics #2:
K:
[1012.630229401095, 0, 447;
 0, 1012.630229401095, 335.5;
 0, 0, 1]
R:
[0.96701878, 0.020416204, 0.012416624;
 0.014757388, 0.97670352, 0.26495183;
 0.046871029, 0.11209502, 1]
Initial camera intrinsics #3:
K:
[1012.630229401095, 0, 447;
 0, 1012.630229401095, 335.5;
 0, 0, 1]
R:
[1, 0, 0;
 0, 1, 0;
 0, 0, 1]
Initial camera intrinsics #4:
K:
[1012.630229401095, 0, 447;
 0, 1012.630229401095, 335.5;
 0, 0, 1]
R:
[1.0235587, -0.024432728, -0.014125917;
 0.004413465, 1.0243349, -0.26835808;
 -0.010042391, -0.15711401, 1.0413489]
Initial camera intrinsics #5:
K:
[1012.630229401095, 0, 447;
 0, 1012.630229401095, 335.5;
 0, 0, 1]
R:
[1.045368, -0.054304995, -0.018363208;
 0.013821163, 1.0776026, -0.54379475;
 -0.044207353, -0.2462063, 1.1049906]
Camera #2:
K:
[8478.069673382501, 0, 447;
 0, 8478.069673382501, 335.5;
 0, 0, 1]
R:
[0.9999181, 0.01271866, 0.001412834;
 -0.012757109, 0.99941444, 0.031748302;
 -0.0010082112, -0.031763725, 0.99949491]
Camera #3:
K:
[8439.012955389799, 0, 447;
 0, 8439.012955389799, 335.5;
 0, 0, 1]
R:
[1, 8.6602086e-09, 4.6566129e-10;
 -6.2404979e-09, 1, 0;
 0, 0, 1]
Camera #4:
K:
[8518.394954182764, 0, 447;
 0, 8518.394954182764, 335.5;
 0, 0, 1]
R:
[0.99987215, -0.015882459, -0.0018503442;
 0.015817553, 0.99939477, -0.030980414;
 0.0023412704, 0.030947186, 0.99951828]
Camera #5:
K:
[8491.398203106019, 0, 447;
 0, 8491.398203106019, 335.5;
 0, 0, 1]
R:
[0.99940926, -0.034253821, -0.0027813595;
 0.034020044, 0.99755055, -0.061118517;
 0.0048680915, 0.060987789, 0.99812663]
Warping images (auxiliary)...
Warping images, time: 0.0660702 sec
Compositing...
Compositing image #2
Multi-band blender, number of bands: 10
OpenCV Error: Assertion failed (clEnqueueReadBuffer(q, (cl_mem)u->handle, CL_TRUE, 0, u->size, alignedPtr.getAlignedPtr(), 0, 0, 0) == CL_SUCCESS) in cv::ocl::OpenCLAllocator::map, file G:\Development\opencv\sources\opencv\modules\core\src\ocl.cpp, line 4773

0 个答案:

没有答案