From abfa5c586a35b9725ce5e822f72ecd26e99ac2dc Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 20 Mar 2023 15:44:14 +0100 Subject: [PATCH] use findFile in opengl.cpp sample --- samples/opengl/opengl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;