From 7eee04106836322e121c1c01b86dc7df67a3f99e Mon Sep 17 00:00:00 2001 From: Canming Huang Date: Thu, 19 Dec 2019 14:34:18 -0500 Subject: [PATCH] Added Unit test for CudaORBDetector.DetectRaw function. --- Emgu.CV.Test/AutoTestCuda.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Emgu.CV.Test/AutoTestCuda.cs b/Emgu.CV.Test/AutoTestCuda.cs index dc7ab5e56..059e49f7b 100644 --- a/Emgu.CV.Test/AutoTestCuda.cs +++ b/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); } }