Smooths an image using the Gaussian filter.
Namespace: OpenCvSharp.CPlusPlus.Gpu
Assembly: OpenCvSharp.CPlusPlus (in OpenCvSharp.CPlusPlus.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static void GaussianBlur( GpuMat src, GpuMat dst, Size ksize, GpuMat buf, double sigma1, double sigma2 = 0, BorderType rowBorderType = BorderType.Reflect101, BorderType columnBorderType = BorderType.Auto, Stream stream = null )
Parameters
- src
- Type: OpenCvSharp.CPlusPlus.GpuGpuMat
Source image. CV_8UC1, CV_8UC4, CV_16SC1, CV_16SC2, CV_16SC3, CV_32SC1, CV_32FC1 source types are supported. - dst
- Type: OpenCvSharp.CPlusPlus.GpuGpuMat
Destination image with the same size and type as src. - ksize
- Type: OpenCvSharp.CPlusPlusSize
Gaussian kernel size. ksize.Width and ksize.Height can differ but they both must be positive and odd. If they are zeros, they are computed from sigma1 and sigma2 . - buf
- Type: OpenCvSharp.CPlusPlus.GpuGpuMat
[Missing <param name="buf"/> documentation for "M:OpenCvSharp.CPlusPlus.Gpu.Cv2Gpu.GaussianBlur(OpenCvSharp.CPlusPlus.Gpu.GpuMat,OpenCvSharp.CPlusPlus.Gpu.GpuMat,OpenCvSharp.CPlusPlus.Size,OpenCvSharp.CPlusPlus.Gpu.GpuMat,System.Double,System.Double,OpenCvSharp.BorderType,OpenCvSharp.BorderType,OpenCvSharp.CPlusPlus.Gpu.Stream)"]
- sigma1
- Type: SystemDouble
Gaussian kernel standard deviation in X direction. - sigma2 (Optional)
- Type: SystemDouble
Gaussian kernel standard deviation in Y direction. If sigma2 is zero, it is set to be equal to sigma1 . If they are both zeros, they are computed from ksize.Width and ksize.Height, respectively. To fully control the result regardless of possible future modification of all this semantics, you are recommended to specify all of ksize, sigma1, and sigma2. - rowBorderType (Optional)
- Type: OpenCvSharpBorderType
Pixel extrapolation method in the vertical direction. - columnBorderType (Optional)
- Type: OpenCvSharpBorderType
Pixel extrapolation method in the horizontal direction. - stream (Optional)
- Type: OpenCvSharp.CPlusPlus.GpuStream
Stream for the asynchronous version.
See Also