mirror of
https://github.com/opencv/opencv.git
synced 2024-11-24 03:00:14 +08:00
use findFile in opengl.cpp sample
This commit is contained in:
parent
0052d46b8e
commit
abfa5c586a
@ -50,12 +50,12 @@ int main(int argc, char* argv[])
|
||||
if (argc < 2)
|
||||
{
|
||||
cout << "Usage: " << argv[0] << " image" << endl;
|
||||
filename = "../data/lena.jpg";
|
||||
filename = "lena.jpg";
|
||||
}
|
||||
else
|
||||
filename = argv[1];
|
||||
|
||||
Mat img = imread(filename);
|
||||
Mat img = imread(samples::findFile(filename));
|
||||
if (img.empty())
|
||||
{
|
||||
cerr << "Can't open image " << filename << endl;
|
||||
|
Loading…
Reference in New Issue
Block a user