cuda::integral fails at certain matrix sizes (Bug #3678)
Description
Hello,
I noticed a problem with cuda::integral, specificly vertical_pass.
OpenCV Error: Gpu API call (unspecified launch failure) in integral, file /var/tmp/portage/media-libs/opencv-9999/work/opencv-9999/modules/cudev/include/opencv2/cudev/grid/detail/integral.hpp, line 614
terminate called after throwing an instance of 'cv::Exception'
what(): /var/tmp/portage/media-libs/opencv-9999/work/opencv-9999/modules/cudev/include/opencv2/cudev/grid/detail/integral.hpp:614: error: (-217) unspecified launch failure in function integral
The vertical_pass call fails for certain row sizes (eg. 1066).
I prepared a program that reproduces that problem.
The cv::integral call succeeds, the cuda::integral call fails with the mentioned Error message.
#include <opencv2/cudaarithm.hpp> #include <opencv2/imgproc.hpp> using namespace cv; using namespace cv::cuda; using namespace cv::cudev; int main(int argc, char *argv[]) { const Size size (768, 1066); Mat src (size, CV_8UC1), dst; cv::integral(src, dst); GpuMat g_src(src),g_dst; cuda::integral(g_src, g_dst); return 0; }
I tested with Gentoo Linux, and Windows 7.
Associated revisions
fix bug #3678 (cuda::integral failures)
Merge pull request #3678 from mshabunin:explicit-sse-disable
History
Updated by Andrew Senin almost 11 years ago
Hello Max B,
Thanks for sending this issue.
Vlad,
please confirm this is a bug or expected behaviour?
Updated by Vladislav Vinogradov almost 11 years ago
- Status changed from New to Open
- Target version set to 3.0-alpha
- HW Platform changed from x64 to Any
- Operating System changed from Linux to Any
- Pull request set to https://github.com/Itseez/opencv/pull/2749
Updated by Vladislav Vinogradov almost 11 years ago
The fix was merged into master branch.
- Status changed from Open to Done