Exemple #1
0
        public void Compare(List <Bitmap> master, List <Bitmap> slave, List <long[]> mslink, bool isUseValves = false)
        {
            mslink.Clear();
            for (int m = (mslink.Count == 0) ? 0 : (int)mslink[mslink.Count - 1][0]; m < master.Count; m++)
            {
                for (int s = (mslink.Count == 0) ? 0 : (int)mslink[mslink.Count - 1][1]; s < slave.Count; s++)
                {
                    if (b.Compare((Bitmap)master[m], (Bitmap)slave[s], isUseValves))
                    {
                        mslink.Add(new long[] { m, s });
                        // fill blog_tag.index
                        ((blob_tag)(master[m].Tag)).index = mslink.Count - 1;
                        ((blob_tag)(slave[s].Tag)).index  = mslink.Count - 1;

                        break;
                    }
                }
            }
        }
Exemple #2
0
        private void Button3_Click_1(object sender, EventArgs e)
        {
            blobs_ms_compare b = new blobs_ms_compare();

            label1.Text = b.Compare(bmpM, bmpS).ToString();
        }