Пример #1
0
        public Mat GetTemplateMat(string type, string imgName)
        {
            var path = GetTemplateImgPath(type, imgName);
            var mat  = OpenCvExtension.ReadMatFromFile(path);

            return(mat);
        }
Пример #2
0
        /// <summary>
        /// 未使用加载策略
        /// </summary>
        /// <param name="relativePath"></param>
        /// <returns></returns>
        public Mat GetTemplateMat(string relativePath)
        {
            var path = GetTemplateImgPath(relativePath);
            var mat  = OpenCvExtension.ReadMatFromFile(path);

            return(mat);
        }