12345678910111213141516171819202122232425262728293031323334 |
- #pragma once
- #include <opencv2/opencv.hpp>
- #include <cmath>
- enum ColorType
- {
- Gray8,
- Gray16,
- Rgb,
- Bgr,
- Bgra,
- Rgba,
- GrayF32,
- };
- class ImageDepth
- {
- public:
- static int GetDepthFlag(ColorType colorType);
- };
- class ErrorMsg
- {
- public:
- ~ErrorMsg();
- static void SetErrorMsg(std::vector<const char*> errorMsgs);
- static void GetErrorMsg(char* errorMsg, const int errorMaxLen);
- private:
- static char* _errorMsg;
- };
|