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
pull/6776/head
Vladislav Vinogradov 9 years ago
parent 22682f933a
commit 4382302a6b
  1. 2
      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);

Loading…
Cancel
Save