예제 #1
0
 /// <summary>
 /// Create a Gaussian filter.
 /// </summary>
 /// <param name="ksize">The size of the kernel</param>
 /// <param name="sigma1">This parameter may specify Gaussian sigma (standard deviation). If it is zero, it is calculated from the kernel size.</param>
 /// <param name="sigma2">In case of non-square Gaussian kernel the parameter may be used to specify a different (from param3) sigma in the vertical direction. Use 0 for default</param>
 /// <param name="rowBorderType">The row border type.</param>
 /// <param name="columnBorderType">The column border type.</param>
 public CudaGaussianFilter(
     DepthType srcDepth, int srcChannels,
     DepthType dstDepth, int dstChannels,
     Size ksize,
     double sigma1, double sigma2    = 0,
     CvEnum.BorderType rowBorderType = BorderType.Default, CvEnum.BorderType columnBorderType = BorderType.NegativeOne)
 {
     _ptr = CudaInvoke.cudaCreateGaussianFilter(
         CvInvoke.MakeType(srcDepth, srcChannels), CvInvoke.MakeType(dstDepth, dstChannels),
         ref ksize, sigma1, sigma2, (int)rowBorderType, (int)columnBorderType);
 }