OpenCvSharp.Cv2.PyrDown C# (CSharp) Method

PyrDown() public static method

Blurs an image and downsamples it.
public static PyrDown ( InputArray src, OutputArray dst, Size dstSize = null, BorderTypes borderType = BorderTypes.Default ) : void
src InputArray input image.
dst OutputArray output image; it has the specified size and the same type as src.
dstSize Size size of the output image; by default, it is computed as Size((src.cols+1)/2
borderType BorderTypes
return void
        public static void PyrDown(InputArray src, OutputArray dst,
            Size? dstSize = null, BorderTypes borderType = BorderTypes.Default)
        {
            if (src == null)
                throw new ArgumentNullException(nameof(src));
            if (dst == null)
                throw new ArgumentNullException(nameof(dst));
            src.ThrowIfDisposed();
            dst.ThrowIfNotReady();
            Size dstSize0 = dstSize.GetValueOrDefault(new Size());
            NativeMethods.imgproc_pyrDown(src.CvPtr, dst.CvPtr, dstSize0, (int)borderType);
            GC.KeepAlive(src);
            dst.Fix();
        }
        /// <summary>
Cv2