Browse Source

Fixed a bug in CudaCannyEdgeDetector.

pull/211/head
Canming Huang 7 years ago
parent
commit
044af4000d
  1. 2
      Emgu.CV.Cuda/Imgproc/CudaCannyEdgeDetector.cs
  2. 4
      Emgu.CV.Test/AutoTestCuda.cs

2
Emgu.CV.Cuda/Imgproc/CudaCannyEdgeDetector.cs

@ -44,7 +44,7 @@ namespace Emgu.CV.Cuda
{
using (InputArray iaSrc = src.GetInputArray())
using (OutputArray oaEdges = edges.GetOutputArray())
CudaInvoke.cudaCannyEdgeDetectorDetect(_sharedPtr, iaSrc, oaEdges, stream);
CudaInvoke.cudaCannyEdgeDetectorDetect(_ptr, iaSrc, oaEdges, stream);
}
/// <summary>

4
Emgu.CV.Test/AutoTestCuda.cs

@ -353,8 +353,8 @@ namespace Emgu.CV.Test
if (CudaInvoke.HasCuda)
{
using (Image<Bgr, Byte> image = new Image<Bgr, byte>("pedestrian.png"))
using (CudaImage<Bgr, Byte> CudaImage = new CudaImage<Bgr, byte>(image))
using (CudaImage<Gray, Byte> gray = CudaImage.Convert<Gray, Byte>())
using (CudaImage<Bgr, Byte> cudaImage = new CudaImage<Bgr, byte>(image))
using (CudaImage<Gray, Byte> gray = cudaImage.Convert<Gray, Byte>())
using (CudaImage<Gray, Byte> canny = new CudaImage<Gray, byte>(gray.Size))
using (CudaCannyEdgeDetector detector = new CudaCannyEdgeDetector(20, 100, 3, false))
{

Loading…
Cancel
Save