ReprocessCommon.h 420 B

12345678910111213141516171819202122232425262728293031323334
  1. #pragma once
  2. #include <opencv2/opencv.hpp>
  3. #include <cmath>
  4. enum ColorType
  5. {
  6. Gray8,
  7. Gray16,
  8. Rgb,
  9. Bgr,
  10. Bgra,
  11. Rgba,
  12. GrayF32,
  13. };
  14. class ImageDepth
  15. {
  16. public:
  17. static int GetDepthFlag(ColorType colorType);
  18. };
  19. class ErrorMsg
  20. {
  21. public:
  22. ~ErrorMsg();
  23. static void SetErrorMsg(std::vector<const char*> errorMsgs);
  24. static void GetErrorMsg(char* errorMsg, const int errorMaxLen);
  25. private:
  26. static char* _errorMsg;
  27. };