private void matchWithDbToolStripMenuItem_Click(object sender, EventArgs e)
        {
            bool                   isMatched         = false;
            List <Minutiae>        originalMinutiaes = GetMinutiaesFromBitmap(originalBitmap);
            DbJSONSerializer       db              = new DbJSONSerializer();
            Fingerprints           fingerprints    = db.DeserializeMinutiaes(db.ReadFromJsonFile("db_fingerprints.json"));
            List <UserFingerprint> userFingerPrint = fingerprints.userFingerprints;

            foreach (UserFingerprint uf in userFingerPrint)
            {
                Debug.Print("Porównuje " + uf.name);
                MatchingFingerprints.SetAccumulatorDimension(originalBitmap.Width, originalBitmap.Height);
                TranslationVotes votes = MatchingFingerprints.Matching(originalMinutiaes, uf.minutiaes);
                if (MatchingFingerprints.IsIdentical(originalMinutiaes, uf.minutiaes, votes))
                {
                    isMatched = true;
                    MessageBox.Show(uf.name);
                    break;
                }
            }
            if (!isMatched)
            {
                MessageBox.Show("Brak usera w bazie");
            }
        }
        private void matchToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Debug.Print("Start");
            if (originalBitmap != null && newBitmap != null)
            {
                List <Minutiae> originalMinutiaes = GetMinutiaesFromBitmap(originalBitmap);
                List <Minutiae> newMinutiaes      = GetMinutiaesFromBitmap(newBitmap);

                List <Minutiae> mock1 = new List <Minutiae>();
                mock1.Add(new Minutiae(10, 10, 0, MinutiaeType.BIFURCATION));
                List <Minutiae> mock2 = new List <Minutiae>();
                mock2.Add(new Minutiae(1, 1, 0, MinutiaeType.BIFURCATION));


                Matcher     matcher     = new Matcher(originalBitmap.Width, originalBitmap.Height, 10);
                Translation translation = matcher.Matching(originalMinutiaes, newMinutiaes);
                MatchingFingerprints.SetAccumulatorDimension(originalBitmap.Width, originalBitmap.Height);
                TranslationVotes votes = MatchingFingerprints.Matching(originalMinutiaes, newMinutiaes);

                if (MatchingFingerprints.IsIdentical(originalMinutiaes, newMinutiaes, votes))
                {
                    Debug.Print("Access allowed");
                    MessageBox.Show("Access allowed");
                }
                else
                {
                    Debug.Print("Access denied");
                    MessageBox.Show("Access denied");
                }
            }
            else
            {
                Debug.Print("NULL");
            }
        }