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 << "loaded " << image_path << endl;
|
||||||
cout << " dim " << loaded.cols << "x" << loaded.rows << endl;
|
cout << " dim " << loaded.cols << "x" << loaded.rows << endl;
|
||||||
loaded.copyTo(image(Rect(0, 0, loaded.cols, loaded.rows)));
|
loaded.copyTo(image(Rect(0, 0, loaded.cols, loaded.rows)));
|
||||||
//flip(image, image, 0);
|
flip(image, image, 0);
|
||||||
#if (CV_VERSION_MAJOR >= 4)
|
#if (CV_VERSION_MAJOR >= 4)
|
||||||
cvtColor(image, image, cv::COLOR_BGR2RGB);
|
cvtColor(image, image, cv::COLOR_BGR2RGB);
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue