diff --git a/samples/opengl/opengl.cpp b/samples/opengl/opengl.cpp index dd2f913164..fd1aa45c08 100644 --- a/samples/opengl/opengl.cpp +++ b/samples/opengl/opengl.cpp @@ -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;