Beispiel #1
0
        static void Main(string[] args)
        {
            //this object has responsibility for creating all needed objects
            ProjectSettings settings = new ProjectSettings();
            var project = new StandardProject<StandardRecord<StandardRecordData>>(settings);

            BIO.Framework.Core.Evaluation.Results.Results results = project.run();
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            ProjectSettings settings = new ProjectSettings();

            var project = new StandardProject <StandardRecord <StandardRecordData> >(settings);

            BIO.Framework.Core.Evaluation.Results.Results results = project.run();
        }
Beispiel #3
0
        static void Main(string[] args)
        {
            //this object has responsibility for creating all needed objects
            ProjectSettings settings = new ProjectSettings();
            var             project  = new StandardProject <StandardRecord <StandardRecordData> >(settings);

            BIO.Framework.Core.Evaluation.Results.Results results = project.run();
        }
Beispiel #4
0
 static void Main(string[] args)
 {
     ProjectSettings settings = new ProjectSettings();
     var project = new StandardProject<StandardRecord<StandardRecordData>>(settings);
     Results results = project.run();
 }
Beispiel #5
0
        static void Main(string[] args)
        {
            /*
             * // load image
             * Image<Bgr, Byte> img2 = new Image<Bgr, byte>(@"C:\Users\Jusko\Desktop\2MIT\BIO\odtlacky\PNG\1_1.png");
             * Image<Gray, byte> grayImg = img2.Convert<Gray, byte>();
             * Image<Gray, byte> binImg = new Image<Gray, byte>(grayImg.Size);
             *
             * // OTSU threshold
             * CvInvoke.cvThreshold(grayImg, binImg, 100, 255, Emgu.CV.CvEnum.THRESH.CV_THRESH_OTSU | Emgu.CV.CvEnum.THRESH.CV_THRESH_BINARY);
             *
             * binImg.Save(@"C:\Users\Jusko\Desktop\2MIT\BIO\odtlacky\binimg.png");
             *
             * // INVERT
             * binImg = binImg.Not();
             *
             * // SKELETONIZATION
             * Image<Gray, byte> skel = new Image<Gray, byte>(binImg.Size);
             * for (int y = 0; y < skel.Height; y++)
             *  for (int x = 0; x < skel.Width; x++)
             *      skel.Data[y, x, 0] = 0;
             *
             * Image<Gray, byte> img = skel.Copy();
             * for (int y = 0; y < skel.Height; y++)
             *  for (int x = 0; x < skel.Width; x++)
             *      img.Data[y, x, 0] = binImg.Data[y, x, 0];
             *
             * StructuringElementEx element;
             * element = new StructuringElementEx(3, 3, 1, 1, Emgu.CV.CvEnum.CV_ELEMENT_SHAPE.CV_SHAPE_CROSS);
             * Image<Gray, byte> temp;
             *
             * bool done = false;
             * do
             * {
             *  temp = img.MorphologyEx(element, Emgu.CV.CvEnum.CV_MORPH_OP.CV_MOP_OPEN, 1);
             *  temp = temp.Not();
             *  temp = temp.And(img);
             *  skel = skel.Or(temp);
             *  img = img.Erode(1);
             *  double[] min, max;
             *  Point[] pmin, pmax;
             *  img.MinMax(out min, out max, out pmin, out pmax);
             *  done = (max[0] == 0);
             * } while (!done);
             *
             *
             *
             *
             * // RIDGE COUNT
             * List<int> ridgeCounts = new List<int>();
             * for (int i=1; i<=5; i++)
             * {
             *  var p = new Program();
             *
             *  int omg = p.getRidgeCount(i, skel);
             *
             *  ridgeCounts.Add(omg);
             * }
             *
             * Console.ReadKey();
             *
             */
            /*
             * Console.WriteLine("Ridge count:");
             * Console.WriteLine(ridge_count);
             * Console.WriteLine(skel.Width);
             * Console.WriteLine(skel.Height);
             *
             * skel.Save(@"C:\Users\Jusko\Desktop\2MIT\BIO\odtlacky\skel.png");
             *
             * Console.ReadKey();
             * /*THRESH.CV_THRESH_OTSU | THRESH.CV_THRESH_BINARY
             * int threshold_value = 50; //0-255
             *
             *
             * Image<Gray, Byte> img = new Image<Gray, Byte>(@"C:\Users\Jusko\Desktop\2MIT\BIO\odtlacky\PNG\1_1.png");
             *
             * img = img.ThresholdBinary(new Gray(threshold_value), new Gray(255));
             * img.Save(@"C:\Users\Jusko\Desktop\2MIT\BIO\odtlacky\1_1.png");
             *
             */

            Console.WriteLine("Fingerprint recognition");
            Console.WriteLine("Ján Jusko (xjusko00)");
            Console.WriteLine("VUT Brno Faculty of Information Technology");

            ProjectSettings settings = new ProjectSettings();
            var             project  = new StandardProject <StandardRecord <StandardRecordData> >(settings);
            Results         results  = project.run();
        }