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);
        }
Beispiel #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);
        }