Flipping puts image in top left where expected
This commit is contained in:
parent
1de574af6d
commit
55ce42ef61
2
main.cpp
2
main.cpp
|
@ -37,7 +37,7 @@ void loadTexture (GLuint& imageTexture1)
|
|||
cout << "loaded " << image_path << endl;
|
||||
cout << " dim " << loaded.cols << "x" << loaded.rows << endl;
|
||||
loaded.copyTo(image(Rect(0, 0, loaded.cols, loaded.rows)));
|
||||
//flip(image, image, 0);
|
||||
flip(image, image, 0);
|
||||
#if (CV_VERSION_MAJOR >= 4)
|
||||
cvtColor(image, image, cv::COLOR_BGR2RGB);
|
||||
#else
|
||||
|
|
Loading…
Reference in New Issue