Beispiel #1
0
        protected IImage ToGrayScale(IImage image)
        {
            var bitmap    = image.ToBgr().Lock().AsAForgeImage();
            var grayScale = new Grayscale(0.2125, 0.7154, 0.0721).Apply(bitmap);

            return(grayScale.AsImage());
        }