public void FindSubImage(Mat curPageMat) { foreach (var m in _additionalImgMats) { List <Rect> outRects = new List <Rect>(); FindSubImageSample.Run(curPageMat, m.Value, outRects, _color); foreach (var r in outRects) { Console.WriteLine(m.Key + " " + r); } } }