Пример #1
0
        public static void ImageScanning(string path)
        {
            System.Drawing.Image image = System.Drawing.Image.FromFile(@path);
            Bitmap grayscaleImage      = ImageFunctions.MakeGrayscale3((Bitmap)image);

            grayscaleImage = ImageFunctions.ContrastStretch(grayscaleImage);

            AllPassesOfWindow(grayscaleImage);
        }
Пример #2
0
        public static void ImageScanning(System.Drawing.Image image, int step)
        {
            rectangleList.Clear();
            Bitmap grayscaleImage = ImageFunctions.MakeGrayscale3((Bitmap)image);

            grayscaleImage = ImageFunctions.ContrastStretch(grayscaleImage, 0.02, 0.01);

            AllPassesOfWindow(grayscaleImage, step);
        }