flip函数原型
void flip(InputArray src, OutputArray dst, int flipCode);
flag的值 ROTATE_90_CLOCKWISE = 0, //!完整代码
#include#include #include #include using namespace std; using namespace cv; int main() { const string dstName = ""; Mat img = imread(dstName, 1); cout << img.rows << endl; Mat dst; flip(img, dst, 0); //namedWindow("test"); imshow("name", dst); waitKey(0); system("pause"); return 0; } 涉及到的函数
Mat imread( const string& filename, int flags=1 );void imshow(const string& winname, InputArray mat);int waitKey(int delay = 0);