Browse Source

Added Unit test for CudaORBDetector.DetectRaw function.

pull/299/head
Canming Huang 6 years ago
parent
commit
7eee041068
  1. 7
      Emgu.CV.Test/AutoTestCuda.cs

7
Emgu.CV.Test/AutoTestCuda.cs

@ -590,16 +590,19 @@ namespace Emgu.CV.Test
using (GpuMat descriptorMat = new GpuMat())
{
CudaInvoke.CvtColor(cudaImage, grayCudaImage, ColorConversion.Bgr2Gray);
//Async version
detector.DetectAsync(grayCudaImage, keyPointMat);
detector.Convert(keyPointMat, kpts);
//detector.ComputeRaw(grayCudaImage, null, keyPointMat, descriptorMat);
//detector.DownloadKeypoints(keyPointMat, kpts);
foreach (MKeyPoint kpt in kpts.ToArray())
{
img.Draw(new CircleF(kpt.Point, 3.0f), new Bgr(0, 255, 0), 1);
}
//sync version
detector.DetectRaw(grayCudaImage, kpts);
//ImageViewer.Show(img);
}
}

Loading…
Cancel
Save