From: Vladislav Vinogradov Date: Wed, 6 Jul 2016 11:27:08 +0000 (+0300) Subject: fix matrix type for keypoints buffer in CUDA FAST X-Git-Tag: accepted/tizen/6.0/unified/20201030.111113~1784^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4382302a6b55e976b20378af40ce34ee4f1953dc;p=platform%2Fupstream%2Fopencv.git 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 --- 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);