ErrorMsg.h 551 B

1234567891011121314151617181920212223242526272829
  1. #pragma once
  2. #include <opencv2/opencv.hpp>
  3. #include <cmath>
  4. enum ErrorCode
  5. {
  6. None = 0,
  7. selectContours = 1,
  8. skeletonSega = 2,
  9. removeDiscreteValue = 3,
  10. extractSegment = 4,
  11. fitLineAndCalc = 5,
  12. calaThickness = 6,
  13. intimaProcess = 7,
  14. interfaceOfIntimeThickness = 8
  15. };
  16. class ErrorMsg
  17. {
  18. public:
  19. ~ErrorMsg();
  20. static void SetErrorMsg(ErrorCode errorCode, std::vector<const char*> errorMsgs);
  21. static void GetErrorMsg(ErrorCode& errorCode, char* errorMsg, const int errorMaxLen);
  22. private:
  23. static char* _errorMsg;
  24. static ErrorCode _errorCode;
  25. };