Exemplo n.º 1
0
        private List <Minutiae> GetMinutiaesFromBitmap(Bitmap bitmap)
        {
            MinutiaeFinder finder = new MinutiaeFinder();

            finder.ShowMinutiae(bitmap);
            double[,] angles = SobelOperation.CalculateAngles(bitmap);
            return(finder.getMinutiaesWithAngles(angles));
        }
Exemplo n.º 2
0
        private void openFingerprintToMatchToolStripMenuItem_Click(object sender, EventArgs e)
        {
            OpenFileDialog openFileDialog = new OpenFileDialog();

            openFileDialog.Filter = "JPG|*.jpg|PNG|*.png";
            openFileDialog.ShowDialog();
            string path = openFileDialog.FileName;

            if (path != null)
            {
                newBitmap = (Bitmap)Bitmap.FromFile(path);
                newBitmap = Thinning.Thin(newBitmap);
                MinutiaeFinder finder = new MinutiaeFinder();
                Bitmap         bitmap = finder.ShowMinutiae(newBitmap);
                pictureBoxNew.Image = bitmap;
            }
        }