You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
wheeldetect/qilunCar/cvmatutils.h

27 lines
545 B
C

#ifndef _cvmatutils_h_
#define _cvmatutils_h_
#include <opencv2/opencv.hpp>
#include <opencv2/opencv_modules.hpp>
#include <vector>
#include <string>
#include <iosfwd>
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_