Flipping puts image in top left where expected

This commit is contained in:
Matt McWilliams 2024-04-01 21:26:37 -04:00
parent 1de574af6d
commit 55ce42ef61
1 changed files with 1 additions and 1 deletions

View File

@ -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