Exemple #1
0
        public static Emgu.CV.Image <Emgu.CV.Structure.Gray, System.Byte> RemoveSpecks(this Emgu.CV.Image <Emgu.CV.Structure.Gray, System.Byte> image)
        {
            if (image is null)
            {
                throw new System.ArgumentNullException(nameof(image));
            }

            return(image.Erode(iterations: 4)
                   .Dilate(iterations: 4));
        }