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

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);