Exemplo n.º 1
0
        // main method that I am using just to test my methods in the class Focus
        static void Main(string[] args)
        {
            Focus testimage = new Focus();

               Image myimage = Image.FromFile(@"C:\Users\payam\Desktop\frame-42.png", true);
               var watch = Stopwatch.StartNew();
               Bitmap bitmapimage = testimage.ConvertToBitmap(myimage);
               var FM = testimage.GetFValue(bitmapimage);
               Console.WriteLine(FM);
               Console.WriteLine(watch.ElapsedMilliseconds);
               Console.ReadLine();
        }
Exemplo n.º 2
0
        // main method that I am using just to test my methods in the class Focus
        static void Main(string[] args)
        {
            Focus testimage = new Focus();

            Image  myimage     = Image.FromFile(@"C:\Users\payam\Desktop\frame-42.png", true);
            var    watch       = Stopwatch.StartNew();
            Bitmap bitmapimage = testimage.ConvertToBitmap(myimage);
            var    FM          = testimage.GetFValue(bitmapimage);

            Console.WriteLine(FM);
            Console.WriteLine(watch.ElapsedMilliseconds);
            Console.ReadLine();
        }