#ifndef _cvmatutils_h_ #define _cvmatutils_h_ #include #include #include #include #include using namespace cv; using std::vector; using std::string; using std::stringstream; Mat getTranslateMatrix2D(float dx, float dy); void cutMargin(Mat& img, int w); Mat duplicateChannels(const Mat& mat, int n); Scalar sum(const Mat& mat, const Mat& mask); string toStr(const Mat& m); Mat fromStr(const string& str, int rows, int cols, int type); #endif // _cvmatutils_h_