/// <summary>
 /// Canny edge detector using Cuda.
 /// </summary>
 /// <param name="lowThreshold">The first threshold, used for edge linking</param>
 /// <param name="highThreshold">The second threshold, used to find initial segments of strong edges</param>
 /// <param name="apertureSize">Aperture parameter for Sobel operator, use 3 for default</param>
 /// <param name="L2gradient">Use false for default</param>
 public CudaCannyEdgeDetector(double lowThreshold, double highThreshold, int apertureSize = 3, bool L2gradient = false)
 {
     _ptr = CudaInvoke.cudaCreateCannyEdgeDetector(lowThreshold, highThreshold, apertureSize, L2gradient, ref _sharedPtr);
 }