Пример #1
0
        public bool Load(string filePath)
        {
            bool reSuccess = false;

            try
            {
                if (File.Exists(filePath))
                {
                    Base.Load(filePath);
                    Base.CopyLearntPattern(trainImage);
                    trainROI.Load(filePath + "_ROI");
                    reSuccess = true;
                }
            }
            catch (EException exc)
            {
                StackFrame[] stackFrames = new StackTrace(true).GetFrames();
                clsLogFile.LogTryCatch(stackFrames, exc.Message, true, true);
            }
            catch (Exception ex)
            {
                StackFrame[] stackFrames = new StackTrace(true).GetFrames();
                clsLogFile.LogTryCatch(stackFrames, ex.Message, true, true);
            }
            return(reSuccess);
        }