1234567891011121314151617181920212223242526272829 |
- #pragma once
- #include <opencv2/opencv.hpp>
- #include <cmath>
- enum ErrorCode
- {
- None = 0,
- selectContours = 1,
- skeletonSega = 2,
- removeDiscreteValue = 3,
- extractSegment = 4,
- fitLineAndCalc = 5,
- calaThickness = 6,
- intimaProcess = 7,
- interfaceOfIntimeThickness = 8
- };
- class ErrorMsg
- {
- public:
- ~ErrorMsg();
- static void SetErrorMsg(ErrorCode errorCode, std::vector<const char*> errorMsgs);
- static void GetErrorMsg(ErrorCode& errorCode, char* errorMsg, const int errorMaxLen);
- private:
- static char* _errorMsg;
- static ErrorCode _errorCode;
- };
|