1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 07:43:03 +04:00

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
This commit is contained in:
Vladislav Vinogradov
2016-07-06 14:27:08 +03:00
parent 22682f933a
commit 4382302a6b
+1 -1
View File
@@ -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);