Esempio n. 1
0
        static public void StartProcessing(Mat image, List <TemplateContainer.ImageData> templateContainer,
                                           SortedDictionary <int, int> result)
        {
            long matchTime;
            int  temp;

            int i = 0;

            foreach (var template in templateContainer)
            {
                temp = 0;
                temp = DrawMatches.MatchResult2(image, template, out matchTime);
                //temp = DrawMatches.MatchResult(template.image.Mat, image, out matchTime);
                if (temp != 0)
                {
                    while (result.Keys.Contains(-temp))
                    {
                        temp -= 1;
                    }
                    result.Add(-temp, i);
                    Console.WriteLine("znalazle, {0}", i);
                }
                i += 1;
            }
        }