From 4382302a6b55e976b20378af40ce34ee4f1953dc Mon Sep 17 00:00:00 2001 From: Vladislav Vinogradov Date: Wed, 6 Jul 2016 14:27:08 +0300 Subject: [PATCH] fix matrix type for keypoints buffer in CUDA FAST use CV_32FC1 instead of CV_16SC2 since detectAsync uses CV_32FC1 to reallocate the matrix --- modules/cudafeatures2d/src/fast.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/cudafeatures2d/src/fast.cpp b/modules/cudafeatures2d/src/fast.cpp index 2095ef7..ce44b3a 100644 --- a/modules/cudafeatures2d/src/fast.cpp +++ b/modules/cudafeatures2d/src/fast.cpp @@ -104,7 +104,7 @@ namespace } BufferPool pool(Stream::Null()); - GpuMat d_keypoints = pool.getBuffer(ROWS_COUNT, max_npoints_, CV_16SC2); + GpuMat d_keypoints = pool.getBuffer(ROWS_COUNT, max_npoints_, CV_32FC1); detectAsync(_image, d_keypoints, _mask, Stream::Null()); convert(d_keypoints, keypoints); -- 2.7.4